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
{{ message }}
Repository navigation
CRAP: daemon handlers and server (needs splits) #3424
handleSessionStateCommands (CC 34), handleAppStateCommand (CC 30) and the http-server.ts:188 handler (CC 45) are already 92–96% covered. Their CC alone keeps CRAP at or above 30, so they need splits, not tests. On hold: coordinate with the src/daemon → packages/daemon extraction before starting, so the work doesn't collide with planned moves.
Completion
Every function above is absent from pnpm check:coverage-crap --all on the PR head (score < 30), or is exempted where this issue says so.
Tests go through the owning module's public entry point. No new production exports for tests and no test-only DI (docs/agents/testing.md).
Only the owned files, the tests that exercise them, and *.fixtures.ts helpers change. The PR stays under the 1,000-line gross budget, and pnpm check:affected --run passes on the pushed head.
Activity
refactor(daemon): move app-state target selection into its own module
test(daemon): cover lock-target matrix, auth-hook rejections, archive…
refactor(daemon): extract boot handling from session-state dispatcher (…
refactor(daemon): extract shutdown handling from session-state dispat…
refactor(daemon): extract appstate Apple-session and device-runtime r…
refactor(daemon): extract appstate target admission into its own modu…