Repository navigation
Fence finalization-triggered episode composer writes - #26209
Merged
Merged
Conversation
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. |
This was referenced Nov 24, 2026
Git-on-my-level
added a commit
to Git-on-my-level/omi
that referenced
this pull request
Nov 24, 2026
…6209) ## Summary SCA-4083 F1. Pass the finalizing conversation ID from the scheduled composer into the existing episode update transaction. The transaction reuses the shared account deletion policy and checks the conversation tombstone. A deletion refusal stops composition and leaves any already-claimed lease to expire. ## Verification and read delta The hermetic scheduled-compose tests use the episode writer and count the two authority document paths at the transaction boundary. | Case | Added authority reads | Result | | --- | ---: | --- | | Unfenced read-triggered control | 0 | Result committed | | Finalization, one lease claim and one result write | 4 | Result committed | | Account marker after lease claim | 3 | Result refused, stored state unchanged from immediately after the marker | | Conversation tombstone after lease claim | 4 | Result refused, stored state unchanged from immediately after the marker | Each additional guarded transaction attempt can add up to two reads. No extra writes or provider calls are introduced. ## Release R19 review is scoped to F1. Roll out with the Python backend and revert this PR to roll back. Release owns production Firestore readback through SCA-1819. Line-Count-Exception: backend/utils/episodes/composer.py | 2133 -> 2141 | Forward the existing finalization context at the common episode writer and stop on deletion refusal. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/26209?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/26209?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26209&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. --> (cherry picked from commit 145f72b)
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.
Summary
SCA-4083 F1. Pass the finalizing conversation ID from the scheduled composer into the existing episode update transaction. The transaction reuses the shared account deletion policy and checks the conversation tombstone. A deletion refusal stops composition and leaves any already-claimed lease to expire.
Verification and read delta
The hermetic scheduled-compose tests use the episode writer and count the two authority document paths at the transaction boundary.
Each additional guarded transaction attempt can add up to two reads. No extra writes or provider calls are introduced.
Release
R19 review is scoped to F1. Roll out with the Python backend and revert this PR to roll back. Release owns production Firestore readback through SCA-1819.
Line-Count-Exception: backend/utils/episodes/composer.py | 2133 -> 2141 | Forward the existing finalization context at the common episode writer and stop on deletion refusal.