Repository navigation
SCA-1819: Revert #26215 conversation deletion scope expansion - #26219
Conversation
This reverts commit 3e1a54b. Co-authored-by: multica-agent <[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: 7d1df650d5
ℹ️ 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".
| purge_audio = _delete_privacy_audio_after_response if record_event else delete_privacy_conversation_audio | ||
| background_tasks.add_task(purge_audio, uid, conversation_id, source_ids=source_ids) |
There was a problem hiding this comment.
Add the required conversation-lifecycle change note
This revert changes conversation deletion’s audio-retention behavior, but the commit contains no note under backend/docs/listen_pusher_pipeline/changes/. backend/AGENTS.md explicitly requires a same-PR note for audio or conversation-lifecycle changes. Add a note explaining the shared-upload custody problem, the restored deletion scope, and the rollout and verification evidence so the operational documentation records this behavior change.
AGENTS.md reference: backend/AGENTS.md:L164-L164
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Shipping authorized a separate lifecycle note to preserve this PR as the exact inverse of #26215. Docs PR #26224 records the shared-upload custody risk, the restored deletion scope, and the serving evidence available today. The merged revert SHA and its serving readback are pending.
) ## Summary On resumed keyed from-segments uploads, keep the persisted client projection display-only. Validate retry projections against submitted segments, then discard them during an active resume because the admitted row's stored transcript remains authoritative. Keep projection data out of coordinator input and persistence writes; reuse the same admitted row and transcript. Existing digest-checked late binding on completed idempotency hits remains unchanged. The regression test covers valid and schema-incompatible stored projections and a valid retry projection. The pipeline change note records this lifecycle boundary and its release-train handling. PR #26219 remains untouched as the exact revert of #26215. ## Verification - `test_client_processing_trust_boundary.py`: 61 passed on M1 through `bin/omi-heavy`. - `test_developer_from_segments_idempotency.py`: 94 passed on M1 through `bin/omi-heavy`. - `git diff --check`: passed. Failure-Class: none Line-Count-Exception: backend/routers/developer.py | 2897 -> 2907 | preserve keyed retry projection trust boundary
Records the shared-upload custody regression and the pre-#26215 behavior restored by #26219. Shipping authorized this docs-only PR to preserve the exact revert patch. The note records the reviewed revert head and the last serving receipt available at publication. Add the merged revert SHA when Release verifies it. Add the serving receipt when available, or link the pending rollout record if service verification is still open at the four-hour docs deadline. [Connector finding](#26219 (comment)) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/26224?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> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/26224?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26224&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Brings the reland onto current main, which now carries the #26219 revert and #26316 (SCA-4363 audio legal-hold gate). Conflict resolutions: - storage: delete_privacy_conversation_audio holds the account's audio_conversation_deletion gate across every step (main's SCA-4363 contract, also relied on by the v3 purge); the steps moved to _delete_conversation_audio_steps. The gate is re-entrant, so the durable obligation (erase_conversation_audio) and the kill-switch sweep (delete_conversation_audio_under_gate) still hold one gate. - routers/conversations: the kill-switch after-response sweep keeps main's LegalHoldActive -> defer_audio_erasure durable follow-up; other gate refusals are retained and reported as before. _delete_conversation_under_gate takes both audio_source_ids and expected_exists. - conversation_batch_purge_jobs.finish_run: keeps the audio obligation's detail, arm_revision, retry_after and count_attempt handling together with main's erased_audio_source_ids donor check and post-window _schedule. - Tests: main's shared fake now seeds a live c1 row and applies DELETE_FIELD; the audio fixtures delete the row as the route would. Main's hold-gate route tests run with the obligation switched off (the path they cover); donor prefixes are now erased with the recording. Episodes driver entries stay deleted with the engine; flag registry regenerated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reverts #26215 at
3e1a54b0b924fcd460db162507ee4c9429a34162under Shipping’s R26 ruling on SCA-1819. Deleting one conversation in a shared upload currently erases staging audio that a live sibling still references. The PR also expanded default delete audio erasure without durable retry on the regular request path.The patch is byte-for-byte the inverse of #26215 relative to its first parent. The tree diff from that parent to this PR head matches #26207’s first-parent patch byte-for-byte, preserving keyed from-segments uploads.
git diff --checkpassed.Release owns merge after green exact-head CI. The re-land requires a full custody review of the repaired head.
Line-Count-Exception: backend/routers/conversations.py | 3197 -> 3199 | Restore the pre-#26215 cascade-only audio deletion block and its storage guard to preserve shared-upload custody.