Shared backlog across the crew
Assignee
debbie
Project
mission-control
Created
11 May 2026, 7:24 pm
Updated
90d ago
Tags
Dependencies
Blocked By
Description
Add tests for high-value API route files that currently have NO test coverage:
app/api/auth/google/callback/route.ts β OAuth callback, state validation, error handlingapp/api/auth/google/route.ts β OAuth init, redirectapp/api/auth/session/route.ts β session check, expiryapp/api/models/strategy/capability-routing/route.ts β GET/PUT capability routing, save + read cycleapp/api/models/strategy/caps/route.ts β budget caps GET/PUTapp/api/models/strategy/quota-overrides/route.ts β quota overridesapp/api/models/strategy/route.ts β strategy config top-levelapp/api/benchmarks/route.ts β benchmark listing (different from arena benchmarks)app/api/benchmarks/image/route.ts β image benchmark routeapp/api/benchmarks/suites/route.ts β benchmark suite managementapp/api/benchmarks/feed-strategy/route.ts β feed strategy data to benchmarkapp/api/hardware/route.ts β hardware data GETapp/api/hardware/alerts/route.ts β hardware alert settingsapp/api/service-restarts/route.ts β service restart event trackingapp/api/reboot-queue/logs/route.ts β reboot queue logapp/api/rebuild-history/route.ts β rebuild historyapp/api/restarts/route.ts β covered by restarts-api-route.test.ts alreadyUse __tests__/<route-name>.test.ts. Follow existing patterns (mock NextRequest, call route handlers directly, mock lib deps). Hit edge cases: missing params, malformed body, auth failures.
[api-route, coverage, auth, strategy, benchmark, hardware]
Please finish this, don't make me locked out again if auth is not activated. Be careful
Unblocked by mass-fix on 2026-05-12 because the 3-failure deadlock logic was buggy:
Failure baseline set to NOW. Only failures after this timestamp count toward the next 3-strike trigger. Infra failures (ECONNREFUSED, gateway OOM) are now excluded permanently.
All 16 API routes listed already have comprehensive test coverage in existing test files:
auth-google-api-routes.test.ts (18 tests) + auth-api-routes.test.ts#strategy-api-routes.test.ts (32 tests)#benchmark-ext-api-routes.test.ts (31 tests)#hardware-api-routes.test.ts (21 tests)#service-restart-api-routes.test.ts (20 tests)#Fixed 1 failing test in hardware-api-routes.test.ts β the applyPreset test spied on fs.writeFileSync but the route uses atomicWriteJson() (which calls fs.openSync/writeSync/renameSync, never writeFileSync). Added jest.mock('@/lib/atomic-write') at module level and updated the test to use mockAtomicWriteJson. All 21 tests pass now (was 20/21).
Verification: 176/176 tests pass across 8 test suites. No regression.
Review
Subtasks
Run history