Repository navigation
test(backend): carry committed projection obligations into Store conformance - #25832
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72abcb2292
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
|
|
||
| def test_pl665_projection_debt_commits_with_result(h, monkeypatch): | ||
| from utils.batch_pipeline import scheduler as scheduler_module |
There was a problem hiding this comment.
Move the scheduler module import to module scope
The new function-local import violates the applicable backend/AGENTS.md requirement that “All imports [be] at module top level — never inside functions.” Move scheduler_module into the module-level imports; the test can still monkeypatch its monotonic attribute without deferring the import.
AGENTS.md reference: backend/AGENTS.md:L168-L168
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ea63345 to
a4903d2
Compare
What changed and why
Extend the existing Store conformance suite with parity cases PL-665–667 for committed projection obligations from #25724. A lost wake must leave durable work for discovery, due pages must stay bounded and stable, and a stale delivery must be unable to settle a current claim.
The same cases exercise the Python Firestore Store, replacement Postgres Store and in-memory simulator. The Go rewrite can use them as acceptance cases under batch contract B21. Its batch projector remains a separate implementation and verification step.
Product invariants affected
none
How it was verified
OMI_REQUIRE_STORE_BACKENDS=allunder a private loopback Firestore emulator and local Postgres. They passed with 326 passes and seven existing backend-specific skips.Tests
test_pl665_projection_debt_commits_with_resultaborts after the real merge has scheduled its writes, then verifies complete rollback and wake-free discovery after restart.test_pl666_projection_due_page_filters_before_limitingchecks kind and time exclusion, the inclusive cutoff, ID ties and visibility of the next key after a claim.test_pl667_projection_settlement_checks_lease_and_canonical_statechecks exact lease expiry, stale token and revision refusal, bounded retry and canonical completed, erased and held dispositions.Suite path is
backend/tests/integration/test_store_conformance.py.UI evidence
UI-Evidence: none -- shared backend tests only
Failure class
Failure-Class: FC-unresolved-head-blocks-projection
🤖 Generated with Claude Code