refactor(daemon): move the runtime dependency construction to the process root (PR 6)
Summary
PR 6 of the daemon extraction (#3276 umbrella): the daemon server no longer builds its own dependencies. startDaemonRuntime takes { env, sessionStore, deps: DaemonRuntimeDeps }; everything that names a platform runtime, provider runtime, interactor, host diagnostics, credential fingerprinting, resource cleanup, lifecycle owners, or the platform-services / claim-recovery compositions moves to the new root composition module src/daemon-composition.ts, which src/daemon.ts calls and injects. The operational server keeps startup sequencing, listeners, shutdown, metadata watch, idle reap, and request-handler creation, with the same order on both paths. DaemonProviderCredentials (type only) lands in @agent-device/daemon-contracts/provider-credentials — the #2559 daemon⇄client shared home beside daemon-policy-file.ts; contracts was rejected under R18 (the fingerprint implementation keeps reading the plugin manifest in root, and the type is daemon⇄client vocabulary, not app-domain vocabulary). Runtime tests boot through one shared fixture (src/daemon/__tests__/daemon-runtime-fixture.ts). R76 loses its 8 daemon-runtime rows (only the direct-ios-selector edge from #2273/#2274 remains); ADRs 0019/0022/0033 amended. 30 files.
Validation
Commit c3a81fd38. Local: pnpm install --frozen-lockfile && pnpm build, pnpm format, check:quick, check:layering (320/0), check:di-seams, eager-closure budgets (802/0; src/daemon.ts closure 468→469 modules = the new composition file itself, weight 5117→5116 — containment + novelty + flat weight, the split tolerance; every base module stays eager), test-file-size-ratchet, test:integration:provider (213), test:concurrency-torture (4), check:affected --run, daemon-scope unit run (462 files / 3455 tests). pnpm depgraph: spine back-edges 0, type-only inversions 11 (unchanged). Edge query over graph.json from daemon/** nodes to non-packages/ nodes outside the zone: exactly daemon/direct-ios-selector.ts -> platform-runtime-apple-resources.ts [value]. Smoke: node bin/agent-device.mjs devices + session list against the composed daemon, clean daemon stop. Provider integration/coverage run remotely on this head.