Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…sion-invalidation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b5d630b to
c9a388f
Compare
EvidenceReal servers on fresh databases; Chromium at 1280×800; native Moonshine Streaming Tiny, identical synthetic speech. The second client paired, opened its media-ticket speech socket, received live transcripts, then had its session revoked by the owner. Authentication became false on both sides. Audio delivery continued until approximately 25 seconds.
Scenario driver · Synthetic float32 PCM audio · Sanitized runner output The overlay displays observed real protocol events; session and speech operations were driven through APIs rather than UI controls. Not shown:
|
|
The automated pipeline stopped on this pull request and will not merge it: these checks fail on c9a388f, also when run again: Agent context budget, and the rework changed nothing: Nothing needed changing. The failing 'Agent context budget' check is not caused by this PR: the branch's diff against main touches only apps/server/src/speech/stream.ts and stream.test.ts and never changes apps/server/src/provider/agentContextBudget.json. The check checks out the PR merge ref, then fetches main again to compare against it. main's mcpToolListJsonBytes went 57751 (0bc9b57, #31257) -> 57696 (b985057, #39947, landed 22:54Z), so the 22:58Z runs merged in the older 57751 and compared it with the newer 57696, which produced the reported +55. Reproduced locally with the workflow's jq expression: those two values give exactly 'mcpToolListJsonBytes: 57696 -> 57751'. Merging the branch with current origin/main (git merge-tree) and comparing gives no growth, so a rerun should pass. No commit was made and nothing was pushed. It stays open for a person to finish or close. |
…sion-invalidation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6ae4bdb to
4ba6537
Compare
EvidenceExercise a separate client's real speech WebSocket with continuous synthetic spoken audio and Moonshine Streaming Tiny. After recognizable live transcription begins, revoke that client in Sharing & access, confirm its session row disappears, and observe for eight seconds. Environment: Chromium, 1280×800, light theme, fresh isolated server state on each commit. The labeled observer displays actual WebSocket events.
Scenario source · Audio/model fixture preparation The real-app scenario failed on base and passed on head; scenarios:prove exited 0. Not shown:
|
|
This PR conflicts with See the conflict window. |
…sion-invalidation # Conflicts: # apps/server/src/speech/stream.test.ts # apps/server/src/speech/stream.ts




The speech WebSocket route authenticated the upgrade and then ran the socket for up to 10 minutes without watching for session revocation. A client revoked in Sharing & access, by "revoke all others", or by
t3 auth session revokekept streaming audio and receiving transcripts, which can be cloud transcription billed to the host owner. #37871 added the invalidation race to the device hub and server browser streams but missed speech.speechStreamRouteLayernow races the socket run againstSessionStore.awaitInvalidation(sessionId, proofKeyThumbprint), the same wayPreviewTunneland the RPC socket do, so revocation closes the socket.runSpeechSocketscopes its read loop, so the worker that handles audio stops before the speech stream's cleanup runs. Before, an in-flight transcription could still send an update to the revoked client while the stream reset (up to 2.5s). Disconnect and the 10-minute timeout had the same ordering.stream.test.tssends audio, waits until it is being transcribed, revokes the session, and asserts the transcription was stopped before stream release and the socket closed. Onmainthe socket never closes and the test times out. Without the scoping change, the ordering assertion fails.vp run check:changedpasses. Reviewed with sol-loop: 2 rounds with GPT 6.2 Sol on high. Sol verdict: approved.Done by Claude Opus 5.5 in Claude Code (via T3 Code).