Repository navigation
fix(listen): bound mobile batch reconnect continuity with producer fencing - #25466
Git-on-my-level merged 3 commits into
Conversation
Drain each socket producer and persist a fixed reconnect deadline before normal durable finalization. Fence competing producers and stale audio/teardown writes without reopening terminal batch work. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72a09f9db9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| finish = speech_clock(uid, row) | ||
| if finish is None: | ||
| return 'fenced' | ||
| quiet = finish + timedelta(seconds=continuation_timeout(row, timeout)) | ||
| end = min(disconnected_at + timedelta(seconds=config.grace_seconds()), quiet, state['boundary_at']) |
There was a problem hiding this comment.
Compute reconnect expiry from committed original audio
For normally persisted server-batch-only captures, stamp_for_write() initializes recorded_end to the capture start. note_server_batch_audio() subsequently advances finished_at and server_batch_audio_end, but not recorded_end, which speech_clock() prefers. Once an ongoing recording is older than its quiet timeout, this calculation therefore produces an already-expired deadline despite freshly committed audio, and a transient socket drop immediately ends and finalizes the conversation instead of granting reconnect grace. Use the committed original-audio extent, as resumable_continuation() now does, or keep the authoritative recorded span synchronized.
Useful? React with 👍 / 👎.
| listen_reconnect.producer(row) | ||
| and (row.get('status') != 'in_progress' or row.get('server_batch_audio_closed')) |
There was a problem hiding this comment.
Drain accepted rollover audio before enforcing the status fence
During a live calendar/day/span rollover, process_conversation() flushes the archive and then schedule_finalization() awaits request_finalization() before _notify_recording_close() retires the receiver binding. Frames accepted during that await still belong to the old conversation, but its status is already processing when their archive commit publishes audio bounds. This new condition rejects even the current producer's legitimate tail, leaving it permanently pending and causing archive-drain and recording-close retries to fail. Retire ingress and join accepted frames before changing status so these frames are not treated as stale producer writes.
Useful? React with 👍 / 👎.
| from database._client import get_firestore_client, run_transactional | ||
| from database.batch_pipeline_privacy import assert_batch_write_allowed | ||
| from models.conversation_continuity import calendar_continuity_window, continuation_timeout, resumable_continuation | ||
| from utils.conversations.lifecycle_clocks import speech_clock |
There was a problem hiding this comment.
Remove the new database-to-utils dependency
backend/AGENTS.md requires “Higher imports from lower, never reverse” for the database/ → utils/ → routers/ → main.py hierarchy. This new persistence module imports the higher-level utils.conversations layer directly, reversing that required dependency direction. Move the shared clock primitive beneath both layers rather than introducing this dependency into the producer transaction module.
AGENTS.md reference: backend/AGENTS.md:L171-L174
Useful? React with 👍 / 👎.
| if not armed: | ||
| return await self.host.persistence.call( | ||
| listen_batch_reconnect.disconnect, |
There was a problem hiding this comment.
Report the fallback when quiet-check persistence fails
If quiet-check persistence throws or refuses the hold, this branch switches from reconnect continuity to immediate terminal finalization without emitting the shared fallback event. backend/AGENTS.md requires “New fallbacks” to call utils.observability.fallback.record_fallback; the warning on the exception path does not satisfy that contract or expose the degraded continuity outcome to existing fallback monitoring. Emit the degraded fallback before forcing the terminal disconnect so outbox failures that cause chapter splits can be monitored.
AGENTS.md reference: backend/AGENTS.md:L322-L322
Useful? React with 👍 / 👎.
Default the reconnect protocol off until readers and all listen revisions are upgraded and old sockets drain. Refuse marked-row resume while disabled, durably end drained holds, and make their existing quiet obligation due immediately. Preserve main behavior for unmarked sessions. Document the Release activation and rollback readback gates, dated ramp, and residual old-listener fence bypass. Cover switch-off during reconnect and the dark deployment transition. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
…reconnect ramp test The new ramp assertion parsed config/feature-flags.yaml with the pure-Python safe loader and exceeded the 1.0 s fast-unit CPU limit on CI (1.27 s). Use the same CSafeLoader fallback the inventory test already uses. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a3c443f6fd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if structured_has_protected_content(conversation.get('structured'), conversation.get('user_title')): | ||
| if structured_has_protected_content( | ||
| conversation.get('structured'), conversation.get('user_title') | ||
| ) and not listen_reconnect.end_due(conversation, recovery_cutoff): |
There was a problem hiding this comment.
Preserve titled holds when an earlier quiet wake arrives
When a user-titled, drained capture retains a quiet-check wake earlier than its grace deadline, end_due() is false and this returns protected_content. This is reachable for legacy batch rows because audio commits advance finished_at, while arm_quiet_check() retains earlier due_at values. _evaluate_quiet_check() treats that refusal as terminal and removes the check's reconciliation index (conversation_quiet_checks.py:235–239), leaving the conversation in_progress without an expiry wake. Keep the finite hold's check pending until its deadline rather than retiring it on an early delivery.
Useful? React with 👍 / 👎.
| _advance(monkeypatch, 1) | ||
| controller = controller_for(batch, 'replacement') | ||
| controller.clock = lambda: NOW + timedelta(seconds=1) | ||
| from routers.listen import conversations as controller_module |
There was a problem hiding this comment.
Move the controller-module import out of the test body
The new rollback test imports controller_module inside the test function, despite backend/AGENTS.md explicitly requiring “All imports at module top level — never inside functions.” Move this alias into the existing module-level import block; routers.listen.conversations is already imported there via LiveConversationController, so no lazy-import seam is needed here.
AGENTS.md reference: backend/AGENTS.md:L168-L168
Useful? React with 👍 / 👎.
* feat(app): recordings and conversations (v3) capability and wire client Reads the per-account switch and the conversation in progress from GET /v1/conversations/live, and adds the audio-manifest and summary-stream clients. A v3 account makes no episode or Home-feed calls: both providers take a suppression hook, so the server episode-call counter that gates deleting the old code only counts released builds. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(app): v3 Home and conversation page For an account on recordings and conversations (v3): - Home is one flat list of conversations under day labels. The conversation in progress is the top row, from the live read. - A row tile shows where the conversation is: the breathing dot while it is going, a spinner while its transcript arrives, a pen while its summary is written, then the emoji. - A finished day label carries a chevron and opens that day summary; Today has none. - Opening a conversation in progress writes its summary and streams it in, with a pen and "Writing your summary…" over a skeleton; another writer falls back to re-reading every 2 s for up to 60 s. Accounts not on v3 see today Home unchanged (tested). Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(app): v3 Home render evidence; live row counts from its start The live row length reads the app clock, the live summary section takes a test stream, and the Home v3 test renders Home, the writing state and the streamed summary. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat: add recording-derived conversation wire contracts Failure-Class: none * feat: derive conversations from per-owner pendant recordings Failure-Class: none * fix: preserve recording audio owners through playback and merge retries Failure-Class: none * fix: keep v3 scheduling off the event loop and retain deletion access Failure-Class: none * fix(app): v3 review round 1 (DeepSeek + Luna) - The switch has an unknown state: until its first answer the app makes no episode or Home-feed read, so a v3 account never makes one; a first-answer server error runs today Home. Both answers are remembered per account. - The feed and episode providers re-check the switch on every read and drop cached episodes when it turns on; wrap-up, dismiss and open are gated. - Capture events refresh the list on a stable key (ids, statuses, steps), at most every 10 s; object identities caused a refresh loop. - The live row leads its day, honours the delete tombstone and home_hidden, cannot be selected for merge or bulk delete, and counts from created_at when started_at is missing. Recordings delivered by the socket never show. - The live poll skips ticks while a page covers Home; one read in flight per account switch. - The live summary keeps its streamed sections when the follow-up read fails, and polls one read at a time. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix: suppress recording intelligence across finalizer replays Failure-Class: none * fix(app): v3 review round 1, tests lane - Tile states, the live row and the on-open summary apply only to an account on v3: an account rolled back keeps today Home whatever old documents say. - Day header: 44 pt tap target and the recap recovery action failure copy. - The tile pen reads "Writing your summary…". - Tests: polling window asserts its exact read count, unwatch stops the poll, failure copy is asserted, v3-off Home asserts the live episode row; light theme evidence. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): v3 review round 1, summary lane (Luna) - A summary that arrives whole in the done frame stays up when the follow-up read fails. - Polling has a wall-clock 60 s deadline, each read bounded by the time left; running out with nothing stored offers Try Again. - The stored summary no longer flashes for a frame beside the writing state. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: validate v3 ownership and declare serving query contracts Failure-Class: none * test: cover released capture polls and finish writer type fences Failure-Class: none * test: verify cursor visibility before renewing query review digest Failure-Class: none * test(app): format the v3 decoder test; the wire decoder owns malformed pieces Sol's generated wire decoder rejects a recording piece missing a required field, so the round-trip test no longer feeds one through the whole conversation; the piece reader's own drop is tested directly. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations): clip v3 playback to claimed windows Failure-Class: audio-window-isolation * fix(conversations): preserve exact audio for backup consumers Failure-Class: none * fix(conversations): close v3 writer, backlog and reader gaps Failure-Class: none * test(conversations): record review regressions and verification Failure-Class: none * fix(conversations): preserve title locks across upstream cleanup Relocate additive declarations so newer owner changes integrate without replacing their code. Cover the post-cleanup title fence and align the outside-query witness with cached admission. Failure-Class: none * fix(config): classify shared conversation rollout settings Declare stage and first capable build as public runtime configuration and pin their regular environment bindings across all Cloud Run services. Failure-Class: none * feat(app): a failed v3 conversation shows a warning tile, never its emoji Quality review: tile_state had no failed value, so a conversation whose transcription or summary failed read as finished on v3 Home. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(conversations): pin final review test selection and scope evidence Record the 651-test component run, scope limitations and repository verification repairs. Freeze the worktree for the required full preflight. Failure-Class: none * fix(app): an unreadable live row never leaves the v3 switch unanswered The compact live row from conversations/live omits finished_at, which the generated decoder requires, so the whole read failed. On a first launch that left the switch unresolved and held back both Homes. The switch now resolves from the v3 flag alone; an unreadable row is no live row. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations): honor manual intent and show failures and recognition uncertainty Failure-Class: none * test(conversations): separate v3 writer declarations from concurrent additions Failure-Class: none * fix(conversations): retain window mapping type when closing failed transcription Failure-Class: none * fix(conversations): offload async failure helpers through managed executor Failure-Class: none * test(app): a failed v3 conversation decodes through the generated wire type Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations): close final playback paging and lease integration gaps Failure-Class: none * fix(conversations): retain bounded personal context in v3 notes and outlines Reuse the composer context pack in one-shot notes, bound outline context, and version effective outline inputs. Keep context-only changes outside summary rewrite scheduling. Failure-Class: none * docs(conversations): record round-four context verification Record exact test commands, corrected rerun counts, frozen preflight receipt, token bounds and optional participant-linking boundary. Failure-Class: none * fix(conversations): pin v3 notes prompt and conversation fields against main's guards Main added the notes prompt-digest pin and the exact Conversation field pin after the v3 branch point. notes-6 covers the v3 notes path (all behind v3_models.active()); notes-5 stays reusable because non-v3 output is unchanged. The v3 fields are server-written by the builder, not projection-family. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(app): v3 Home render evidence includes the failed tile Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations): classify readers main added since the v3 branch point Episode live members (#25481), listen batch reconnect (#25466), notes quality repair (#25462), batch retention and enrichment custody each read conversations by id. Classify them for the v3 reader audit: capture, retention and custody own the recording layer; the episode and notes-repair writers are storage that never targets a recording. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * refactor(app): v3 decoders to schema, summary stream to a service The API-result boundary allows no null-swallowing or catch in backend/http/api/. The v3 wire types and their decoders move to backend/schema/conversation_v3_wire.dart (re-exported by the API file), and the summary stream consumer, which maps a 409 to SummaryInProgress, moves to services/conversation_summary_stream.dart. No behaviour change. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(app): purpose headers on the new v3 app files Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): emoji tile uses the shared OmiType scale Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(app): regenerate the perf production shell for the v3 provider Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: regenerate client type method counts after merging main Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: align export and action-item tests with the v3 readers Data export deliberately includes recordings (include_recordings=True), and the conversation action-items route reads through read_product_conversation, which the stubbed-import test must call through. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: drop review-panel scoping briefs from the v3 evidence They were the prompts for the per-round scoping panels, not evidence; the per-round evidence and test inventories stay. Keeps the PR under the compare API's 300-file window the UI approval guard reads. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations-v3): address review — drop audio manifest, chat SSE newlines, dedupe, live close refresh - Remove the unused /v1/conversations/{id}/audio-manifest route and its models: it returned whole pieces without subtracting deleted spans. Playback and export use the window-exact conversation_audio artifact from /urls. - Summary stream sections travel in the chat SSE framing (newlines as __CRLF__), which the app's chat stream decoder turns back into newlines. - Outline dedupe drops only the same speech captured by another recording at an overlapping time; a sentence repeated within one recording is kept. - v3 Home re-reads the conversation list when the conversation in progress closes, so it appears as an ordinary row without waiting for a processing change. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations-v3): hydrated transcript, merged legacy audio, settled partials, redirect host - Projection reads the hydrated recording transcript (manual speaker corrections and the recurring-voice privacy filter applied); the strict decode only proves it is readable. - Playback resolves audio a merge copied from a legacy conversation (no recording alias) to the merged conversation's own file, so it stays in the window-exact artifact. - A partial-recording marker counts as pending transcription only until its newest planned generation is applied; a settled recording no longer pins its windows in "transcribing". - The v3 audio download redirects only to a Cloud Storage https signed URL. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations-v3): green the full backend suite and gauntlet; stay under 300 files - v3 markers count only when literally True (policy.flag): a truthy stand-in no longer sends non-v3 conversations down the recording or v3 paths. - v3 model module loads LangChain providers on first use, so importing process_conversation does not pull in every chat-model provider. - /summary/stream is exempt from gzip like the other streaming routes. - Deploy: the v3 stage, first build and task queue are declared on every product host and mapped to staging-conversations-v3 in staging; pusher/listen charts bind them; the v3 sweeper is not declared in dev, whose data plane is production Firestore. - Test fakes accept the new allow_recording / include_recordings / v3_enabled arguments, the listen-pusher harness forwards lookup options, and inventories/baselines list the new readers and context loads with their reasons. - Review-round test logs move out of the repository; the four change notes merge into one; Conflict lives in the v3 package; two small test files fold into their siblings; the four render frames are one composite image. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(flags): re-render registry for the v3 chart bindings Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations-v3): track the composite render evidence; classify the v3 task queue binding Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations-v3): strongest protection, custom-STT provenance, rewrite coverage, backfill batches - A derived conversation keeps the strongest protection of any contributing recording and never drops below its own (enhanced speech is never stored as standard). - uses_custom_stt follows any contributing custom-STT recording, so the paid-postprocessing guard still applies to the copy. - A late-speech rewrite clears summary_covers_through, so the covered-summary guard cannot return the old notes and spend the only automatic rewrite. - Multi-batch backfill: its own recording/structured conversion is not a race, and converted donors keep a durable pending obligation until the final batch lands. - The pusher canary test expects the v3 config-map references; the v3 gateway feature map lives in the gateway config loader (its only reader), keeping the PR under GitHub's 300-file compare. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(conversations-v3): null recording pieces stay legacy; keep repeats; re-arm on late audio - has_recording_pieces: the Conversation model defaults recording_pieces to None, so ordinary rows written through it carry the key; only a list (even empty) selects v3 playback, in /urls, the artifact task and builder, and plugin backup. - Late merges into a finished copy drop same-text lines only when they overlap the stored line in time; a repeated sentence a few seconds later is kept. - update_conversation re-arms the v3 builder when audio_files land on a settled recording (sync finalize, merges, projection repair), so the conversation gains its recording pieces. - The lifecycle writer inventory lists the planner's uses_custom_stt sibling field. Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(playback): keep the Optional narrowing before the v3 snapshot Failure-Class: new Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Build on #25460, which stopped mobile socket drops from immediately finalizing batch captures. Bound the hold for known recording origins/devices to a configurable reconnect grace, default 120 seconds, rather than waiting the full occasion quiet window. Resume the same conversation only for the same recording origin, device and source. Preserve #25460 recovery for older or identity-less sessions. The existing durable quiet-check outbox owns expiry and normal finalization; explicit stop and earlier quiet/calendar/day/span boundaries still end it.
Producer tokens fence competing sockets, stale teardown and late original-audio metadata writes. Archive packs remain immutable per socket, custody ACKs still require durable receipts, and finalization/batch IDs, generations, leases and paid-work admission stay authoritative. Sealed or terminal batch obligations are never reopened.
Lead-approved scope: prevention through bounded reconnect grace only. Terminal-successor composition and historical consolidation (A2) remain with the Home redesign/sync projection owners; duration presentation (A3) is separate. No app UI, sync merge/projection-session, pusher relay, production configuration or workflow changes. Main advanced during implementation; the rebased PR preserves the earlier fix and its regression tests.
Verification
Synthetic tests cover 18 short sockets across an hour yielding one conversation and one deterministic batch registration, exact expiry, restart/replay, explicit end, real quiet timeout, calendar/day/span boundaries, concurrent producer claims, reconnect ABA, late writes, archive-drain failure, manual title edits, terminal immutability, all close-code classes, and kill-switch off. Q12-R31 regressions additionally disable between disconnect and the real controller resume path, prove due-now finalization without token replacement or terminal reopen, exercise off-reader expiry before stored grace, and model dark-deploy/enable/drain transitions.
backend/.venv/bin/python -m pytest -q -p no:cacheprovider tests/unit/test_listen_batch_reconnect_grace.pyomi-heavy, without Google or CLOUDSDK credentials.firebase emulators:exec --only firestore --project demo-listen --config <isolated-scratch-config> "backend/.venv/bin/python backend/scripts/listen_lifecycle_emulator_test.py": passed real competing producer transactions, ABA and late-write fences plus existing lifecycle contention contracts.These are local synthetic/runtime-controller and emulator results. No live authenticated endpoint, device acceptance, production deployment, vendor billing measurement or measured fleet chapter reduction is claimed.
Rollout and rollback
LISTEN_BATCH_RECONNECT_ENABLEDnow defaults false, per the Q12-R31 lead decision. Only trimmed case-insensitivetrueenables enrollment. Dark deployment preserves origin/main behavior for unmarked recordings.LISTEN_BATCH_RECONNECT_GRACE_SECONDSdefaults 120 and clamps to 1..120, well below the 1,800-second occasion timeout; packet timing supported this bounded window. Processing admission is due at expiry; queue/STT/summary retain existing latency.Activation gate: Release deploys upgraded finalization/reconciler/backend readers and then every listen pod through its train with the flag off. Verify running SHAs, zero old listen pods and zero sockets on old revisions, including terminating instances. Only then enable consistently on readers and listen. Use a small canary percentage if routing can keep every reconnect in the enabled pool; otherwise activate fleet after that gate. This PR adds no percentage selector. Quality reviews each clean window; Release expands through its train, with proposed completion/flag review 2026-11-20. Keep off and report a block if the gate/window is unavailable.
Clean metrics: chapters per hour per active recording, finalization lag within grace plus observed reconciler latency for drained holds, zero drained
in_progressrows older than grace plus reconciler period, and exactly one batch obligation per finalized generation. Local tests do not establish those production metrics.Rollback gate: set the switch off on all upgraded listeners and readers, keep those binaries running, and drain active sockets there. Marked holds refuse resume, durably end and rearm due now on reconnect; off readers also bypass stored grace. Wait more than 120 seconds plus one observed reconciler period after the last enabled process/socket drains (source default 60 s with quiet finalization on: >180 s minimum). Verify aggregate counts of all marked
in_progressrows, held rows and overdue holds are zero before rolling back listen. Keep upgraded readers until outstanding finalization work drains. Any nonzero/unknown count or unavailable reconciler blocks rollback. A projection-only collection-group readback recipe is in the rollout note; this lane did not execute it.Residual mixed-version risk: old listeners can resume marked in-progress rows and write/close metadata without tokens. There is no safe cheap existing exclusion field: deleted/discarded/locked also alter privacy/finalization/presentation. The default-off and all-new-listener drain gates are required; mixed active listener versions are unsafe. No deployed-fleet guard or production flag/config change is claimed. Pusher retains its existing upload/close wire protocol.
Expected effect: a continuous one-hour meeting with same-origin reconnects under the grace and no semantic boundary stays one chapter instead of a chapter per socket. The local synthetic shape is 18 sockets to 1 chapter; this is not a measured fleet outcome. Reconnects after expiry or terminal admission still create separate chapters.
Product invariants affected
INV-CAP-1: no new capture pause or permission to reclaim audio; failed drain publishes no grace/close proof and grants no acknowledgement for uncommitted audio.
Line-Count-Exception: backend/database/conversation_finalization_jobs.py | 3630 -> 3639 | Keep the small reconnect ownership/deadline hook at its existing lifecycle boundary; the protocol implementation is isolated in new bounded modules.
Line-Count-Exception: backend/routers/listen/runtime.py | 1555 -> 1570 | Keep the small reconnect ownership/deadline hook at its existing lifecycle boundary; the protocol implementation is isolated in new bounded modules.
Failure-Class: none
🤖 Generated with Claude Code