Skip to content

test(jobstore): port recovery discovery, capacity and progress parity - #23560

Closed
Git-on-my-level wants to merge 1 commit into
mainfrom
lane/parity-pl-001
Closed

Git-on-my-level wants to merge 1 commit into
mainfrom
lane/parity-pl-001

Conversation

@Git-on-my-level

Copy link
Copy Markdown
Member

Recovery parity across old and new stores

Port the replay/backlog lessons from #23500 and the October 24 conversation-lifecycle RCA into the existing outbox conformance suite. KB parity rows PL-002, PL-003 and PL-004 now exercise identical public operations on the old Firestore adapter, Postgres and the simulator:

  • Reach runnable work beyond 101 leased or privacy-fenced rows in one claim.
  • Honor an explicit 125-row budget, excluding future/leased/acknowledged work.
  • Count failed wakes as errors, successful repairs as rewoken, then report zero work on the next sweep.

The real-emulator baseline found the same failure mechanism in the old enrichment adapter: its query clamps to 100 before exclusions, and the pull adapter does not refill after retirement. Refs #23558, which owns the fix. Existing full-suite contract discrepancies are tracked separately in #23559. Three exact Firestore parameters are strict, assertion-only xfails linked to that issue; Postgres and simulator run the same assertions normally. The invariant is unchanged, and an unexpected pass fails the suite. No implementation, configuration, workflow, dependency or rollout changes.

These are extensions of the shared behavioral conformance surface, rather than a separate checker or duplicated implementation. They would have caught the full-page recovery mechanism in merged #23500 and now reproduce it in #23558. Plan A acceptance is published in the KB; finalization-specific progress, enum and age-SLO invariants remain separate.

Product invariants affected

none

Validation

  • Isolated Firestore emulator plus throwaway local Postgres, with OMI_REQUIRE_STORE_BACKENDS=all: focused parity run 9 passed, 3 xfailed, zero skipped. Before marking the linked live defects: 9 passed, 3 failed, all failures on Firestore. No GCP credentials, remote database, production reads or vendor calls.
  • Command: firebase emulators:exec --only firestore --project demo-omi-isolated-tests --config <isolated-loopback-config> 'backend/.venv/bin/python -m pytest -q backend/tests/integration/test_outbox_conformance.py -k test_pl', serially via bin/omi-heavy; Java 21 and all required backends explicitly selected.
  • Full outbox + Store conformance: 175 passed, 4 failed, 4 skipped, 3 xfailed. All four failures reproduced against untouched main a6f9d3101ff0: Firestore moved coalesced wake expectation; nontransactional enqueue wake exception (also interrupts privacy-sweep setup); and Firestore contention exhausting five transaction attempts. Existing tests/expectations remain unchanged. The four existing backend-inapplicable skips are separate from the new parity matrix, which has zero skips.
  • At head 55efd180a4d4977514222798a4c8055c7d9d1892: make preflight and PR-body preflight both passed all 33 selected checks; the normal push hook passed, including whole-backend type checking (0 errors). Focused all-backend qualification was repeated at this committed head: 9 passed, 3 strict xfailed, zero skipped. The remote branch SHA was independently verified with git ls-remote. GitHub CI is reported separately.

The integration matrix requires explicit local/staging invocation. Existing CI does not provision Postgres for this suite; this PR adds no workflow. A skipped backend is not parity proof, and an xfail does not satisfy migration acceptance. No merged or deployed new-backend parity is claimed.

Failure-Class: FC-bounded-discovery-pinned-by-blocked-page

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-25T03:49:20.506168Z 55efd18 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: the committed-partial-pull conformance cases appended to test_outbox_conformance.py.

@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