Repository navigation
fix(storage): preserve complete raw frontier counts - #2965
Conversation
Problem: readiness projected the postflight residual as a complete frontier\ninventory, omitting proven-current heads while presenting the result as\nstate counts.\n\nWhat changed: residuals now bind both their retry-oriented state map and a\ncomplete frontier state map. Readiness exposes the complete map while deriving\nblocking counts from the postflight residual.\n\nCompatibility: older ledgers retain their existing scope fallback; no schema\nchange is required.
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0f26faceb
ℹ️ 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".
|
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. |
Summary
Preserve a complete raw-authority frontier state inventory alongside the residual map, so readiness can show proven-current heads while retaining correct postflight blocking semantics.
Problem
PR #2962 used the postflight residual as public frontier state counts. The residual deliberately omits
proven_current, so a healthy frontier could be reported with an incomplete inventory.Solution
frontier_state_countsbeside the existing residualstate_countsin new census residuals.Ref polylogue-lkrc.5. Ref polylogue-lkrc.
Verification
devtools test tests/unit/storage/test_archive_readiness.py tests/unit/storage/test_raw_authority_ledger.py tests/unit/storage/test_duplicate_raw_identity_repair.py tests/unit/storage/test_quarantined_accepted_raw_repair.py tests/unit/storage/test_browser_capture_origin_repair.py tests/unit/daemon/test_daemon_cli.py tests/unit/cli/test_archive_maintenance_cli.py— 201 passed.devtools verify --quick— 16 checks passed, including render, topology, and layering.