Repository navigation
test(outbox): preserve durable enqueue across wake failures (PL-042) - #24082
Git-on-my-level wants to merge 2 commits into
Conversation
Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
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! |
What changed and why
When task creation fails after an outbox enqueue commits, the obligation must remain recoverable and the producer must observe its durable success. Firestore currently leaks the task-create exception after commit (open defect #23559); Postgres and the simulator preserve the no-raise contract. This ports parity-ledger PL-042, with Plan A acceptance published in the knowledge base.
The shared integration test runs the same four scenarios on the legacy Firestore emulator, new Postgres and simulator: own/caller transaction × push/pull delivery. It checks repeated failed repair counts, committed payload and admitted policy, first claim attempt, exclusive claims, idempotent acknowledgment, and no outstanding work after completion. Both Firestore own-transaction cases are strict expected failures linked to #23559. All other assertions run before the dedicated known-defect exception is raised; setup errors, changed exceptions and durability/recovery failures remain ordinary failures. An eventual fix produces XPASS until the obsolete markers are removed.
The existing emulator-proof runner now invokes this suite and requires sim/emulator by default; callers can require all three backends. Its changed script path selects the existing proof workflow. No workflow, serving code, schema, config, language-gate or firmware changes.
Validation
All tests run serially through workspace
bin/omi-heavy run -- nice -n 19, using local demo-project Firestore and throwaway local Postgres withOMI_REQUIRE_STORE_BACKENDS=all.--runxfail: 10 passed, 2 failed, precisely the leaked post-commit task-create error, after all durability assertions complete.backend/scripts/run-emulator-proofs.sh: PASS, including all standalone proofs, summary-task suites (26 passed), Store conformance (89 passed, one existing simulator concurrency skip), and this new matrix.git ls-remoteagree on head8c93474d2b3d557cfd752285d9161306936f17a4. Exact-head CI is blocked by an unchanged-main flag-budget expiry, not this suite. The emulator proof passes (10 passed / 2 declared xfails / zero skips), both stack gauntlets pass, and automated code review reports no findings. Backend shard 3 failstests/unit/test_flag_budget.py::test_pipeline_env_surface_holds_its_budget:BATCH_PIPELINE_SHADOW_LANGUAGE_ONLYandBATCH_PIPELINE_SHADOW_LANGUAGE_PROBES_PER_HOURexpired on 2026-10-29 (ownerastrabatch2 / two-lane lead). Focused reproduction withbackend/test.shgives 20 passed / 1 failed; both the guard andbackend/config/flag_budget.jsonare identical to freshly fetched main39e08649098a. No retry, clock pin, guard suppression or flag renewal was used. The owner must review the entries before qualification can become fully green; this daily task prohibits config writes.This is interface/emulator qualification. Expected failures and open PRs earn no completed parity credit. It does not establish deployed throughput or resolve PL-043's separate coalesced-token ruling.
Product invariants affected
none — conformance tests and runner only; existing contract (b) remains unchanged.
UI-Evidence: none -- no product UI change.
Failure-Class: none
This adds a shared regression guard for an already tracked defect; it changes no failure handling. Remove the dedicated expected-failure markers when #23559 is repaired.
🤖 Generated with Claude Code