Repository navigation
test(regression): per-issue differential catalogue with a stale-build gate (#746) - #774
Merged
Merged
Conversation
… gate (#746) One case per filed issue, run under WSL GNU bash 5.3.0 and under the arm, compared on rc + stdout + stderr. Each manifest row declares its expected state (diverges / must-match), so a run raises ALARM on a regression and PROMOTE when a fix lands; exit status is 1 on any alarm. The runner exits 2 when the arm predates HEAD: a ledger from a stale binary is worse than no ledger (AGENTS.md), and three reports in this project were filed against builds older than their fixes. First run: 27 cases, arm b579358, ok=27 alarms=0 newly-fixed=0 (on #746).
This was referenced Oct 17, 2026
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 this is
A runnable per-issue regression catalogue: one case per filed issue, run twice — once under WSL GNU bash 5.3.0, once under the arm — and compared on exit status, stdout and stderr.
The design goal is the one in #746 and in
AGENTS.md: every issue nailed down by a test, so it cannot regress. So this is deliberately not a scoreboard:manifest.tsvdeclares its expected state —diverges(known-bad, must keep diverging until fixed) ormust-match(fixed, must never diverge again);must-matchcase diverges, and PROMOTE when adivergescase starts matching (the fix landed → flip the row);The stale-build gate
If the arm predates
HEAD, the runner exits 2 without printing a table:AGENTS.mdalready says a ledger from a stale binary is worse than no ledger. I put that in the tool because I violated it three times in one week: both brush reports (#1527, #1528) and WinuxCmd #1202 were filed against builds older than their fixes, and #382/#383/#702/#756/#1202 only ended up closed because a re-verification against a current build showed the fix had already landed.--allow-staleexists for deliberate archaeology.I tested the gate itself: a copy of the binary with its mtime set to 2026-10-01 is refused, and accepted with
--allow-stale.Invocation rules (each one learned by breaking it)
/usr/local/bin/bash); never Git Bash, never the PATH shim;INCOMPLETEand is never a pass — that is howissue-738(heredoc swallows the script tail) andissue-758(malformed expansion) are detected at all;ERROR_BAD_EXE_FORMAT(os error 216) and then every helper-dependent case fails for both arms, which looks exactly like a divergence and is not one (this one cost me a whole comparison before I caught it);C:\…,C:/…,/c/…,/mnt/c/…) plus the per-armHOME. Nothing about the shells' own path rendering is normalised.First recorded run — 27 cases
26 rows are
diverges(each one reproduces on current master, with its issue number in the note); 1 row ismust-match(issue-702, which was verified fixed and closed). A previous 21-case pass of the same table is recorded on #746, together with the six rows added with #772/#773.Scope and what I am not proposing
.github/. If you want it in CI, the honest shape is: build the arm → run the runner → fail onALARM; the exit status is already correct.scripts/fast-path-differential.pyand friends already require.tests/, or as a bash harness in the style oftrue-baseline.sh, say so and I will convert it — the case bodies and the manifest are the substance; the runner is 200 lines of glue.Provenance
Cases come from the issues filed during an external audit (#699–#705, #713–#773); each case is the repro from its issue, reduced to the smallest body that still diverges. The catalogued expectations are the states I measured on
b5793580today; if a row is wrong, the case file and itsdiff.txtare the evidence to argue with.