Skip to content

A zero that cannot match, and ratchets firing on improvements - #2888

Merged
gHashTag merged 1 commit into
masterfrom
w735
Aug 29, 2026
Merged

A zero that cannot match, and ratchets firing on improvements#2888
gHashTag merged 1 commit into
masterfrom
w735

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Two sections from #2883 and #2887.

335 — a count of zero from a pattern that cannot match. An audit ruled out the braceless else with "the corpus has 0 such sites — all 37 } else <non-brace> hits are paren-less else if". There are four:

if (a_val >= b_val) return a else return b;

They do not match } else <non-brace> because the if has no braces either — the whole statement is one line, so there is no } before the else for the pattern to anchor on. The search was written for the shape the searcher was imagining.

A zero from a pattern that cannot match the real spelling is the expensive kind, because it closes the question: the next reader sees it was already checked. Before believing a zero, feed the pattern a case you know exists.

336 — both ratchets fired on improvements, and both were right. Two went red in one hour, neither on a regression:

  • the Lean/Rust classifier reported four new disagreements, because four specs that could not be parsed became parseable and the classifier could finally disagree with a theorem that had always been wrong about them;
  • the corpus ratchet reported 19 unexpected passes and 1 unexpected failure — the nineteen are that same unblocking, and the one failure is one of the nineteen, now parsing and therefore now measurable for discard.

A down-only ratchet fails on an improvement exactly as it fails on a regression, and that is the design. The work is the same work: read what moved, decide which side is stale, re-bless with the reason written down. The failure mode is doing it without the reason — a ledger full of unclassified entries is one nobody can argue with later.

And one thing to check every time, because the tooling does not: --bless-expectations does not raise or lower max_entries, so a freshly blessed ledger can still fail on its cap.

Refs #2883, #2887

… improvements

335: an audit ruled out the braceless `else` with "the corpus has 0 such
sites -- all 37 `} else <non-brace>` hits are paren-less `else if`".
There are four. They do not match that pattern because the `if` has no
braces either: `if (a >= b) return a else return b;` is one line, so
there is no `}` before the `else` to anchor on. A zero from a pattern
that cannot match the real spelling CLOSES the question, which makes the
defect harder to find again than if it had never been reported. Before
believing a zero, feed the pattern a case you know exists.

336: two ratchets went red in one hour and neither on a regression. The
Lean/Rust classifier reported four new disagreements because four specs
that could not be PARSED became parseable, so the classifier could
finally disagree with a theorem that had always been wrong. The corpus
ratchet reported 19 unexpected passes and 1 unexpected failure -- the
nineteen are that same unblocking, and the one failure is one of the
nineteen, now parsing and therefore now measurable for discard. A
down-only ratchet fails on an improvement exactly as on a regression,
and that is the design. The work is the same work, and the failure mode
is doing it without writing the reason down.

Refs #2883, #2887
@gHashTag
gHashTag enabled auto-merge (squash) August 29, 2026 21:25
@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-29 21:26:00 UTC

Summary

Status Count
Total Open PRs 8
PRs with Failing Checks 7
PRs with All Checks Green 1
READY 0
FAILING 7
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=f569da0c6c14 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag merged commit 9976a68 into master Aug 29, 2026
23 of 24 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