Found Oct 14 about 6 PM CT, asking why the merge queue's batch cap is 8.
abso why worker/project/queue-driver.ts:95 (in project abso) answers with the newest change to the line: version 366, the Biome reformat of 192 files. That's true, and useless for the question. The reason is older. Getting to it took abso blame --version 365 and reading line numbers by hand, which an agent won't think to do.
What done looks like:
- abso why shows the line's earlier changes too, newest first, at least back to the change that last altered what the line does, not just its formatting. Something like 'Earlier: version 238 (import) ...'.
- A change can be marked mechanical (a reformat, a rename sweep), or abso can tell when a change only touched whitespace or quotes. why then skips past it by default and says it did ('skipped 1 formatting change: version 366').
- abso why <file>:<line> --at <version> works like blame --version, for when the line moved.
Checklist:
- [ ] why lists earlier changes to the line
- [ ] formatting-only changes are recognized and skipped, with a note
- [ ] --at <version>
Done in versions 193 and 194.
abso why now leads with the newest change to what the line does, and lists the line's earlier changes, newest first, with what the line read before each:
Written by ann (...), pushed in version 1 by ann (...): "Cap the batch at 8, tunable per project". It read: const n = Math.min(cap ?? 8, w); Skipped 1 formatting change since: version 3 (fmt, "Reformat"). abso why --all shows it. Earlier changes, newest first: version 0 by init (...): "Start the project" It read: const n = Math.min(8, w);
How it works: a change that rewrote a line leaves the line it replaced in the file's history, next to the new one. why pairs the two (the same code formatted differently, the same code rewrapped onto more or fewer lines, else the most similar line) and follows the pairs back, up to 50 changes. Formatting means whitespace, line wrapping, quote style, trailing commas, line-end semicolons and parentheses around a lone arrow parameter: the texts are compared with those taken out. Code moved to another file in one push, and reformatted on the way, is followed into the file it came from and counted as a move ('Skipped 1 formatting change and 1 move since: ...'); code moved as it is already kept its lines. --at <version> reads the line as shared had it then.
Not done: marking a change as mechanical by hand. A rename sweep changes the text, so why shows it as a real change, with the line's earlier changes right below it.
Checked on a real history of about 1,000 versions: a line under a whole-project reformat and a file split now answers in one step with the change that wrote it (about 50 to 250 ms per line).