Skip to content

test(backend): preserve committed partial-pull leases across stores (PL-194) - #24145

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

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

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

A multi-item scheduler pull must hand the worker every lease already committed even if a later transaction fails. PL-194 now exercises that contract through the real Scheduler and simulator, loopback Firestore, and local Postgres Store implementations.

The new matrix injects unexpected failure or typed contention exhaustion after the real pull body buffers a lease. It covers first/third-item failure, legacy selection and shard claims, rollback of job/queue/service state, token fencing, cooldown, overlapping pulls, restart before job-lease expiry, and eventual exactly-once completion at attempt one. Namespaced fixture cleanup now includes pull claims. The existing emulator-proof runner executes the suite and requires sim/emulator; no new workflow.

Validation:

  • All-required local matrix (OMI_REQUIRE_STORE_BACKENDS=all, Firebase demo project, offline providers): 30 passed, zero skipped/xfail.
  • Full existing emulator-proof runner passes: Store 89 passed/one pre-existing simulator concurrency skip, summary-task suites 26 passed, new matrix 30 passed; standalone proofs pass.
  • Mutation probes reject dropping committed return leases (four sim failures) and erasing a newer cooldown (two sim failures); serving source restored byte-for-byte.
  • OMI_PR_BODY_FILE=<body> make preflight: all 33 selected checks pass.
  • No endpoint or serving behavior changes; the measured layer is local scheduler/Store transactions, not live throughput.

Architecture acceptance: KB projects/backend-target-architecture/plan-a-job-store.md (daily parity 2026-10-31), parity ledger PL-194. Source mechanism: #23915. Existing old-only unit checks are extended to a shared migration guard; this open PR earns no completed parity until merged.

Product invariants affected: none (test/harness-only).
UI-Evidence: none -- test/harness-only, no UI change.
Failure-Class: none
This adds conformance coverage to the existing scheduler contract without changing a runtime failure path.

View guided diff Turn on auto-fix

CI: the exact-head emulator proof passes all 30 new parameters on three stores, with zero skips/xfails. See the current checks on this PR for complete qualification.

🤖 Generated with Claude Code

Port PL-194 into the shared scheduler/Store matrix and existing emulator proof lane.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-31T00:52:09.558174Z fbc6ea3 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_partial_pull_conformance.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