ltc(KAT): pin chain-walk lookbehind window clamp+guard via real ShareTracker#716
Merged
Merged
Conversation
…Tracker Additive, fenced KAT (no production code touched). Pins the pure-integer window idiom governing every backward sharechain accessor: actual = min(lookbehind, height); if (actual <= 0) -> empty result open-coded inline in four share_tracker.hpp accessors (get_average_stale_prop, get_stale_counts, get_desired_version_counts, get_desired_version_weights). Drives the clamp+guard through the REAL ltc::ShareTracker chain-walk API over a dense (H, lookbehind) matrix; the realized walk length is asserted against an independent inline min() oracle. The clamp feeds the check()-phase 60% work-weighted v36 switch gate and the #288 AutoRatchet VOTING tail guard. Registered into the share_test target so it cannot become a #143 NOT_BUILT sentinel. 5/5 PASS on Linux x86_64.
frstrtr
force-pushed
the
ltc-doge/ltc-chain-walk-window-kat
branch
from
July 16, 2026 03:49
6bbe155 to
eebf1da
Compare
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.
Regression KAT for the think() phase-1 chain-walk lane (share_tracker.hpp lookbehind under exclusive lock). Pins that the realized lookbehind window is clamped/guarded against an unbounded head-null full-chain walk, exercised via a REAL ShareTracker (not a mock).
Reviewer/author: ltc-doge-production-steward. I do not merge — integrator merges w/ operator tap. Non-blocking on G3b; hardens the phase-1 wedge diagnosis.