Repository navigation
fix(talk): bound durable transcript persistence - #117214
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 1:40 AM ET / 05:40 UTC. ClawSweeper reviewWhat this changesThis PR adds a bounded FIFO queue for durable client Talk transcript persistence, limiting stalled writes while preserving accepted transcript order and close behavior. Merge readinessKeep this member-authored, maintainer-labeled PR open for maintainer review. The exact head replaces the current unbounded per-session promise chain with a bounded FIFO owner that preserves accepted-write order, seals admission on real overflow, and drains accepted work before close; source and focused regression coverage support the approach, with no discrete correctness finding found. Priority: P1 Review scores
Verification
How this fits togetherTalk voice sessions turn user and assistant transcript events into durable session-history writes. The durable client-session owner serializes those writes, and this PR changes that owner so a stalled persistence backend cannot accumulate unbounded waiting transcript work. flowchart LR
A[Voice transcript events] --> B[Durable client Talk session]
B --> C[Transcript operation registry]
C --> D[Bounded FIFO queue]
D --> E[Session transcript persistence]
C --> F[Overflow or close barrier]
F --> G[Closed voice session]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +274, Tests +432. Total +706 across 7 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the bounded queue as the shared durable-client foundation after exact current-base validation, then keep the relay and browser owner changes in their separate stacked PRs so each lifecycle boundary remains independently reviewable. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main appends every transcript operation to an unbounded per-session promise chain at Is this the best way to solve the issue? Yes: the best repair is at the durable client-session operation owner, where writes are admitted and close is ordered, rather than truncating or dropping work downstream in the persistence accessor. The separate relay and browser adopters remain correctly isolated in #117215 and #117216. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bcff3a0de3a9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
0546c98 to
b786f4a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…persistence-bound-clean
Related: #116201
What Problem This Solves
Fixes an issue where durable Talk transcript persistence could retain an unbounded backlog when the Gateway persistence path stalled, increasing memory use for a long-running voice session.
Why This Change Was Made
Adds one bounded serial queue and transcript-operation policy at the Talk owner boundary, then adopts it in the durable client voice session. Accepted writes remain FIFO, overflow is terminal until explicit close, capacity-waiting control work cannot seal transcript admission, and close seals and drains accepted work before releasing the session.
This is the foundation for two separate adoption PRs:
It does not change provider, config, environment-variable, protocol, SDK, or storage-schema surface.
User Impact
Long-running Talk sessions keep transcript persistence memory bounded without reordering accepted transcript writes, admitting empty finalized transcripts, resurrecting an overflowed queue after drain, or starving control work in an infinite retry loop.
Evidence
git diff --checkpassed.b786f4a804f8ae050def290c8c439934b8eb718f: no accepted or actionable findings; patch correct at 0.90 confidence. The live heada947b737f1dd47af2cc8d30a67d25b0339ab866bis a signed changelog-only child with identical Talk/shared source and test bytes.tbx_01kyxwp1pd3tmkt2dqzndcvmvtin 4m35s.mainenvironment-count ratchet (515below budget517); this PR changes no environment or config surface. The dedicated ratchet repair landed separately in chore(ci): lower environment variable budget #117224.voiceStatus: closed, and the relay tool-call path remained accepted.response.doneeach cycle, and zero late audio.a947b737f1dd47af2cc8d30a67d25b0339ab866bwith no findings or security issues and judged the Talk owner boundary the best repair.AI-assisted implementation; the maintainer reviewed the code, ownership split, and proof.