Repository navigation
backend-go: replay oracle follow-up — paired lifecycle inputs, failed-commit meter (SCA-3551 lane 7) - #26322
Conversation
Co-authored-by: multica-agent <[email protected]>
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: 96789fc585
ℹ️ 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".
Co-authored-by: multica-agent <[email protected]>
Co-authored-by: multica-agent <[email protected]>
Co-authored-by: multica-agent <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9dcf507b73
ℹ️ 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".
Git-on-my-level
left a comment
There was a problem hiding this comment.
R19 review at bdad61e1ef5db30c1b20019642128731d417c249: no blockers found. The paired-erasure comparator compares the pre-wipe conversation and derived documents across both sides under /before_erasure, while retaining post-wipe effect checks. Regression coverage catches changes to speaker_resolution.assignments and structured.title, and verifies the missing resolver result appears exactly once. The 109 jobd pre-wipe rows remain diagnostic under the lead’s ruling; accepted count stays 85 with the four admission rows counted. GitHub does not permit an approval review from the PR author, so this is recorded as a comment review.
Co-authored-by: multica-agent <[email protected]>
Co-authored-by: multica-agent <[email protected]>
Git-on-my-level
left a comment
There was a problem hiding this comment.
REVIEW: SHIP at 9fa4bc1. The pre-wipe binding gap is fixed: both views run admission validation, and the Go view also validates its fence before findings are placed under /before_erasure. The six mutation cases cover missing jobs and mismatched fanout on both sides plus missing and mismatched Go fence fields. The proved-departure exception remains narrow and still validates webhooks. Worker 1 reports test.sh and the pinned 41-case replay passing with zero pre-wipe invalid_binding rows. The accepted count remains 86 with the known attach_memo_evidence gap still visible; this review does not relabel or waive it.
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Git-on-my-level
left a comment
There was a problem hiding this comment.
R19 confirmation: SHIP still holds at 73f41d0c8a594b35a625122050ed9b65d3eb75d7. This is a clean merge of the reviewed 9fa4bc1584921cea9eff2917e77cb9f082a8ada3 with main fd7f1519e72790c9ec864a21b53a2b4213c7ea9a: the head tree matches the computed merge tree, the replay-scope diff from 9fa4bc15 is empty, and range-diff shows all eight PR commits unchanged (=). No replay changes were introduced by the merge. Fresh exact-head CI remains the merge gate.
SCA-3551 adds the paired missing-row fence and account erasure fixtures to the pinned workerd diagnostics. The runner captures the pre-wipe views and records the post-wipe Firestore absence and Go queue custody through the workerd test seam on #26346. **Current head: `ac891072`** (fast-forward of `db654737` via `99fbd280`). `99fbd280` validates the fence memo against the pre-delete conversation and link snapshot and checks the link survives unchanged (oracle artifact; accepted count 86→85). `ac891072` requires the bound intake memo whenever intake expects one, so both-sides-missing evidence is rejected. Worker 2 R19 SHIP at `ac891072` (Python replay 44 passed/1 skipped; Go memo comparator tests passed). Test tooling only: `backend-go/tools/replay/` and `backend/testing/finalization_replay/`; no serving code. Rollback: revert the merge commit. The comparator landed on main in #26322 at `58a67241`. This PR now targets main and contains only the paired lifecycle runner changes. Set `ORACLE_DIAG_PAIRED_LIFECYCLE=1` to enable the paired fixtures and `ORACLE_DIAG_SIDE_TIMEOUT_SECONDS=720` for the supplemental suite. The 109 jobd pre-wipe rows stay diagnostic. The serving missing-row attach memo evidence contributes one accepted gap, bringing SCA-3551 to 86 before later group releases. At `db654737`, the Python replay suite passed 42 tests with one replay-binary-dependent skip, and all 37 local preflight checks passed. The full 720-second-budget run against pinned worker `0a0640ae` completed all 41 cases. R7 held in every case at a minimum margin of +2 Firestore operations. Fence used 13 Go vs 25 Python operations, and erasure used 126 vs 130. The run had 163 diagnostic gap rows, zero unlabelled, zero pre-wipe binding failures, and zero execution errors. The normalized findings match the accepted baseline.
Follow-up to #26293 (SCA-3551 lane 7, the finalization replay oracle). It's based on
mainate060f71e, the #26293 merge. It touches only replay tooling and no serving path.Current head:
73f41d0c, a merge of mainfd7f1519into the reviewed9fa4bc15(fast-forward ofbdad61e1). The merge adds no replay changes; it gives the PR a fresh check history on repaired main. It includes the paired-erasure comparison and the two binding/evidence commits below.c6dd4765, from bundle8ca3e1ae. The driver now gives both sides the same lifecycle inputs:This clears both whole-
/conversationdifferences. One conflict indriver.pywas resolved by hand: the speaker-trace hook from main runs first, then the pairedrun_pythonwrapper.96789fc5, from bundle006671ae. Failed Firestore Commit RPCs are reported per side and per case, outside the R7 total. Preserved Home tokens with same-field pre-run evidence are compared literally.2ad9855dis the FIX-FIRST commit for the CI replay gate. On the erasure fixture, the finalization witnesses (speaker resolver and batch privacy) are read just before the wipe; the main comparison still uses the documents and effects after erasure. CI'sinvalid_bindingassertion inverify.pyis unchanged.90d1799fand9dcf507bare FIX-FIRST commits for the speaker witness. The speaker checks read the pre-wipe view on both sides. A departure receipt proves only the erasure. A Go row that existed before the wipe but has no resolver result is reported asmissing_in_go/speaker_resolver_unverified.884221b1compares the pre-wipe conversation and derived documents across sides with the live rules, emitted under/before_erasure. The resolver gap comes from that comparison, once. Regression tests change speakerassignments,structured.titleand the authenticated payload.cmd/jobdconformance flow are diagnostic only, like jobd's other raw rows, and aren't counted. The servingworkerderasure run is required before integrated zero (SCA-3551).2b90f180keeps effects and erasure checks for proved-absent Go rows and pairs post-wipe account operation receipts by operation type, generation and owner digest. Duplicate and mismatched receipts remain findings.The current head runs the same binding validator on both pre-wipe views. Regressions cover missing jobs and mismatched fanout on Python and Go, and missing or mismatched Go fence fields. Findings carry a
/before_erasureprefix.Scope:
backend-go/tools/replay/andbackend/testing/finalization_replay/only.Verification
9fa4bc15,go test ./tools/replay/...and all 37 local preflight checks passed. Each of the six pre-wipe binding mutations fails with the previous comparator. The full local./tools/replay/test.shpassed on Firestore and Postgres, with 10/10 admission cases, 41/41 active cases completed, zero execution errors, zeroinvalid_bindingrows, and the verifier’s negative mutations passing.0a0640aein all 41 cases. R7 held with a minimum margin of +2, zero execution errors, 163 diagnostic gap rows, zero unlabelled, and zero pre-wipeinvalid_bindingrows.96789fc5(go test ./tools/replay/...passed again at2ad9855d):go test ./tools/replay/...passes.pytest testing/finalization_replay: 40 passed, 1 skipped.scripts/backend-python-format --checkis clean.006671aewith workeraab6310d: 41/41 cases, 0 execution errors, R7 41/41 with a minimum margin of +2, 164 diagnostic go_gap rows, 0 unlabelled, 0 failed Commit RPCs.8ca3e1ae: both/conversationrows clear.2ad9855d, from Worker 1: CI's./tools/replay/test.shstep, buildingjobdfrom this tree, passes with 0invalid_bindingrows. On the pinnedaab6310dworker: R7 41/41 at +2, and 164 diagnostic gaps with 0 unlabelled, the same as at96789fc5.9dcf507b, from Worker 1: CI's./tools/replay/test.shpasses with 0invalid_bindingrows. On the pinnedaab6310dworker: R7 41/41 at +2, and 164 diagnostic rows with 0 unlabelled. GitHub CI: all 65 checks pass at9dcf507b.884221b1, from Worker 1:test.shpasses with 0invalid_binding. The pinnedaab6310drun gives R7 41/41 at +2, with 164 rows and 0 unlabelled.9dcf507bpassed all 65 checks but didn't compare the pre-wipe views across sides.2ad9855dand90d1799fare earlier heads, kept for the record.96789fc5is an earlier head, kept for the record: it failed the CI replay gate with 9invalid_bindingrows onerase-removes-owner-and-jobs.Open item, outside this PR: Python leaves a Firestore finalization job at
/effects/erasure/jobs_for_uidafter erasure. It's labelledpython_bug?and tracked on SCA-4408 (Python fix #26310).Merge goes through Release intake. The Go lead signs off on parity on SCA-3551.
🤖 Generated with Claude Code