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
Lab: corpus diff treats trees that fail the same way on both sides as excluded, not NOT COMPARABLE #39
with exit 2. Every refused tree failed the same way on both sides: upstream main crashes on four, and mason.nvim is the excluded blowup. So the remaining 54 trees compare cleanly. On any upstream-based diff, exit 2 reads as a failure, and a script that checks the exit code gets it wrong.
Want
A tree with the same outcome on A and B (both crash, both refused, …) counts as excluded: one summary line (corpus diff: 5 tree(s) excluded, same outcome on both sides: …), exit 0.
Exit 2 stays for trees whose outcome differs between A and B (one finished, the other crashed or timed out). That's a real change worth flagging.
AGENTS.md "corpus diff exit 2 means not comparable" stays true under the new meaning.
Related noise, seen in both corpus diffs on 2026-11-17 (up-41366714-1117 against nilparam-0286155e-1117 and against memo-43f8b0ea-1117): assign-type-mismatch lines that move between runs of the same binary (#9). Three runs of main 4136671 on blink.cmp, diffview.nvim, nui.nvim and nvim-lspconfig each reported different lines (nui tree/init.lua 240 once, 239 twice). Each diff needed that manual 3× re-run to tell noise from change.
Idea for the same fix as this issue: corpus run --repeat=N (or a second base run the same day), and corpus diff tags a line flaky when the base runs disagree on it.
Done in myvi 82e5b16 (neospector myemmylab.lua + CLI + tree), docs in fork 1b8eb83 (measuring.md). Neither is pushed yet.
A tree with the same non-finished outcome on both sides lands in Diff.excluded and prints one line, corpus diff: N tree(s) excluded, same outcome on both sides: …, with exit 0.
Still refused (exit 2): an outcome that differs between A and B, unknown on both (a gate base without a report can hide a change), and a diff where no tree compared at all.
Tests: 4 new emmylab/diff nodes; 3 were red before the change (the unknown one is a guard that already held). Neospector gndx gate: PASS.
Real control: corpus diff up-14607355-1124 upnamed-1124 on the old code: 6 REFUSED (async.nvim, bufferline.nvim, neotest, neovim-runtime, tuis.nvim: crash; mason.nvim: refused), NOT COMPARABLE, exit 2. On the new code: the same 11 changed lines, 6 tree(s) excluded, exit 0.
Activity
gndx emmylua, Lua-side gates) #17mareklangiewicz commentedon Nov 17, 2026
Related noise, seen in both corpus diffs on 2026-11-17 (
up-41366714-1117againstnilparam-0286155e-1117and againstmemo-43f8b0ea-1117):assign-type-mismatchlines that move between runs of the same binary (#9). Three runs of main 4136671 on blink.cmp, diffview.nvim, nui.nvim and nvim-lspconfig each reported different lines (nuitree/init.lua240 once, 239 twice). Each diff needed that manual 3× re-run to tell noise from change.Idea for the same fix as this issue:
corpus run --repeat=N(or a second base run the same day), andcorpus difftags a lineflakywhen the base runs disagree on it.mareklangiewicz commentedon Nov 26, 2026
Done in myvi 82e5b16 (neospector
myemmylab.lua+ CLI + tree), docs in fork 1b8eb83 (measuring.md). Neither is pushed yet.Diff.excludedand prints one line,corpus diff: N tree(s) excluded, same outcome on both sides: …, with exit 0.unknownon both (a gate base without a report can hide a change), and a diff where no tree compared at all.emmylab/diffnodes; 3 were red before the change (theunknownone is a guard that already held). Neospectorgndx gate: PASS.corpus diff up-14607355-1124 upnamed-1124on the old code: 6 REFUSED (async.nvim, bufferline.nvim, neotest, neovim-runtime, tuis.nvim: crash; mason.nvim: refused), NOT COMPARABLE, exit 2. On the new code: the same 11 changed lines,6 tree(s) excluded, exit 0.docs/agents/measuring.md: corpus diff excludes a tree that failed the…