Skip to content

fix: replay missing batch projection predecessors from blocked sweep rows - #23046

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/projection-wedge
Oct 21, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/projection-wedge

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Problem and behavior

A projection sweep that discovers a successor before its missing predecessor
only records a block. Owner-chain discovery previously started after a page row
succeeded, so the missing head could wait behind the discovery cursor.

Give the predecessor fence a typed block and use it to schedule the existing
owner drain, or one bounded owner-chain walk when the drain is off. The walk
rebuilds the missing receipt first and preserves all assignment, binding,
privacy, replay and multipart fences. A head blocked by a real safety condition
still remains blocked and needs that underlying condition resolved.

Default on. Rollback:
BATCH_PIPELINE_PROJECTION_PREDECESSOR_REPLAY_ENABLED=false.
Deploy to backend-integration, which owns batch projection. Already committed
heads do not require GPU recomputation.

Validation

BACKEND_PYTEST_WORKERS=4 BACKEND_UNIT_TEST_FILE_LIST=<targeted list> bin/omi-heavy run -- nice -n 19 bash backend/test.sh

130 tests passed across projection, owner-chain, sweep continuation and owner-drain
suites; the final binding-read guard then passed all 34 sweep tests. Added
cursor-past-head replay, drain handoff, kill-switch, binding-fence, binding-read
failure and row-budget cases. Existing cursor-wrap regression now completes in
one pass. All 36 PR preflight checks and full backend Pyright passed (zero errors).

Failure-Class: FC-bounded-discovery-pinned-by-blocked-page
Failure-Class-Guard: backend/tests/unit/test_batch_pipeline_sweep_owner_chain.py

Failure-Class: FC-bounded-discovery-pinned-by-blocked-page
Failure-Class: FC-bounded-discovery-pinned-by-blocked-page
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T13:41:05.575950Z bdbeeb7 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.

Retain both independent flag declarations and regenerate the catalog.
@Git-on-my-level
Git-on-my-level merged commit 46fc217 into main Oct 21, 2026
58 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/projection-wedge branch October 21, 2026 13:54
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