Skip to content

fix(repair): batch derived raw replay rebuilds - #3271

Merged
Sinity merged 2 commits into
masterfrom
feature/fix/raw-replay-bulk-derived-rebuild
Jul 23, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/fix/raw-replay-bulk-derived-rebuild

Conversation

@Sinity

@Sinity Sinity commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Batch writer-hot derived index surfaces per authority component.

Problem

A Claude Code authority component can expand into multiple sessions. Refreshing FTS, trigram, action-pair, and delegation surfaces after each session created a multi-hour read storm without a component receipt.

Solution

Replay the component in bulk-build mode, then rebuild all four derived surfaces once before its durable outcome is recorded.

Verification

Focused raw-materialization fixed-point tests passed: 2 passed, 59 deselected.

Ref polylogue-t93b

Sinity and others added 2 commits July 22, 2026 20:42
The daemon's escalation-tier whale pass skipped a stream-safe Codex component
because members already materialized from that component were absent from the
candidate-only origin and source-path maps. They were consequently treated as
unknown and rendered the whole component ineligible for streaming replay.

Carry identity metadata for every expanded component member and consult it as a
fallback when assessing stream safety. The regression test exercises a
non-candidate member that is present only in the expanded maps.

Ref polylogue-t93b.

Co-Authored-By: Codex <[email protected]>
Problem: one authority component can expand into several sessions, making\nper-session derived refreshes an I/O storm.\n\nWhat changed: defer those derived surfaces during component replay and\nrebuild them once before recording the component outcome.\n\nCo-Authored-By: Codex <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 37 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e440f3bf-9ee4-46a3-8bbb-928251357014

📥 Commits

Reviewing files that changed from the base of the PR and between ffca2c1 and f0fff21.

📒 Files selected for processing (2)
  • polylogue/storage/repair.py
  • tests/unit/storage/test_repair.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/raw-replay-bulk-derived-rebuild

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@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: f0fff21922

ℹ️ 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 thread polylogue/storage/repair.py Resolved
Comment thread polylogue/storage/repair.py Resolved
@Sinity
Sinity merged commit 8a01705 into master Jul 23, 2026
3 checks passed
@Sinity
Sinity deleted the feature/fix/raw-replay-bulk-derived-rebuild branch July 23, 2026 11:10
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

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