Repository navigation
fix(pusher): keep playback discovery out of the seal drain and wake intake on seal - #25352
Merged
Git-on-my-level merged 77 commits intoNov 15, 2026
Merged
Conversation
Failure-Class: FC-record-producer-outlives-socket-drain
Accept a single _u<ASCII digits> tail by recovering its numeric capture stamp through the existing plausibility policy. Keep raw names and signed manifest claims instead of renaming uploads, so storage and content keys retain both members of a collision pair. Carry clock runs through decoded WAVs and retain drain compatibility after new admission is switched off. Register the default-on SYNC_COLLISION_SUFFIX_ENABLED kill switch and cover malformed/future/early clocks, paired staging, content identity, batch decode, VAD segments, coverage derivatives and admission rollback. Failure-Class: FC-sync-capture-time-zero-tolerance
Negotiate close-only relay controls, order accepted audio ahead of closure, finish ended conversations before unrelated work, and refresh optional playback metadata under bounded process supervision. Wake native-sealed fresh intake retries atomically while preserving current and mixed-version claim leases. Failure-Class: FC-record-producer-outlives-socket-drain
Merge lane/q12-integration at 2b16900. Keep integration versions of every sync file and preserve fast-close work for the following review fixes. Failure-Class: FC-record-producer-outlives-socket-drain
Prepare retains the producer fence while listen can accept and flush a late tail. Commit freezes relay acceptance, verifies the byte watermark, and becomes visible only after custody handoff. Exact per-close ACKs and explicit capacity refusals keep pending closes retryable across loss and reconnect. Uncommitted disconnects remain fenced. Failure-Class: FC-record-producer-outlives-socket-drain
Use one process-wide coordinator with isolated bounded discovery and debt executors. Overflow remains cold debt and never runs discovery on the audio drain. Unknown marker writes retain the producer fence. Empty batch playback distinguishes pending metadata, and unknown optional wake stages preserve native custody closure. Failure-Class: FC-record-producer-outlives-socket-drain
Bind close notification identically on listen and pusher in dev/prod, bind fast close and native wake on pusher, and verify rendered pod values. Require intake marker writer before pusher before listen, with explicit mixed-version and rollback behavior. Failure-Class: FC-deploy-input-serialization
Merge integration d0d81ab with its current main reconciliation and serving-cohost repair bindings. Preserve its sync files except the explicitly requested pending-playback reader change. Failure-Class: none
Implicit legacy bindings are captured at acceptance instead of being rebound by a later flush. Close-v2 requires durable custody on both sides; rollback-mode uncertain-send discard cannot qualify as completion proof. Exercise paused prepare/verified receipt/wake with implicit bindings and conversation rollover. Failure-Class: FC-record-producer-outlives-socket-drain
Reject commit watermarks below the prepared baseline. Register the single deterministic job read per eligible native seal transaction attempt with a planning budget; no producer-pending retry adds a job read. Document the pending-playback marker point read. Failure-Class: FC-record-producer-outlives-socket-drain
Match the integration branch withdrawal: its sync code and runtime bindings no longer read this switch, so retain no stale registry declaration. Failure-Class: none
Keep audio accepted between conversations on the existing unlinked custody path once close-v2 is negotiated. Extend the real relay/receipt/seal/wake test across the next unbound run. Failure-Class: FC-record-producer-outlives-socket-drain
…tory The conservative lifecycle scanner includes response dictionaries. Record the ACK status field and its exact sibling fields without weakening the scanner or adding a lifecycle writer. Failure-Class: FC-record-producer-outlives-socket-drain
Keep the independent registry additions apart from new top-of-file flags on main. Parsed flag definitions and runtime bindings are unchanged. Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
…uards Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
…fety Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
…erver failure Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain # Conflicts: # backend/config/flag_budget.json
Failure-Class: FC-record-producer-outlives-socket-drain
… improvements Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain
Failure-Class: FC-record-producer-outlives-socket-drain # Conflicts: # backend/charts/backend-listen/dev_omi_backend_listen_values.yaml # backend/charts/backend-listen/prod_omi_backend_listen_values.yaml # backend/config/flag_budget.json # backend/deploy/runtime_env.yaml # backend/deploy/runtime_env/dev.overlay.yaml # backend/tests/unit/test_flag_budget.py
…racts Failure-Class: FC-record-producer-outlives-socket-drain
Build the listener harness during fixture setup and share optional worker mocks. Preserve all inertness, accepted-byte, token, seal and atomic-wake assertions. Name the existing 160-row sibling probe cap so the cursor regression can fill an eight-row page across independent merge instances. Failure-Class: FC-record-producer-outlives-socket-drain
Flush the first accepted run before the legacy finalization control, as on an established recording. Keep accepting the second tail after finalization and verify every byte, token retirement and atomic seal wake. This removes the artificial pre-header close and its twenty-second inline timeout without changing timeouts, the duration guard or production behavior. Failure-Class: FC-record-producer-outlives-socket-drain
… notify is off With PUSHER_RECORD_CLOSE_NOTIFY_ENABLED absent the listen session must behave as main: an audio run accepted without a conversation id stays unbound and is bound at flush. The acceptance-time binding now applies only when close notify is enabled. Failure-Class: none Co-Authored-By: Claude Fable 5.2 <[email protected]>
# Conflicts: # backend/config/flag_budget.json
# Conflicts: # backend/charts/backend-listen/dev_omi_backend_listen_values.yaml # backend/charts/backend-listen/prod_omi_backend_listen_values.yaml # backend/charts/pusher/dev_omi_pusher_values.yaml # backend/charts/pusher/prod_omi_pusher_values.yaml # backend/deploy/runtime_env.yaml # backend/deploy/runtime_env/dev.overlay.yaml # backend/scripts/verify_pusher_cohost_env_diff.py
# Conflicts: # backend/config/flag_budget.json
…ntials An applied playback refresh schedules speaker follow-ups that build real datastore clients. On CI runners their credential discovery outlasted the test's five-second teardown wait (two of three runs). The test proves the seal is not held by slow playback discovery, so the unrelated follow-ups are stubbed. Failure-Class: none Co-Authored-By: Claude Fable 5.2 <[email protected]>
…n-stream seal test The playback coordinator imports the scheduler locally, so the job itself is stubbed. Failure-Class: none Co-Authored-By: Claude Fable 5.2 <[email protected]>
# Conflicts: # backend/charts/backend-listen/dev_omi_backend_listen_values.yaml # backend/charts/backend-listen/prod_omi_backend_listen_values.yaml # backend/charts/pusher/dev_omi_pusher_values.yaml # backend/charts/pusher/prod_omi_pusher_values.yaml # backend/deploy/runtime_env.yaml # backend/deploy/runtime_env/dev.overlay.yaml
This was referenced Nov 15, 2026
Git-on-my-level
added a commit
that referenced
this pull request
Nov 15, 2026
…-clock ratchet red on main) (#25383) One test added by #25352 hands production code a 0.001-second real-clock budget, which the slow-marked real-clock ratchet forbids; that guard has been red on main since #25352 merged. This makes the test's timeout deterministic. Test-only. Failure-Class: none ## What changed `tests/unit/test_sync_playback_metadata.py::test_single_flight_and_user_process_bounds_keep_running_timeout_reserved` no longer sets `OPEN_TIMEOUT_SECONDS` to 0.001 s; it simulates the Future timeout deterministically and still asserts that a running repair keeps its single-flight, per-user and per-process reservations while the caller is told to poll. The ratchet and its allowlist are unchanged. No production code changes. ## Verification `tests/unit/test_real_clock_budget_ratchet.py`, `tests/unit/test_sync_playback_metadata.py` and `tests/unit/test_llm_gateway_coverage_guardrails.py` with slow tests selected: 44 passed on this head (main b78ea01 plus this commit). The same commit is also carried by #25380; whichever merges first makes the other a no-op for this file. Rollback: revert this commit. Author model: GPT-6.1 Sol; integrated by Claude Fable 5.2. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/25383?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Git-on-my-level
added a commit
that referenced
this pull request
Nov 15, 2026
…t for its notes (#25380) A finished non-batch pendant recording can wait forever for its live episode owner even when the owner has been idle past the close gap. Reuse Home's activity-fenced idle close on durable member retries; after 180 seconds of job age, admit one member-note attempt per finalization/content revision while preserving episode grouping. Other sources and batch_live_v1 stay on the original gate. Failure-Class: none ## Tuning and paid-work budget LIVE_MEMBER_NOTES_MAX_DEFERRAL_SECONDS is new: 180 seconds. Before: no finite ownership age cap (0 age exits); after: eligibility at 180 seconds since finalization job creation, observed at the next existing worker delivery. The existing 1,800-second occasion grouping window and default 300-second reconciliation interval are unchanged. In the ro-prod evidence linked by the quality run, 23 of the original 34 Japanese deferrals were still stuck after about one hour. Three minutes permits ordinary settlement while avoiding that unbounded wait. This does not meet five minutes from last speech: Japanese/English job creation p50 was about 30 minutes after speech. The age path applies only to a finished source=omi, non-batch member whose owner remains live after the idle-close attempt, when a finalization retry arrives at least 180 seconds after job creation. At most one additional logical notes-model run per member revision: about 641 measured marker records/day implies at most 641 extra runs/day, roughly US $2.70/day at the fleet mean token estimate of $0.00421338/run. The 47 currently stuck rows imply at most 47 catch-up runs, roughly US $0.20. Optional agent tool/repair model turns are included in that logical-run estimate. These are measured-volume estimates rather than a vendor-spend cap; newer revisions have a separate revision budget. The broader 14,493-record non-batch population does not describe this age-path cohort. Evidence: workspace data/run-2026-11-15-quality-12h/Q12-Q-cost-scope.json and Q12-Q-model-stage-metrics.json. ## State and rollback live_member_notes_fallback_revision is a consumed paid-attempt permit, fenced by job identity, lease epoch/generation and content/finalization revision. Retries and concurrent finalizers cannot buy that same fallback twice. Its terminal/exit path is persisted completion, a newer revision, ordinary processing after owner closure, or explicit recording-detail/user reprocess. An aged finalizer defers without calling the model or consuming a permit when a detail lease owns the obligation, or when the owner snapshot cannot be read. A crash after consumption can leave this extra attempt uncertain; it is not automatically purchased again while the same owner is live. HOME_LIVE_MEMBER_NOTES_BOUNDED_ENABLED defaults on, bound on all five requested finalization hosts plus the cohost pusher in dev and prod. Set off to restore main's original gate and make permit metadata inert. HOME_LIVE_MEMBER_NOTES_DEFERRED_ENABLED remains unchanged. No startup scan, historical recompose, new jobstore read API, grouping change, or composer edit. Required eventual deployment: backend, backend-sync, backend-sync-backfill, backend-integration backend-listen and pusher. The pusher binding preserves the enforced cohost env contract and covers its finalizer entrypoint. ## Product invariants affected - INV-MEM-4: the notes admission guard preserves canonical memory promotion and derived-effect fences. - INV-TASK-2: the existing source-specific task policy stays unchanged; this guard adds no task writer or auto-accept path. ## Verification The original idle-owner and age-bound regressions fail against the original member-note gate. Both final-round regressions (detail lease present and owner read failure) fail before the admission fixes and pass afterward; neither reaches the model or consumes a permit. The new main playback-metadata timeout test now raises TimeoutError from a scoped Future.result stub instead of setting a 1 ms real-clock budget; the production timeout and running-work reservation semantics are preserved. Focused unit tests enforce a 0.25-second call-phase CPU guard. Real loopback Firestore contention verifies exactly one admitted paid attempt per revision under concurrent finalizers and lease retries. Affected suites, cross-service contract, canonical typecheck and installed pre-push hook results are recorded in the final lane handoff. No live acceptance, push, PR, deploy or production mutation is claimed. Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3413 -> 3414 | Keep the single pre-model admission call beside the existing notes invocation and preserve scheduling exceptions. Prepared: 2026-11-15T08:25:25Z One independent review round (GPT-6 Luna, head 179116c): one blocker (paid-once permit could be bypassed when a recording-detail lease held the obligation; owner-read failure failed open), fixed in this head with a failing-first test for each. This head also makes tests/unit/test_sync_playback_metadata.py expire deterministically, which repairs the real-clock ratchet left red on main by #25352. Author model: GPT-6.1 Sol; integrated by Claude Fable 5.2. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/25380?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a pendant recording ends it must be sealed before transcription can start. After tonight's leak fix (#25335) recordings do seal, but slowly: at 04:42Z about a fifth of recordings were sealed within a quarter of an hour of ending, and most seals arrived later through the repair job. This PR ships the two parts of the fast-seal work that are verified, and stages the third off.
Summary
PUSHER_RECORD_CLOSE_FAST_PATH_ENABLED). Optional playback listing no longer blocks the drain that seals a recording; it runs in a bounded background coordinator, with a durable marker so it is rebuilt if it does not finish. When someone opens a recording whose playback list is still pending, the audio URL endpoint builds it on demand for that one recording (consent checked before any storage listing; 8 s bound; coalesced per recording with a cooldown and per-user limits) instead of answering empty, because shipped clients do not poll on an empty list.PUSHER_RECORD_SEAL_WAKE_ENABLED), never clearing a live intake claim.PUSHER_RECORD_CLOSE_NOTIFY_ENABLED), in which listen tells the pusher a recording ended. Five review rounds found a new concurrency defect each time; the last two (a frame in flight in the receiver attributed to the next recording after the previous one committed; an unbounded wait when the next recording is never created) are not fixed. With the switch off, listen offers no capability and sends nothing, and the pusher takes the existing close path. Ramp conditions are below.What this does not do: it does not deliver the roughly one-minute seal. With the handshake off a recording still waits for an existing close signal; how much of the 8 to 10 minute seal time the two ON changes remove is unmeasured.
Details from the authoring lane
Pendant record sealing still needs the verified playback and intake scheduling fixes while close-v2 awaits complete rollover custody proof. Ship playback deferral and atomic intake wake ON; stage close-notify OFF, including its code default for image-only GKE rolls.
Shipping subset and invariants
INV-MEM-4. PUSHER_RECORD_CLOSE_NOTIFY_ENABLED defaults off via default_off and is explicitly false on pusher, backend-listen and Cloud Run backend/backend-sync/backend-sync-backfill/backend-integration, in dev and prod. Listen offers no capability, sends no prepare/commit, and allocates no pending-close/boundary inventories. The pusher allocates no PusherCloseState, advertises nothing, and uses existing closure. The finalization controller skips the new notification callback entirely. Cohost equality remains enforced. No account data, production write, push or deploy is performed here.
PUSHER_RECORD_CLOSE_FAST_PATH_ENABLED and PUSHER_RECORD_SEAL_WAKE_ENABLED remain default on. Playback deferral is in the durable projection worker for existing socket-end, legacy finalization and header-rollover drains, including their timed uploads; it does not depend on close-v2. The marker must commit after verified readback/upload before the producer can close. Native sealing independently calls the claim-safe wake helper in the seal transaction; only completed, fresh, matching record_pending retries/due jobs wake. Live claims, foreign jobs, privacy refusals, partial audio and pending producer tokens remain fenced. The ledger observer runs strictly afterward and cannot undo the wake. The intake retry-marker writer must serve before a future certified retry can be woken; old unmarked future claims remain untouched.
Close-notify ramp: staged, not fixed
The experimental true path still has two reviewed blockers: a frame waiting inside awaited raw archive append can retain X in the archive but reach pusher under Y, outside X's committed watermark; and successor persistence can leave a prepared close deferred indefinitely. Default off makes the deferral/freeze unreachable; it does not claim to fix the opt-in protocol.
Before any opt-in: capture one binding per dequeued frame and reuse it for archive and pusher acceptance; count X's in-flight receiver frames and wait for them before commit; bound deferral and hand off to proof-based repair without sealing early, clearing a foreign token or closing the stream. Add the critical test with a frame paused inside awaited archive.append while successor persistence switches binding. Repeat prepare/flush/commit, reconnect, teardown, delayed/failed successor and accepted-tail custody tests. Keep prepare-only EOF fenced without a final watermark.
Ramp owner Q12-A with the quality lead as expander: synthetic dev, consenting-owner dedicated canary, then fleet only after independent custody/concurrency approval. At each step require no new stream 1011/accepted-byte mismatch, bounded pending-close age/count and no producer_pending/admission growth attributable to the feature; measure close-to-seal and prepared-uncommitted EOF rates. Review by 2026-11-16; absent the proofs, remain off and report the missed ramp. Existing no-protocol clients and incapable peers continue the old close path; no special rollout order is required for this staged subset.
Honest latency expectation
There is NO approximately-60-second end-to-seal promise with notify off. A Cloud Tasks finalization sends no pusher close signal on the existing path. A continuing stream may still wait minutes, or indefinitely during a successor/socket stall, for a legacy finalization request, header rollover or socket end. Once such a close is observed, the durable worker checks every 1 second and forces the remaining batch out; normal completion should be seconds plus mandatory custody/readback/upload, durable marker and Firestore transaction time, rather than waiting for synchronous playback discovery. The open-record batch timer remains 60 seconds. Network/storage failures and other producers can still extend it. The previous 8-10-minute median may persist for records lacking a close signal. The measured shares attributable to missing close notification versus playback discovery are UNMEASURED; no split or new fleet percentile is claimed.
Validation
Local final head 9023e68; main65f46cce8306 merged in02704e643b8e5. Explicit count298 equals len(names), registry/runtime regenerated, line-count exceptions recomputed against65f46 (pusher2050->2174;runtime1545->1547). Seal timestamp stays in the existing conversation patch; certified intake wake remains the other update in the same transaction, followed strictly by the ledger observer. Main's intake/repair stage stamps are preserved.
226 affected unit files exercised, including slow cases: final unique outcomes10922 passed,19 skipped,86 expected xfails. The broad run initially exited1: the helper-budget test retained its old ops_kill assertion, and the pre-existing60-pack slow stress exceeded the1.00s CPU guard (1.40s in parallel). Test-only9023e681ee34 now asserts the staged rollout/default-off/review/ramp contract. Both affected files reran serially at final head:131 passed with the unchanged guard, stress0.97s. No marker/allowlist/guard change. Full-run source head02704e and final source are identical; only that test contract differs. Complete original failures and rerun logs remain in the record.
Default-absent matrix7 passed; native seal/wake14 passed including atomic record_sealed_at and later ledger failure; cross-service contract33 passed/3 skipped. Existing fast-path blocked-worker test covers notify-absent legacy finalization and header rollover, plus staged opt-in coverage. Installed hook PASS at 2026-11-15T05:56:07.928561+00:00 on exact final head: 2119 pytest passes,28 deselected; canonical backend/scripts/typecheck.sh0 errors,84166 warnings,0 informations; all56 preflight gates and pinned formatting passed. Commands/manifests/logs/identities are q12-a-subset-run.py consumers|hook through omi-heavy; rerun used the same test.sh guard with one worker.
No new fast test exceeded0.4s. Existing validator/lifecycle tests reached0.46/0.41s; manual slow stress remains near the1s budget and hit1.40s under parallel load, so retain the CI CPU risk disclosure. Emulator integration services, new-head remote CI/review, production seal time, RSS and actual spend are unverified. No GCP tier/production access, push or deploy.
Capacity and cost
Before, optional close discovery shared 128 storage threads with an unbounded queue. After, WORKERS=2, MAX_CONVERSATIONS=128, MAX_PATHS=2048 process-wide for optional discovery, zero queued executor calls; marker persistence uses two workers and 32 queued calls. Mandatory storage 128 and record-barrier 16 workers/64 queue are unchanged. MAX_CLOSES initial128 and CAPABILITY_OPCODE new:204 are staged protocol constants; disabled connections allocate neither protocol inventories nor pending-close state. Existing demand repair bounds stay two active/process, one active/user, 32 attempts/process and four/user per rolling60s, 30s failure/empty cooldown, 1024 negative-history keys, 8s caller wait. Started timed-out work retains its bounded slot until completion. Four extra lazy optional pusher threads/process (68 across17 processes if used); RSS unmeasured.
Per recording with B uploaded drain batches and P admitted empty playback repairs: B owner point reads and B marker writes; one job read per eligible seal attempt plus at most one wake write; one marker read and one metadata readback per admitted repair, plus consent preflight and strict rebuild/projection reads; at most one version-conditional debt retirement delete on success. Joined/cooldown/refused demand attempts add no IO. At sustained10000 recordings/hour,240000/day and ten seal attempts mean2.4M job reads/day, not1M. Read envelope240000*(B+10+2P+R)/day, R includes privacy/rebuild reads; not measured spend or a billing cap. Existing cold/demand-build consent ordering remains a separate owner follow-up; the new request repair preflights before encoded/raw listing.
Rollback
Keep PUSHER_RECORD_CLOSE_NOTIFY_ENABLED=false everywhere; do not enable it as rollback. To disable the shipping optional playback change, set PUSHER_RECORD_CLOSE_FAST_PATH_ENABLED=false on pusher, backend-listen and all four Cloud Run hosts; pusher-only off leaves reader-side repair active. Set PUSHER_RECORD_SEAL_WAKE_ENABLED=false on pusher to restore polling. Keep PUSHER_RECORD_SEAL_PENDING_RETRY_BOUND_ENABLED=true. GKE tonight is image-only: code defaults control absent env; targeted env patches, not unapplied chart values, control rollback.
Failure-Class: FC-record-producer-outlives-socket-drain
Line-Count-Exception: backend/routers/pusher.py | 2050 -> 2174 | Preserve existing custody ownership while making disabled protocol construction impossible; no close-v2 work runs by default.
Line-Count-Exception: backend/routers/listen/runtime.py | 1545 -> 1547 | Bind the staged notification callback beside the existing finalizer; controller does not call it while notify is off.
Review
Four review rounds (GPT-6 Luna and GPT-6.1 Sol) and the automated Codex review. No audio-overtake path was found in the handshake's prepare/freeze/commit sequence itself; the defects found were around it (rollover, teardown, retries, bindings) and in the playback path (pending list invisible to shipped clients, consent checked after discovery, unbounded on-demand retries, missing fallback telemetry), and are fixed except the two rollover defects named above, which is why the handshake ships off. A final review of this head, checking that the handshake is inert when off and that the two ON changes stand alone, is recorded as a PR comment.
Author model: GPT-6.1 Sol; integrated by Claude Fable 5.2.
Final review (GPT-6 Luna, head 9023e68) found one remaining difference from main with close notify off:
audio_bytes_send()bound an implicit audio run to the current conversation at acceptance instead of at flush. Fixed in 3d16e80 (the binding applies only when notify is enabled) with a staged-off test that fails without it. Two tests that exceeded the CI CPU guard were made cheap (staged-off matrix; sibling probe page size is now the named constantRECORD_SIBLING_PROBE_ROWS, same value 160).🤖 Generated with Claude Code