PR #17109 — Claude buffered-wake takeover proof Original contributor head: d06173bf6a2f633de64996e52c10f76ce29afc96 Base verified: 1451e7cb23034d29774338608368a15d8845df36 Before/after checks use deterministic SDK frames, real Claude adapter and server services. No authenticated Claude CLI/model proof is claimed. Main: all four initial behavioral regression cases fail. Contributor implementation: 314 pass / 2 fail across 316 tests, after-eligibility provider switch and resumed outcome persistence fail. Final implementation: 491/491 across nine suites. Initial five PR cases were replaced by four meaningful cases; seven distinct admission, queued lifecycle, transcript and cleanup cases were added during implementation and reviews. Main tests preserved. Review round 1: Sol queued lifecycle/output cleanup; Opus duplicate read/workflow subscription/resumed transcript. Round 2: Sol clean; Opus pending. Final full focused suite output: implementation-r2-tests.log Test Files 9 passed (9) Tests 491 passed (491) Duration 20.81s (import 34%, tests 33%, transform 31%, setup 1%) implementation-r2-red.log ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 4 ⎯⎯⎯⎯⎯⎯⎯ FAIL apps/server/src/orchestration-v2/ClaudeAutomaticDelivery.integration.test.ts > releases a queued buffered wake after provider switch and permits a later Claude completion AssertionError: expected 'starting' to equal 'cancelled' FAIL apps/server/src/orchestration-v2/ProviderSessionManager.test.ts > persists session-owned command settlement once, forwards it and releases its live output slot AssertionError: expected '' to equal 'Child output before settlement.' FAIL apps/server/src/orchestration-v2/RunExecutionService.test.ts > closes the root subscription when session-owned child artifacts settle without ingesting them twice AssertionError: expected [ 'subagent:running', …(4) ] to deeply equal [ 'subagent:running', …(2) ] FAIL apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts > ClaudeAdapterV2 background wake turns > keeps only the newer resumed generation transcript when dropping an old wake AssertionError: expected [ Array(6) ] to include 'Resumed child transcript.' Test Files 4 failed (4) Tests 4 failed | 413 skipped (417) Duration 11.09s (transform 60%, import 35%, tests 4%, setup 1%) Scoped server and provider-core typechecks, targeted lint and formatting pass. Existing warnings only. Live smoke: isolated server starts, collaborative browser pairs and chat composer loads. Database migration of live snapshot was rejected due to incompatible migration history; fresh isolated state used. Unverified: authenticated Claude CLI provider switching; macOS, Windows, Electron desktop, iOS, Android.