fix(indexer): derive SR-2 time from consensus - #73
Merged
Conversation
randomblocker
force-pushed
the
randomblocker/sr2-consensus-anchor
branch
from
August 5, 2026 10:52
01e9ff5 to
ee113ae
Compare
randomblocker
marked this pull request as ready for review
August 5, 2026 10:52
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.
What changed
anchor_timevalues once, so reputation safely falls back tofinalisedAtuntil corrected evidence is availableWhy
Issue #30 identified that
tx.timestampis producer supplied and that a failed or unrelated transaction could previously backdate a locator merely by mentioning it. The live node exposes confirmed block timestamps and ordered transaction membership, allowing the indexer to attribute time to the exact content-producing write instead.Impact
DACS-5 reputation uses the
sr2-anchor-timestampwindow only when a bundle has a content-bound consensus observation. Unresolved bundles retain the existing honestfinalisedAtfallback. Historical records converge through bounded passes without allowing an unresolvable row to starve later work.Validation
npm test— 152 passednpm run typechecknpm run buildCoordination
PR #71 also touches scanner/reindex state. It is independently ready and should land first; this PR can then be rebased to resolve the mechanical overlap without mixing scopes.
Closes #30