feat(phase-61): admin backfill-index (61-01) - #51
Open
RichardHightower wants to merge 1 commit into
Open
Conversation
Stopped-daemon CLI that replays events into BM25 so pre-v3.1 empty text_preview documents can be filled. Default start resumes from the index checkpoint; --from-sequence 0 walks the event log (outbox may already be drained). --dry-run counts and writes nothing. A second run reports 0 new. Refuses to run if the daemon PID is live and names memory-daemon stop. Not rebuild-indexes (TOC/grips) and not rebuild-bm25 (a prune). Vector backfill of raw events is still a no-op without grips. OPS-01 / #41.
This was referenced Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the pre-v3.1 empty
text_previewgap (#41 / OPS-01). Stacked on #49 (needs the sequence-0 checkpoint fix).What
--from-sequence 0replays the event log so stores whose outbox is already drained still get text into Tantivy (idempotent upsert byevent_id).--dry-runprints counts, writes nothing (checkpoint unchanged).memory-daemon stop.n/totalon stderr every batch.max_batches=1in tests is the SIGINT-after-batch-1 equivalent.This is not
admin rebuild-indexes(TOC/grips) and notadmin rebuild-bm25(a prune). Vector backfill of raw events is still a no-op without grips; use--index bm25for this gap. Import.rs was not cherry-picked — it is not on this line.A v3.0 RocksDB dump at
68ab122is not in-tree (impractical). The e2e seeds 50 events with realOutboxEntryJSON, never runs the indexer, then backfills.Verify (targeted; same bar as #49 / #50)
All of the above are green locally.
Honest caveats
--index all/--index vectorloads Candle. The OPS-01 e2e uses--index bm25.max(last, outbox_head-1)so a later live drain does not re-process.