Repository navigation
test(backend): port recovery and admission parity invariants - #23763
Git-on-my-level wants to merge 1 commit into
Conversation
Carry PL-057, PL-072 and PL-086 through the shared Store matrix. Keep the new-store cancellation gap strict and linked to issue #23761. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
|
Folded into survivor #24591 ( Carried as-is: |
|
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! |
…3761) (#23806) Fixes #23761 Restores the recovery-cancellation prerequisite tracked by SCA-1689. Account deletion during recovery now durably cancels the prepared or running recovery through the shared Store interface before paid work or result upload on Firestore, Postgres, and the simulator. The coordinator delegates to `cancel_fenced_recovery`; each adapter rechecks the privacy fence and changes only the cancellation marker when blocked. Firestore refreshes the shadow after commit. Main is merged into the existing branch without rewriting its history, retaining the SQL identifier hardening from #25116 and the newer privacy-defer methods. The overlapping #23763 is already closed. ## Verification Run from `backend/` under a loopback Firestore emulator, with a throwaway local Postgres cluster and synthetic customer authority: - `OMI_REQUIRE_STORE_BACKENDS=all .venv/bin/python -m pytest -v -rxX -p no:cacheprovider tests/integration/test_recovery_admission_conformance.py`: exit 0, 27 passed; all three adapters, no skips or xfails. PL-057/072/086 cover cancellation before recovery and after download, restart/redelivery, no paid calls or result uploads, and unrelated-owner progress. Only the PL-072 strict xfails whose contract now passes were removed. - `OMI_REQUIRE_STORE_BACKENDS=all .venv/bin/python -m pytest -q -rxX -p no:cacheprovider tests/integration/test_store_conformance.py tests/integration/test_recovery_custody_conformance.py`: exit 0, 267 passed, 6 adapter-specific not-applicable skips; every adapter available. - `backend/.venv/bin/python -m pytest -q -p no:cacheprovider backend/tests/unit/test_batch_pipeline_scheduler.py`: exit 0, 62 passed. This source repair books **$0/day**. Production serving parity, cross-database privacy safety, physical erasure, reverse migration/rollback, pooler readiness, deployment/readback, production-fence decisions, and a full settled before/after day of normalized net cost remain separate gates owned by the pipeline driver and SCA-1683. Existing dark/staging selectors and production fences remain in force. ## Product invariants affected none ## Failure-Class Failure-Class: none ## UI-Evidence UI-Evidence: none -- internal recovery Store integration and conformance evidence.
Accepted speech must survive vendor failures and admission holds when the job store moves from Firestore to Postgres. This adds one shared conformance suite for daily parity rows PL-057, PL-072 and PL-086, and includes it in the existing emulator-proof runner.
KB acceptance is published in backend-target-architecture Plans A/C and parity-ledger.md. The suite follows the existing Store factory matrix, uses synthetic owners/audio/vendor/VAD/artifact IO, and exercises the production scheduler, intent transactions, policy pinning and privacy checks. The Postgres harness customer tables do not qualify the serving A4 bridge; no physical erasure, real ASR-quality or vendor-transport retry claim is made. No production modules, configuration, workflow or language-gate files change.
Validation
OMI_REQUIRE_STORE_BACKENDS=all).make preflight: 33 checks passed throughomi-heavy.backend/test.shselection (one worker, throughomi-heavy): 152 passed across admission backoff, quarantine recovery and emulator-harness wiring.bash -n backend/scripts/run-emulator-proofs.shand diff whitespace checks passed.scripts/pr-preflight --pr-body-file <body>passed all 33 checks after commit; normal push hooks passed, including whole-backend Pyright with zero errors. Remote branch hash verified withgit ls-remote.Local invocation, serially through
omi-heavy(Java 21 selected from the existing installation):OMI_REQUIRE_STORE_BACKENDS=all PROVIDER_MODE=offline firebase emulators:exec --only firestore --project demo-omi-isolated-tests \ 'backend/.venv/bin/python -m pytest -q -m integration backend/tests/integration/test_store_conformance.py backend/tests/integration/test_recovery_admission_conformance.py --tb=short'Product invariants affected
none
Failure-Class: none
UI-Evidence: none -- test-only migration acceptance and pipeline documentation.
Rollback: revert the test, existing-runner addition and documentation commit. No merge or deploy is requested.
🤖 Generated with Claude Code