Skip to content

test(outbox): preserve durable enqueue across wake failures (PL-042) - #24082

Closed
Git-on-my-level wants to merge 2 commits into
mainfrom
lane/parity-pl042
Closed

Git-on-my-level wants to merge 2 commits into
mainfrom
lane/parity-pl042

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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 with OMI_REQUIRE_STORE_BACKENDS=all.

  • New matrix: 10 passed, 2 strict xfailed, zero skipped. All simulator/Postgres cases and Firestore caller-transaction cases pass.
  • Same unchanged-product matrix with --runxfail: 10 passed, 2 failed, precisely the leaked post-commit task-create error, after all durability assertions complete.
  • 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.
  • Final-head normal push gates passed, including 33 selected preflight checks and whole-backend typecheck with zero errors. The keepalive push and git ls-remote agree on head 8c93474d2b3d557cfd752285d9161306936f17a4. 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 fails tests/unit/test_flag_budget.py::test_pipeline_env_surface_holds_its_budget: BATCH_PIPELINE_SHADOW_LANGUAGE_ONLY and BATCH_PIPELINE_SHADOW_LANGUAGE_PROBES_PER_HOUR expired on 2026-10-29 (owner astrabatch2 / two-lane lead). Focused reproduction with backend/test.sh gives 20 passed / 1 failed; both the guard and backend/config/flag_budget.json are identical to freshly fetched main 39e08649098a. 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.

View guided diff Turn on auto-fix

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T00:50:20.063878Z 8c93474 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Folded into survivor #24591 (lane/lcinv, pushed head b8e0b1e0b3). As part of consolidating the open PR batch, origin/main and every other listed PR were merged into the survivor branch; all tests were kept. This PR is being closed as folded — its content lives on in #24591.

Carried as-is: test_parity_outbox_durability.py and its run_proof entry in run-emulator-proofs.sh.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant