Skip to content

tools: DOOM speedrun diff subcommand, before/after and round-2 comparison (Part of #5468) - #5529

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5468-doom-diff
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5468-doom-diff

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5468 (slice 2 of 4).

What

doom_speedrun.py diff BEFORE AFTER [--fail-on-regression] compares two clean_check.csv files. A ref is a CSV, a results dir, an engine SHA under <work>/results, or round2 (the study's CSV, DOOM_ROUND2_CSV overrides). Only columns both files carry are compared (round 2 has no tree-sitter columns). Prints PERFECT counts, each moved port, and regressions (a port that gained a failed check or vanished); --fail-on-regression exits 1 on any.

Real output, diff round2 vs the 39-port run at 41777e5f4: PERFECT 8/39 -> 16/39, 31 ports changed (e.g. doom-ios 5/6 -> 4/6, psydoom function count 21361 -> 3977 after vendoring is now the engine's call). Moves are expected (engine changed since 585c243e9); the round-2 diff is for reading, not gating.

Class sweep

Class: comparisons of a run's result file. Covered: run-vs-run, run-vs-round-2 (same mechanism). Sibling gaps: none. Remaining slices: libclang subset oracle; PR body results table / docs (slices 3-4).

Files (4 hand-written): doom_diff.py (new), doom_speedrun.py, README.md, tests/tools/test_doom_speedrun.py.

Gates

pr_gates --fast 6/6 pass; tree-wide guards + new tests pass (17 tests, time ratchet 0 over). --ratchets not run: tool-only change, no parsing logic touched.

🤖 Generated with Claude Code

…mparison of clean_check.csv (Part of #5468)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 20:27
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 20:38
@squid-protocol
squid-protocol merged commit 0282244 into main Oct 18, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the churn/5468-doom-diff branch October 18, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant