[#898] Detect and recover indexer gaps and reorgs - #910
Merged
greatest0fallt1me merged 1 commit intoAug 27, 2026
Merged
Conversation
4 tasks
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.
Summary
Make indexer recovery explicit and safe for missing ledger ranges, at-least-once RPC delivery, worker restarts, and chain reorgs.
What changed
datacolumn and a safe fallback event type.Acceptance criteria
IndexerRecoveryPlannerblock missing ranges.ON CONFLICT DO NOTHING.Validation
npm test -- --runInBand --forceExit tests/indexerRecovery.test.ts tests/indexerService.test.ts tests/indexerService.recovery.test.tsnpx tsc --noEmit ...on the recovery and indexer service modulesThe repository-wide TypeScript build still reports unrelated pre-existing errors in other routes/services.
Failure-mode considerations
Replay is chunked to bound RPC work, exact redelivery cannot increment stored rows, stale workers cannot be treated as canonical through the database identity boundary, and prediction confirmation state is reset when its source transaction is replaced.
Closes #898