You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P3 — Reduce automation sync write amplification: batch obvious independent writes or introduce bounded concurrency after locking is settled.
Matched top finding
Scheduled sync has a DB-backed single-row lock, but normal issue sync and automation sync do not appear to share that lock. Browser refreshes, cron overlap, or repeated clicks can trigger concurrent GitHub scans and per-run/per-job writes.
Evidence:
src/app/api/sync/scheduled/route.ts:13-59 has acquireLock() / releaseLock().
src/app/api/sync/route.ts:8-65 performs issue sync without that lock.
src/app/api/automation/sync/route.ts:329-356 loops through tracked repos; syncRepo() does multiple GitHub calls and upserts per workflow/run/job/release/PR/package.
Activity
itsmiso-ai commentedon Jun 5, 2026
Saffron grooming result: kept in backlog — needs locking settled first
P3 concurrent sync writes depend on lock coordination between scheduled, normal, and automation sync. Cannot scope until locking is established.
fix: batch automation sync DB writes with Prisma transactions (#343)