Skip to content

dgb(phase-b): delegate get_desired_version_{weights,counts} into tally SSOT (#429 follow-on) - #433

Merged
frstrtr merged 1 commit into
masterfrom
dgb/desired-version-tally-delegate
Jun 25, 2026
Merged

dgb(phase-b): delegate get_desired_version_{weights,counts} into tally SSOT (#429 follow-on)#433
frstrtr merged 1 commit into
masterfrom
dgb/desired-version-tally-delegate

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Stacked on #429. Rewires ShareTracker::get_desired_version_weights() (the CONSENSUS 60%-by-work version-switch gate input) + its flat-count diagnostic sibling get_desired_version_counts() to delegate the per-version accumulation into the desired_version_tally SSOT (#429). Chain-walk + lookbehind clamp stay inline; only the map accumulation moves; absent-ShareIndex shares skipped exactly as before => byte-identical.

PROOF (non-circular): new KAT DesiredVersionTallyDelegationByteIdentity over {2,4,8}-share chains, expected maps derived from production chain::target_to_average_attempts (NOT the SSOT under test) + hand-counted flat tally + lookbehind-clamp check. Pre-existing real-chain weight tests (DesiredVersionWeightsByAttempts / WeightWalkValueInvarianceBattery / AutoRatchet*) now route through the delegated accessor and stay green. Local: dgb_share_test 10/10, dgb_desired_version_tally_test 6/6.

Consensus-bearing (version-tally feeds version voting) -> NOT a fenced auto-merge; operator tap. Retarget base to master after #429 lands.

@frstrtr
frstrtr changed the base branch from dgb/desired-version-tally-ssot to master June 24, 2026 15:28
@frstrtr
frstrtr force-pushed the dgb/desired-version-tally-delegate branch from ae3bb52 to 919f842 Compare June 24, 2026 16:25
…y SSOT

Rewire ShareTracker::get_desired_version_weights() (the CONSENSUS 60%-by-work
version-switch gate input) and its flat-count diagnostic sibling
get_desired_version_counts() to delegate the per-version accumulation into the
desired_version_tally SSOT introduced in #429 (accumulate_version_weights /
accumulate_version_counts). The chain-walk and the lookbehind clamp stay inline
in ShareTracker (the clamp is the separate chain_walk_window SSOT); only the map
accumulation moves. Shares with an absent ShareIndex are skipped exactly as
before, so the resulting map is byte-identical.

Value-identity is proven NON-CIRCULARLY by a new KAT
(DesiredVersionTallyDelegationByteIdentity) over chains of 2/4/8 shares whose
expected maps are derived from first principles (production
chain::target_to_average_attempts over the input bits, plus a hand-counted flat
tally) rather than from the SSOT under test, plus a lookbehind-clamp check; and
by the pre-existing real-chain weight tests (DesiredVersionWeightsByAttempts,
WeightWalkValueInvarianceBattery, AutoRatchet*) which now route through the
delegated accessor and remain green.

Stacked on #429 (dgb/desired-version-tally-ssot).
@frstrtr
frstrtr force-pushed the dgb/desired-version-tally-delegate branch from 919f842 to 67cf54c Compare June 24, 2026 19:50
@frstrtr
frstrtr merged commit ac363da into master Jun 25, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant