Repository navigation
test(backend): guard projection discovery fallback across stores - #26073
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 736e7e562e
ℹ️ 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".
| from utils.batch_pipeline.projection_discovery import ProjectionDiscovery | ||
| from utils.batch_pipeline.projection_outbox import ProjectionOutbox |
There was a problem hiding this comment.
Move the new production imports to module scope
The new test imports ProjectionDiscovery and ProjectionOutbox inside its function body, violating the explicit backend import rule in backend/AGENTS.md: “All imports at module top level — never inside functions.” Move both imports into the module-level import block; the rule does not exempt integration tests.
AGENTS.md reference: backend/AGENTS.md:L168-L168
Useful? React with 👍 / 👎.
What changed
Add the PL-668 Store conformance guard for mixed-writer projection discovery from #25724. A healthy elected scan can suppress a stamped row from legacy discovery while unstamped and explicitly legacy rows stay visible. A fully filtered page still advances the raw keyset cursor. Overdue debt withdraws coverage, and a failed query cannot extend it. Legacy discovery finds the stamped row again when coverage ends.
The test uses the production coordinator and discovery over the simulator, Firestore emulator and replacement Postgres Store. Go batch B21 needs equivalent behavior when its projector takes over discovery.
Verification
OMI_REQUIRE_STORE_BACKENDS=all, the Store and recovery-custody suites passed 293 cases with seven existing backend-specific skips. PL-668 passed all six cases across three stores.git diff --checkpassed.Product invariants affected
none
Failure class
Failure-Class: none
🤖 Generated with Claude Code