You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replay harness silently skips uncle validation on a pruned store, reporting only a count #386
From the external review of #374. Verified here, and I would rate this above
the rest of the Low findings.
crates/execution/tests/mainnet_block_rules.rs:210-232. The harness now skips
uncle validation for any block whose ancestry was pruned:
if !ancestry_held(&store, number, block.header.parent_hash, depth){
pruned += 1;continue;}
and reports only a count.
Why this is more than cosmetic
mainnet_block_rules is the evidence CLAUDE.md names for consensus changes —
"argument is not evidence here". A silent skip means the harness can report a
pass while having validated far fewer uncle blocks than the operator assumes.
The required depth is UNCLE_GENERATION_LIMIT + REQUIRED_BLOCKS (449 headers
plus seven generations), so on a pruned store the skip could be the common case,
not the exception.
The skip itself is legitimate — you cannot validate what was pruned. The
problem is that it is indistinguishable from success.
What would settle it
Print the skipped count next to the validated count unconditionally, and fail
the test if the validated fraction falls below a threshold — or require an
explicit opt-in flag to tolerate any skips at all. A run that validated 12 of
9,000 uncle blocks should not look like a run that validated all of them.
This should be fixed before the harness is used as deploy evidence for #374.
Measured on this node's store: the skip count is zero
Ran the harness against /var/lib/rustock (head #9,422,658), bound read-only
into a bwrap sandbox, mainnet unit stopped:
head #9422658
fork-detection blocks checked: 300, failures 0
RSKIP179: checked 672 mainnet headers (281 below iris300),
largest timestamp gap seen 276s against a 300s bound, failures 0
checked 428, skipped 0, failures 0
uncle-bearing blocks checked: 12531, failures 0,
skipped with their ancestry pruned 0
test result: ok. 4 passed; 0 failed; finished in 241.36s
skipped with their ancestry pruned 0. The store is not pruned — the
freezer holds 9,402,658 of 9,422,658 headers, and a separate boundary scan found
no missing canonical headers at any activation height. So the skip path this
issue is about never fires here, and the green result is not hollow: 12,531
uncle-bearing blocks were genuinely validated.
I argued this should be fixed before the harness was used as deploy evidence for #374. That was wrong for this store, and the repository owner's read — that it
did not warrant blocking the test pass — was right. Recording it rather than
quietly dropping it.
Downgrading, not closing
The defect is real and still worth fixing, because the condition it hides is
invisible by construction:
it is latent only because this store happens to be unpruned
the count is printed, but nothing fails on it, so a future pruned store gives
a green run that validated almost nothing
The fix from the original report still stands and is small: fail when the
validated fraction drops below a threshold, or require an explicit flag to
tolerate any skips. Worth doing before #271 lands, not before #374 deploys.
Also worth noting while it is in view: the harness is a sample, not an
exhaustive replay — 428 blocks for the general block rules, 300 for fork
detection, 672 for RSKIP179. The uncle test is the broad one at 12,531. That is
a separate limitation from this issue, but it bears on how much weight a pass
can carry.
Activity
SDL-A1 commentedon Nov 18, 2026
Measured on this node's store: the skip count is zero
Ran the harness against
/var/lib/rustock(head #9,422,658), bound read-onlyinto a bwrap sandbox, mainnet unit stopped:
skipped with their ancestry pruned 0. The store is not pruned — thefreezer holds 9,402,658 of 9,422,658 headers, and a separate boundary scan found
no missing canonical headers at any activation height. So the skip path this
issue is about never fires here, and the green result is not hollow: 12,531
uncle-bearing blocks were genuinely validated.
I argued this should be fixed before the harness was used as deploy evidence for
#374. That was wrong for this store, and the repository owner's read — that it
did not warrant blocking the test pass — was right. Recording it rather than
quietly dropping it.
Downgrading, not closing
The defect is real and still worth fixing, because the condition it hides is
invisible by construction:
headers to disk) both move toward stores where it would fire
a green run that validated almost nothing
The fix from the original report still stands and is small: fail when the
validated fraction drops below a threshold, or require an explicit flag to
tolerate any skips. Worth doing before #271 lands, not before #374 deploys.
Also worth noting while it is in view: the harness is a sample, not an
exhaustive replay — 428 blocks for the general block rules, 300 for fork
detection, 672 for RSKIP179. The uncle test is the broad one at 12,531. That is
a separate limitation from this issue, but it bears on how much weight a pass
can carry.