Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 6, 2026, 8:55 PM ET / September 7, 2026, 00:55 UTC. ClawSweeper reviewWhat this changesThe branch separates Discord recording from voice connections, adds searchable meeting archives and capture settings, and restricts reuse of custom capture IDs. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 17 items remain Keep open for the explicitly approved fixed-ID/history repair. The merged successors cover substantial earlier work, but the preserved head still contains actionable defects and does not implement the accepted ID-origin policy. Maintainer ownership also precludes automatic closure. Priority: P2 Review scores
Verification
How this fits togetherDiscord audio and configured room occupancy feed the transcript capture service, which saves meeting records in SQLite. Agent tools and the Control UI subsequently read, summarize, export, or stop those captures. flowchart TD
A[Discord audio and occupancy] --> B[Capture admission]
C[Configured source and agent ownership] --> B
B --> D{New or reopened capture}
D --> E[SQLite meeting archive]
E --> F[Agent transcript tools]
E --> G[Meetings reader and downloads]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The original reopening change can transfer historical capture mutation authority across agents. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Build the approved residual repair on current main, recording immutable ID origin in the existing admission write while retaining current ownership checks, canonical Meetings UI, and archive compatibility. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the remaining fixed-to-generated trigger: stop a fixed capture, switch the same source to generated occupancy capture within the reopen window, and its recent row remains eligible without an ID-origin check. No runtime reproduction was executed in this review. Is this the best way to solve the issue? No for the preserved branch as a landing candidate; it retains defects already repaired by successors. The accepted admission-owned metadata approach is appropriate because ID spelling or current configuration cannot recover a missing historical origin fact. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2413c5e3dcde. LabelsLabel justifications:
EvidenceSecurity concerns:
What 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 (15 earlier review cycles; latest 8 shown)
|
|
The reviewed failed-promotion finding and both rank-up moves are addressed in 10e68a9c4c4. Normal-join ownership remains provisional until realtime activation succeeds. Failed promotion preserves an existing capture/manual/occupancy owner; if recording was stopped during the pending promotion and no owner remains, its connection closes. Cleanup checks the exact generation and transport. The regression suite covers both realtime modes, stop during and after failure, replacement capture, retry, cancellation, and late completion without disturbing a replacement. The same investigation found a recording gap while promotion awaited bootstrap or connect. Both added cases first failed with zero utterances. The existing ready transport now remains eligible for recording during that transition, without granting conversational authority early; new, stopped, replaced, or wrong-generation transports remain fenced. The two failures in the initial CI run were repaired rather than retried away. The transcript registry now owns a narrow structural manager contract, eliminating the concrete-class type cycle without changing either cycle guard. The long-speech test awaits decoder callbacks and actual WAV/processing-queue completion before asserting transcription, still before closing the input stream; no timeout increase or success mock was added. A subsequent CI boundary guard caught that test importing the repo-only deferred helper. 9e6a715af50 switches it to the existing public The preceding status fix also makes automatic capture IDs actionable from model-visible tool content. The added listing is bounded to five rows and 2,000 characters, omits whole oversized rows instead of clipping opaque IDs, and preserves authorization and complete structured details. Validation:
Latest focused command: OPENCLAW_E2E_SKIP_BUILD=1 node scripts/run-vitest.mjs extensions/discord/src/voice/voice-session.promotion.test.ts extensions/discord/src/voice/transcripts-capture.test.ts extensions/discord/src/voice/transcripts-recording.test.ts extensions/discord/src/voice/transcripts-source.test.ts extensions/discord/src/voice/voice-auto-join.test.ts extensions/discord/src/voice/voice-session.lifecycle.test.ts extensions/discord/src/voice/voice-session.startup.test.ts extensions/discord/src/voice/voice-receive.test.ts extensions/discord/src/voice/receive-recovery.test.ts extensions/discord/src/voice/voice-following.test.ts extensions/discord/src/voice/manager.ready-listener.test.ts extensions/discord/src/voice/command.test.ts extensions/discord/src/voice/voice-runtime.e2e.test.tsOPENCLAW_VITEST_MAX_WORKERS=2 node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-discord.config.tspnpm check:import-cyclespnpm check:madge-import-cyclespnpm buildData-model clarification: the voice session and capture registry are process-local objects, not serialized storage or vector metadata. The only persisted ownership value uses the existing transcript A live installation of production commit Proof limit: no fresh voice utterance was captured in that verification window. Multi-speaker audio and injected failure transitions are covered by the boundary/regression tests above, not claimed as a new live conversation test. The unrelated Fresh-session readiness finding and rank-up movesThe latest reviewed finding is repaired by c3421dfcb6b. Native Before the production change, six readiness cases failed with zero subscriptions and six negative controls passed. Final coverage includes both event/scan orderings, the native dependency's speaking map, real streams/WAV materialization, exactly-once per-speaker publication and no conversational fallthrough. 218 tests across 12 files passed, including all 13 readiness cases. The replacement-capture regression also asserts that its retired pending connection cannot subscribe a pre-existing speaker. node scripts/run-vitest.mjs extensions/discord/src/voice/transcripts-readiness.test.ts extensions/discord/src/voice/transcripts-recording.test.ts extensions/discord/src/voice/transcripts-capture.test.ts extensions/discord/src/voice/transcripts-source.test.ts extensions/discord/src/voice/voice-session.startup.test.ts extensions/discord/src/voice/voice-session.lifecycle.test.ts extensions/discord/src/voice/voice-session.promotion.test.ts extensions/discord/src/voice/voice-auto-join.test.ts extensions/discord/src/voice/voice-receive.test.ts extensions/discord/src/voice/receive-recovery.test.ts extensions/discord/src/voice/capture-state.test.ts extensions/discord/src/voice/voice-following.test.ts --reporter=verboseScoped typed lint, plugin test typecheck, formatting and diff checks passed. Fresh independent Codex review reported no actionable P0–P2 findings. The complete build passed in 4m59.5s with 341,196 B startup gzip under the unchanged 343,442 B ceiling and all 770 sidecars verified. Both latest rank-up moves are covered by the readiness repair and controlled boundary proof. No fresh live human voice input was available; these are not represented as a new live Discord conversation. Final-head CI33072836910 completed with only |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Keep failed provider cleanup recoverable through the original admitted provider, and fence late callbacks and stop work to the exact capture lifecycle. Preserve stored agent, source, title, and retry identity during continuation. Move lifecycle ownership into the transcript domain and leave tools as adapters. Preserve current occupied-source ID handling and storage admission behavior. Related: #130860
…39572) Keep failed provider cleanup recoverable through the original admitted provider, and fence late callbacks and stop work to the exact capture lifecycle. Preserve stored agent, source, title, and retry identity during continuation. Move lifecycle ownership into the transcript domain and leave tools as adapters. Preserve current occupied-source ID handling and storage admission behavior. Related: #130860
Keep explicit recording owned by its source across connection and manager replacement. Receive each speaker once, retain packet-time capture authority, and share completed batch transcription with authorized conversation. Separate recording progress from conversation admission and replies, fence incomplete or retired conversation input, and bound receive, conversation, and queued WAV work. Retain WAV ownership through delayed processing and cleanup, including when a retired recording hands off to conversation. Preserve short authorized recording chunks and distinguish completed empty transcription from omitted media input. Document lifecycle and limit behavior. Split from #130860. Follows #139484 and #139572. Related: #127426.
…law#139484) Keep temporary WAV input alive through queued and in-flight transcription, then release the owning workspace on every completion or discard path. Failed writes release their partial workspace immediately. Extracted from openclaw#130860.
…enclaw#139572) Keep failed provider cleanup recoverable through the original admitted provider, and fence late callbacks and stop work to the exact capture lifecycle. Preserve stored agent, source, title, and retry identity during continuation. Move lifecycle ownership into the transcript domain and leave tools as adapters. Preserve current occupied-source ID handling and storage admission behavior. Related: openclaw#130860
Preserve existing per-speaker realtime finals when batch audio is disabled or the actual media runtime confirms no backend is available. Carry packet capture receipts through delayed admission and wait for every batch result; successful, silent, failed, mixed, or incomplete input cannot duplicate or authorize fallback notes. A provider continuity reset permanently retires the recording owner until a fresh speaker connection establishes receipts. Bound pending final text and surface limited coverage through /vc status. Document the independent batch path and the narrower realtime-only contract. Related to #130860 and #139658.
) * fix(discord): keep recording independent of voice conversations Keep explicit recording owned by its source across connection and manager replacement. Receive each speaker once, retain packet-time capture authority, and share completed batch transcription with authorized conversation. Separate recording progress from conversation admission and replies, fence incomplete or retired conversation input, and bound receive, conversation, and queued WAV work. Retain WAV ownership through delayed processing and cleanup, including when a retired recording hands off to conversation. Preserve short authorized recording chunks and distinguish completed empty transcription from omitted media input. Document lifecycle and limit behavior. Split from #130860. Follows #139484 and #139572. Related: #127426. * fix(discord): keep package-boundary types portable Spell the existing channel-resolution union within the plugin and type the transcript fixture callback with its public SDK contract. This removes a forbidden normalization-core import and prevents Vitest's private Procedure type from leaking into generated declarations. Validation: normalization import guard, all 123 plugin package boundaries, extension and root integration types, 53 voice cases and two core provider integrations, and scoped P0-P2 review. * fix(discord): retain safely bound realtime-only recordings Preserve existing per-speaker realtime finals when batch audio is disabled or the actual media runtime confirms no backend is available. Carry packet capture receipts through delayed admission and wait for every batch result; successful, silent, failed, mixed, or incomplete input cannot duplicate or authorize fallback notes. A provider continuity reset permanently retires the recording owner until a fresh speaker connection establishes receipts. Bound pending final text and surface limited coverage through /vc status. Document the independent batch path and the narrower realtime-only contract. Related to #130860 and #139658. * test(discord): declare capture-only fixture capability Keep fake transcript managers aligned with the required realtime capability query. These integration fixtures have no realtime conversation and return false without weakening the production interface. Validation: canonical root test types, provider integration, scoped lint, and independent P0-P2 review passed. * refactor(discord): make recording contracts a type-only leaf Move capture, packet-receipt, and segment-result contracts out of their runtime owners, breaking the full import graph cycle. Narrow realtime recording metadata to the three strings it consumes. All six existing modules emit identical JavaScript; the new leaf emits none. Validation: both import-cycle guards, three canonical type lanes, 18 focused tests, lint, full build, and scoped P0-P2 review passed.
Add bounded archive search, paging, exports, and capture status over the existing SQLite records. Preserve canonical stored Markdown, public projection privacy, shared-archive access control, and original capture ownership during title edits. Only complete plugin metadata can establish that a source is unavailable. Compare stored dates by instant without rewriting their identity. Select bounded page keys before projecting notes and participants. Keep storage admission, schema, indexes, and current occupied-source ID behavior intact. Related: #130860 Builds on #139572 and #139658.
Add bounded archive search, paging, exports, and capture status over the existing SQLite records. Preserve canonical stored Markdown, public projection privacy, shared-archive access control, and original capture ownership during title edits. Only complete plugin metadata can establish that a source is unavailable. Compare stored dates by instant without rewriting their identity. Select bounded page keys before projecting notes and participants. Keep storage admission, schema, indexes, and current occupied-source ID behavior intact. Related: #130860 Builds on #139572 and #139658.
* feat(transcripts): browse and export saved meeting archives Add bounded archive search, paging, exports, and capture status over the existing SQLite records. Preserve canonical stored Markdown, public projection privacy, shared-archive access control, and original capture ownership during title edits. Only complete plugin metadata can establish that a source is unavailable. Compare stored dates by instant without rewriting their identity. Select bounded page keys before projecting notes and participants. Keep storage admission, schema, indexes, and current occupied-source ID behavior intact. Related: #130860 Builds on #139572 and #139658. * refactor(transcripts): distinguish stored and public notes readers * fix(transcripts): preserve legacy archive reads and speaker identities Preserve v2026.9.2 requests without paging arguments as the recent 2,000-row window, with UTF-16 clipping and the historical transport ceiling. Keep modern pages and downloads on their separate byte bounds. Map stored speaker IDs and labels independently through the public read projection without parsing provider-only utterance metadata. * test(transcripts): isolate timezone and cross-plugin E2E fixtures Run native timezone coverage in a process started with the requested zone. Keep hello lifecycle coverage on its supplied method list and move the Gateway/Discord integration proof to the root E2E owner without changing its assertions or resolved import targets. * test(transcripts): include archive methods in current inventory * refactor(transcripts): anchor methods after shipped catalog Preserve the full v2026.9.2 catalog prefix and every named descriptor while letting later main method additions merge independently.
Load saved summaries through their existing selector-only read contract, independently of bounded speech pages. Keep valid notes and exports available when a paged read exceeds its limit, with shared access revocation and stale response fencing across both requests. Cover the oversized-summary regression, both read lifecycles, and browser reload request contracts. Align the Communications E2E subtitle with the existing meeting-capture settings copy. Validation: 32 reader cases, 11 browser E2E cases, 3 Chromium layout cases, UI types, changed-code checks, and independent P0-P2 review. Refs: #130860, #140084
…40084) * feat(control-ui): browse meeting notes and manage capture sources Add a paginated Meetings library with stored notes, full-transcript search, complete Markdown/JSONL downloads, and accessible mobile navigation. Keep capture configuration in native Communications controls using the shared provider metadata and Gateway configuration flow. Separate route state, rendering, and capture editing from request ownership. Fence asynchronous reads and exports to the active connection and selection, clear denied content, preserve drafts, and keep feature copy lazy-loaded. Retain existing capture IDs and reopening behavior. Validation: focused UI/catalog tests, changed-code checks, UI build and unchanged performance budgets, independent review, and isolated real Gateway/SQLite/Chromium proof with complete native downloads. Refs: #130860 * fix(control-ui): keep large saved meeting notes readable Load saved summaries through their existing selector-only read contract, independently of bounded speech pages. Keep valid notes and exports available when a paged read exceeds its limit, with shared access revocation and stale response fencing across both requests. Cover the oversized-summary regression, both read lifecycles, and browser reload request contracts. Align the Communications E2E subtitle with the existing meeting-capture settings copy. Validation: 32 reader cases, 11 browser E2E cases, 3 Chromium layout cases, UI types, changed-code checks, and independent P0-P2 review. Refs: #130860, #140084
Record generated or supplied ID origin at native admission and preserve it through later same-identity writes. Reopen only the newest explicitly generated occupancy candidate; keep supplied and unknown legacy history intact and start fresh without falling back to an older meeting. Keep provider metadata separate from admission facts and preserve origins through existing Doctor restoration. No schema, index, configuration, or version change. Older runtimes do not enforce the new history policy. The legacy restart tradeoff was explicitly approved in #130860. Validation: 103 focused cases, regression-first store/reopen proof, core and test types, changed-code guards, lint, and independent review. Refs: #130860
…claw#139658) * fix(discord): keep recording independent of voice conversations Keep explicit recording owned by its source across connection and manager replacement. Receive each speaker once, retain packet-time capture authority, and share completed batch transcription with authorized conversation. Separate recording progress from conversation admission and replies, fence incomplete or retired conversation input, and bound receive, conversation, and queued WAV work. Retain WAV ownership through delayed processing and cleanup, including when a retired recording hands off to conversation. Preserve short authorized recording chunks and distinguish completed empty transcription from omitted media input. Document lifecycle and limit behavior. Split from openclaw#130860. Follows openclaw#139484 and openclaw#139572. Related: openclaw#127426. * fix(discord): keep package-boundary types portable Spell the existing channel-resolution union within the plugin and type the transcript fixture callback with its public SDK contract. This removes a forbidden normalization-core import and prevents Vitest's private Procedure type from leaking into generated declarations. Validation: normalization import guard, all 123 plugin package boundaries, extension and root integration types, 53 voice cases and two core provider integrations, and scoped P0-P2 review. * fix(discord): retain safely bound realtime-only recordings Preserve existing per-speaker realtime finals when batch audio is disabled or the actual media runtime confirms no backend is available. Carry packet capture receipts through delayed admission and wait for every batch result; successful, silent, failed, mixed, or incomplete input cannot duplicate or authorize fallback notes. A provider continuity reset permanently retires the recording owner until a fresh speaker connection establishes receipts. Bound pending final text and surface limited coverage through /vc status. Document the independent batch path and the narrower realtime-only contract. Related to openclaw#130860 and openclaw#139658. * test(discord): declare capture-only fixture capability Keep fake transcript managers aligned with the required realtime capability query. These integration fixtures have no realtime conversation and return false without weakening the production interface. Validation: canonical root test types, provider integration, scoped lint, and independent P0-P2 review passed. * refactor(discord): make recording contracts a type-only leaf Move capture, packet-receipt, and segment-result contracts out of their runtime owners, breaking the full import graph cycle. Narrow realtime recording metadata to the three strings it consumes. All six existing modules emit identical JavaScript; the new leaf emits none. Validation: both import-cycle guards, three canonical type lanes, 18 focused tests, lint, full build, and scoped P0-P2 review passed.
Supply a small method list to the handler and assert it in both original and renewed hellos. Keep full advertised method inventory coverage in the existing dedicated test, avoiding unrelated RPC additions in these three Serve withdrawal cases. Related to openclaw#130860 and openclaw#139875.
…#139875) * feat(transcripts): browse and export saved meeting archives Add bounded archive search, paging, exports, and capture status over the existing SQLite records. Preserve canonical stored Markdown, public projection privacy, shared-archive access control, and original capture ownership during title edits. Only complete plugin metadata can establish that a source is unavailable. Compare stored dates by instant without rewriting their identity. Select bounded page keys before projecting notes and participants. Keep storage admission, schema, indexes, and current occupied-source ID behavior intact. Related: openclaw#130860 Builds on openclaw#139572 and openclaw#139658. * refactor(transcripts): distinguish stored and public notes readers * fix(transcripts): preserve legacy archive reads and speaker identities Preserve v2026.9.2 requests without paging arguments as the recent 2,000-row window, with UTF-16 clipping and the historical transport ceiling. Keep modern pages and downloads on their separate byte bounds. Map stored speaker IDs and labels independently through the public read projection without parsing provider-only utterance metadata. * test(transcripts): isolate timezone and cross-plugin E2E fixtures Run native timezone coverage in a process started with the requested zone. Keep hello lifecycle coverage on its supplied method list and move the Gateway/Discord integration proof to the root E2E owner without changing its assertions or resolved import targets. * test(transcripts): include archive methods in current inventory * refactor(transcripts): anchor methods after shipped catalog Preserve the full v2026.9.2 catalog prefix and every named descriptor while letting later main method additions merge independently.
…enclaw#140084) * feat(control-ui): browse meeting notes and manage capture sources Add a paginated Meetings library with stored notes, full-transcript search, complete Markdown/JSONL downloads, and accessible mobile navigation. Keep capture configuration in native Communications controls using the shared provider metadata and Gateway configuration flow. Separate route state, rendering, and capture editing from request ownership. Fence asynchronous reads and exports to the active connection and selection, clear denied content, preserve drafts, and keep feature copy lazy-loaded. Retain existing capture IDs and reopening behavior. Validation: focused UI/catalog tests, changed-code checks, UI build and unchanged performance budgets, independent review, and isolated real Gateway/SQLite/Chromium proof with complete native downloads. Refs: openclaw#130860 * fix(control-ui): keep large saved meeting notes readable Load saved summaries through their existing selector-only read contract, independently of bounded speech pages. Keep valid notes and exports available when a paged read exceeds its limit, with shared access revocation and stale response fencing across both requests. Cover the oversized-summary regression, both read lifecycles, and browser reload request contracts. Align the Communications E2E subtitle with the existing meeting-capture settings copy. Validation: 32 reader cases, 11 browser E2E cases, 3 Chromium layout cases, UI types, changed-code checks, and independent P0-P2 review. Refs: openclaw#130860, openclaw#140084
…#140563) Record generated or supplied ID origin at native admission and preserve it through later same-identity writes. Reopen only the newest explicitly generated occupancy candidate; keep supplied and unknown legacy history intact and start fresh without falling back to an older meeting. Keep provider metadata separate from admission facts and preserve origins through existing Doctor restoration. No schema, index, configuration, or version change. Older runtimes do not enforce the new history policy. The legacy restart tradeoff was explicitly approved in openclaw#130860. Validation: 103 focused cases, regression-first store/reopen proof, core and test types, changed-code guards, lint, and independent review. Refs: openclaw#130860
Split landing status (2026-09-07 UTC)
The reviewed implementation has landed through seven focused successors. This original PR is closed as superseded; its original head
8eb2d87c7215cea96fcb1561d5a7f43f3f349cddand branch are preserved as historical context. The final successor implements the explicitly approved fixed-ID and legacy-history policy below.Merged through the native maintainer workflow with green required CI:
91bcdd409803131e84a754bb078b9fd1e0fe5603.e8c344525327e565678d03743ff7cadd2f7bd6ef.c6ef1f277e8b9466f051a7afe0c8224f46ec7323.4ec026a5bfc8946d57430453ca5c4ddb93a0b449.3f123833e455f66fbec87553d08abed784e58aa2.6ce5c1df3e0f6d87d7f353a20bdf3000d0d442eb.44f047f9b608fab89ef32a8042a0278d5bae17e0.The split removes coupled recording/conversation lifetimes and keeps stale transcription work from reaching replacement captures. Archive compatibility and UI summary access were repaired at their owners without weakening byte limits, assertions, CI gates or performance budgets. The approved ID-origin policy is implemented in existing metadata. No schema, index, configuration option or protocol/package version was added.
Live proof used isolated actual Gateways, SQLite and Chromium with synthetic data. The 55-session/310-utterance browser flow covered paging, search beyond loaded speech, deep links, stored notes, native source editing, title-only configuration apply and mobile navigation. Markdown/JSONL native downloads matched their RPC bytes. The final large-summary proof verified a 2,623,030-byte selector-only result, the unchanged 1 MiB page rejection, readable bounded preview, a 1,311,399-byte native download preserving all canonical notes, and ordinary 50+10-row paging. Its 58 source hashes bind the UI/runtime owners to the final candidate; exact-head CI separately validates the repository. Inspected before/after and regression media are attached to #140084.
The Gateway agent/tool/Discord-owner fixture separately proved capture, independent recording, stop, late-STT exclusion, a second capture and WAV cleanup with synthetic channel/model dependencies. Authenticated synthetic OpenAI speech generation and the real batch-transcription pipeline also passed. No new external Discord room conversation is claimed. Archive proof covered offset-date cursors, full-text modern paging, independent speaker IDs and the preserved legacy window. The relocated capture test passed; its wrapper's ANSI-summary parsing error is explicitly qualified in #139875.
CI exposed timezone and UI fixture assumptions, which were corrected without relaxing checks. Archive CI passed after one exact-job retry of an unchanged Android readiness race; final UI CI passed after the intended subtitle expectation and large-summary compatibility repair. All task-owned live-proof leases are stopped. The final history-policy successor passed 103 focused cases, core types, the full changed-code gate and independent P0–P2 review. Nine regressions failed before repair. Exact-head CI passed on
f69ef976d1b40eabeec85f91e1a35133d89a7734. Its isolated live proof used three actual Gateway processes sharing fresh SQLite state and production archive WebSocket RPCs. Generated history reopened in place; supplied/generated-looking and absent/invalid legacy histories started fresh without changing prior notes; a newer ineligible row blocked fallback to older generated history. All 59 frozen source hashes and the expected ten final rows were verified. Provider occupancy and text were synthetic. An initial HTTP-tool harness failed before policy validation; the supported Gateway lifecycle/RPC proof passed without changing product authorization. The proposal and historical candidate evidence below are retained as context, not as the source or proof of these merged successors.Accepted design: fixed IDs and legacy reopening
Accepted by @steipete on 2026-09-07 and implemented in merged #140563. Approval: “Approve starting fresh when a legacy capture’s ID origin is unknown.” The approved scope is the policy below, including preserving legacy records and using the existing metadata store without schema, index, configuration, or version changes. The already agreed rule is that a fixed custom ID admits one new capture per UTC day and its consumed history must not be silently reopened or replaced. Review found that changing a source from fixed-ID capture to generated occupancy capture could select and reopen that fixed archive; #140563 repairs that selection boundary.
Before #140563, the session descriptor did not record whether its ID was supplied or generated. Provider/source identity, titles, timestamps, current configuration, and ID spelling cannot establish that missing fact. Main also explicitly documents continuing a generated meeting across a Gateway restart within ten minutes. Consequently, preserving all legacy reopening and guaranteeing that no legacy fixed archive reopens are not simultaneously possible from the stored information.
Implemented behavior
Record an immutable ID-origin fact at the native admission owner in the existing session metadata. Live starts and new tool imports must derive it from the actual supplied-versus-generated choice; configured capture must carry that fact before it replaces the raw argument with its selected ID. Provider output and utterance text must not establish it. Retain the recorded fact through retries, title edits, stopping, and reopening.
Keep the current source/window query, ordering, and newest-row selection unchanged. Reopen the selected newest row only when its origin positively establishes generated admission and the existing ownership checks pass. Do not skip a newer fixed or unknown capture to extend an older meeting. Current fixed-ID configuration continues through its normal new-admission/conflict path without substitution.
For legacy rows with missing or invalid origin, leave the archive unchanged and readable, and start a fresh generated capture when the configuration requests generated mode. Do not backfill by guessing from ID shape or current configuration. Accepted tradeoff: some genuinely generated legacy meetings will split at upgrade/restart instead of reopening. No recorded notes are deleted or rewritten.
Store and rollout boundaries
The existing SQLite session metadata remains canonical. No new table, column, index, schema/protocol/package version, retention rule, or transaction/locking mechanism is proposed. Store the origin with the existing admission write, not a second asynchronous write. Existing source/window query cost and ordering remain unchanged.
Operator-controlled Doctor restoration already preserves complete descriptors and verifies them. Preserve an explicitly recorded origin through that existing metadata roundtrip; an absent or invalid origin stays unknown. New text imports record their actual new admission choice, not a claim extracted from transcript content. Public Markdown/JSONL content downloads do not become descriptor backups and need no new authority-bearing field.
Older runtimes can read the metadata, but they do not enforce this distinction. Rolling back the runtime therefore also rolls back the fixed-history protection; the metadata alone is not a rollback safety guarantee. No automatic migration or destructive backfill is proposed.
Completed validation covers fixed-to-generated switching, generated-looking fixed IDs, generated reopening across database and Gateway restarts, newest-fixed-or-unknown versus older-generated history, admission/retry/title/finalization preservation, and actual Doctor export/restoration. The independent failed-provider-stop cleanup finding is fixed in #139572. Runtime/UI proof, inspected media, exact-head CI and native landing gates are recorded in the successor PRs.
This proposal is recorded under the material persistence-change checkpoint. Relevant current code: occupancy selection, admission versus reopening, and the documented main restart contract.
The evidence below is the historical record for the preceding
c3421dfccapture/readiness revision, not verification of the new candidate.Original reported issue: #127426, which was already closed before these successor landings.
What Problem This Solves
Operators who explicitly enabled Discord meeting transcripts could lose capture after voice reconnects or account restarts, interfere with occupancy-controlled presence, or record only participants permitted to command the agent. Mixed realtime conversation finals lacked reliable per-speaker attribution. Automatically captured notes could also be invisible to the routed agent, and status withheld their actionable IDs from model-visible tool content.
Why This Change Was Made
The Discord transcript source now owns an exact account/guild/channel subscription independently of replaceable voice connections. One per-speaker PCM-to-batch-STT path supplies receiver identities, ingress timestamps, bounded uploads, processing-owned WAV cleanup and exact source-lifetime revocation. Removed paths include callback transfer, mixed realtime-to-durable publication, duplicate buffered decoding and timer-owned audio cleanup.
Configured capture resolves its normal channel-route owner after source-account resolution. Status exposes complete authorized capture IDs in bounded model content, while retaining full structured results. Voice promotion commits residency only after success, preserves surviving owners after failure, and keeps an already-ready recorder working during pending bootstrap/connect. Successful fresh joins and recovery reconcile already-speaking participants through the existing guarded receiver.
Manual caller/account authorization and historical ownership remain unchanged. Core stays provider-agnostic. No config key, dependency, protocol version, SQLite schema or storage format is added.
User Impact
Opted-in recording follows the existing
voice.autoJoin/whenOccupiedlifecycle and records participants without granting command or tool authority. Normal owner, wake-name, playback and tool policies remain intact. Standalone capture is silent; stopping it does not disconnect independently owned conversation. Stopped/replaced captures cannot append late utterances or redirect them to a replacement.Recording remains explicit:
voice.autoJoinalone does not enable it. Realtime conversation incurs additional batch STT while recording for correct speaker attribution. One capture can span multiple room occupations. Automatic per-meeting summaries and Discord posting are not added. See the Discord voice guide and transcripts guide.Evidence
The maintainer proof comment contains exact commands, regression history, dependency evidence, review resolutions and deployment/CI status.
Initial CI exposed a concrete-manager type cycle and a one-second polling assertion around real large WAV I/O. Both were repaired at their owners, without weakening guards, extending timeouts or mocking success. A later boundary failure was fixed using the existing public deferred helper. An unrelated main textarea type error was repaired by canonical commit 8862a1746a5; fresh CI33069203610 then passed on the preceding head. Final-head CI33072836910 completed on
c3421dfcb6b37a8c5a3f14848623d0cb51f3fb58: 125 jobs succeeded, 20 were skipped, and the artifact job plus aggregate gate failed. The remaining failure isplugins list --jsonstartup RSS, 402.1 MB median against a 401 MB ceiling. Exact Linux artifacts/source identities are verified, but controlled measurement is blocked by unavailable Blacksmith Testbox authentication. No remote measurement ran, no budget or assertion has been weakened, and merge remains blocked.An earlier inherited UI build-budget failure was resolved by a patch-identical rebase onto the already-landed custom-theme lazy-loading optimization, not a budget/baseline change or unrelated UI patch.
Live installation of the preceding production repair passed exact-build/plugin, health/channel, unchanged-policy and non-delivering agent checks. Configured capture restarted automatically. An actual
transcripts/statustool response exposed a fresh generated handle to the model; the returned ID and routed owner matched durable state, without seeding the handle in the prompt. Final readiness headc3421dfcb6b37a8c5a3f14848623d0cb51f3fb58is now deployed and passed the same actual-tool, automatic-restart and durable-owner checks. Its prepared transaction correctly waited for active work before cutover; no schema or permission change was used. No fresh human voice input was available on the headless verification host, so multi-speaker and injected-failure proof is explicitly boundary/regression evidence, not a claimed new live Discord conversation. A Gateway-backed synthetic WAV check separately verified the real batch-audio provider pipeline. No raw audio, meeting content, credentials or private operational identifiers are published.Production LOC: +727/-406 (net +321). Tests/support: +2199/-654 (net +1545). Docs: +102/-5 (net +97). Test-support and moved lifecycle cases are not production growth. Added production surface implements source-lifetime authority, bounded per-speaker capture independent of command admission, actionable bounded status and correct promotion/readiness ownership. It reuses the existing recorder, route resolver, receiver and lifecycle instead of introducing parallel policy or storage.
Provenance
The replaceable-entry design was carried forward by the voice lifecycle split, authored and merged by @steipete on 2026-08-12. Its occupancy interaction became visible with occupied-room auto-join, authored and merged by @steipete on 2026-08-19. Automatic persistence and the agent-owner filter date to durable meeting transcripts, authored and merged by @steipete on 2026-07-23. Source-account binding, authored by @pgondhi987 and merged by @joshavant on 2026-08-15, tightened caller ownership; those checks are retained, not relaxed.