Repository navigation
fix(fts): reconcile global debt in one pass - #3272
Conversation
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]>
Problem: sparse rowid windows repeatedly scanned the large FTS shadow table during global debt recovery, starving raw-authority replay.\n\nWhat changed: global FTS debt now uses one set-based missing-row and identity reconciliation while retaining the contentless-FTS-safe excess-row deletion path.\n\nCo-Authored-By: Codex <[email protected]>
|
Warning Review limit reached
Next review available in: 22 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 Plus Run ID: 📒 Files selected for processing (5)
✨ 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: f7819d8057
ℹ️ 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\n\nReplaces sparse-rowid FTS debt reconciliation with a set-based single-pass repair.\n\n## Problem\n\nLive recovery traced the FTS debt worker repeatedly scanning the 27 GiB active index through numeric rowid windows. The stale-ledger recovery starved the pending raw-authority replay without producing a durable FTS receipt.\n\n## Solution\n\nGlobal FTS debt retains contentless-FTS-safe excess deletion, then reconciles missing FTS rows and their identity ledger with one set-based pass each.\n\n## Verification\n\n- — 51 passed.\n- Pre-push {
"timestamp": "2026-07-23T11:22:09.622434+00:00",
"git_head": "f7819d8057dba12fe46584b779bb838627a77e71",
"tier": "quick",
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff",
"steps": [
{
"name": "ruff format",
"duration_s": 0.01,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/01-ruff-format"
},
{
"name": "ruff check",
"duration_s": 0.01,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/02-ruff-check"
},
{
"name": "mypy",
"duration_s": 0.63,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/03-mypy"
},
{
"name": "render all",
"duration_s": 9.03,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/04-render-all"
},
{
"name": "verify topology",
"duration_s": 0.46,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/05-verify-topology"
},
{
"name": "verify layering",
"duration_s": 3.82,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/06-verify-layering"
},
{
"name": "verify closure-matrix",
"duration_s": 0.29,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/07-verify-closure-matrix"
},
{
"name": "lab schema roundtrip",
"duration_s": 0.88,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/08-lab-schema-roundtrip"
},
{
"name": "verify manifests",
"duration_s": 1.72,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/09-verify-manifests"
},
{
"name": "verify ci-workflows",
"duration_s": 0.34,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/10-verify-ci-workflows"
},
{
"name": "verify doc-commands",
"duration_s": 2.54,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/11-verify-doc-commands"
},
{
"name": "verify docs-coverage",
"duration_s": 2.41,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/12-verify-docs-coverage"
},
{
"name": "verify test-infra-currency",
"duration_s": 0.38,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/13-verify-test-infra-currency"
},
{
"name": "verify test-clock-hygiene",
"duration_s": 2.21,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/14-verify-test-clock-hygiene"
},
{
"name": "verify pytest-timeout-overrides",
"duration_s": 3.97,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/15-verify-pytest-timeout-overrides"
},
{
"name": "verify degrade-loudly",
"duration_s": 1.21,
"exit": 0,
"run_id": "20260723T112139Z-quick-2591035-e6957bff",
"artifact_dir": ".cache/verify/runs/20260723T112139Z-quick-2591035-e6957bff/steps/16-verify-degrade-loudly"
}
],
"total_duration_s": 30.18,
"exit_code": 0
} — completed successfully before branch publication.\n\nRef polylogue-t93b