Skip to content

test(backend): guard projection discovery fallback across stores - #26073

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/parity-PL-668
Nov 23, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/parity-PL-668

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

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

  • With 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.
  • The existing Emulator Proofs runner includes the same Store suite.
  • git diff --check passed.

Product invariants affected

none

Failure class

Failure-Class: none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T01:45:24.076394Z 736e7e5 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +601 to +602
from utils.batch_pipeline.projection_discovery import ProjectionDiscovery
from utils.batch_pipeline.projection_outbox import ProjectionOutbox

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 46369f9 into main Nov 23, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/parity-PL-668 branch November 23, 2026 04:22
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