Skip to content

tools: DOOM Port Speedrun harness -- manifest, clone/scan driver, clean-scan scorer (Part of #5468) - #5515

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

squid-protocol merged 1 commit into
mainfrom
churn/5468-20261018T1832Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Part of #5468 (milestone DOOM Port Speedrun). First self-contained slice: manifest + clone/scan driver + scorer + README + tests.

What

tests/tools/doom_speedrun/: manifest.csv (39 ports, pinned SHAs, languages, lineage; no third-party code), doom_speedrun.py (resumable fetch/scan/score/report, results keyed by engine SHA under --work, refused inside the repo; scans go through heavy-run.sh), doom_scorer.py (the six round-2 checks, ctags definitions-only, opt-in tree-sitter oracle --oracle beside ctags, never scored), README.md (checks + blind spots). Opt-in, not in default CI.

Evidence: full 39-port run at engine 41777e5f4 (below); round 2 was 8 PERFECT at 585c243e9. linuxdoom reproduces its round-2 row exactly (778/778 ctags, 1 missed file, 5/6).

Results (engine 41777e5f4, --oracle; measurements, not a correctness claim)

16 PERFECT / 39 ports

port verdict fails gg fn ctags fn delta % ts fn missed SARIF err
linuxdoom 5/6 coverage 778 778 0.0 784 1 0
chocolate-doom 5/6 health 5168 5124 0.9 5189 0 3
crispy-doom 5/6 health 5909 5864 0.8 5938 0 3
doomgeneric 5/6 coverage 1191 1190 0.1 1199 1 1
doomretro PERFECT 2236 2236 0.0 2220 0 1
prboom-plus PERFECT 2517 2460 2.3 2461 0 2
dsda-doom PERFECT 4937 4915 0.4 4938 0 1
woof 4/6 coverage health 3783 3753 0.8 3791 6 3
eternity 4/6 coverage health 8233 8011 2.8 8213 1 2
odamex PERFECT 8667 8838 -1.9 8893 0 2
gzdoom 5/6 coverage 18394 18137 1.4 18700 83 2
zandronum 4/6 coverage health 16249 16177 0.4 16435 3 3
doom64ex PERFECT 1895 1927 -1.7 1928 0 1
room4doom 5/6 coverage 4684 4650 0.7 4579 10 0
gore 5/6 functions 1025 946 8.4 1025 0 0
managed-doom PERFECT 1301 1301 0.0 1276 0 0
mochadoom PERFECT 3784 3790 -0.2 3789 0 0
rust-doom PERFECT 616 603 2.2 590 0 0
doom-wasm PERFECT 2055 2040 0.7 2064 0 2
fastdoom PERFECT 1736 1710 1.5 1737 0 3
gbadoom 5/6 coverage 768 768 0.0 768 1 0
psydoom 5/6 functions 3977 4357 -8.7 4198 0 1
doom64-re PERFECT 809 809 0.0 859 0 0
psxdoom-re PERFECT 661 661 0.0 670 0 0
puredoom PERFECT 1560 1545 1.0 1560 0 0
doom-ios 4/6 coverage language 1958 1938 1.0 1852 62 1
doom3-bfg 5/6 coverage 16900 16760 0.8 16758 1 0
doom-nano 4/6 coverage functions 59 53 11.3 61 1 0
doom-ascii 5/6 health 1019 1019 0.0 1027 0 1
vizdoom 4/6 coverage health 14515 14622 -0.7 14561 6 3
srb2 PERFECT 6762 6595 2.5 6716 0 1
freedoom PERFECT 119 119 0.0 119 0 2
helion 4/6 coverage functions 9433 9066 4.0 9649 1 1
doomsday 2/6 coverage language functions health 26150 22864 14.4 26610 15 7
edge-classic 4/6 coverage health 4964 4923 0.8 4938 1 0
nugget-doom 4/6 coverage health 4168 4138 0.7 4175 6 3
inter-doom PERFECT 6236 6226 0.2 6252 0 3
sdl-doom 5/6 coverage 1079 1078 0.1 1087 1 0
doom3do 5/6 coverage 486 486 0.0 489 1 0

Design decisions: vendoring is the engine's VendorDirectoryDetector only (its API changed with #5464); the round-2 hand-kept vendor-name list is --legacy-vendor. The 8-perfect/39 table cannot be byte-reproduced at a different engine, so the harness makes the diff between two engine SHAs the product.

Class

Class: "measure the DOOM port corpus reproducibly". Covered: manifest, clone/scan, six-check scorer, ctags + tree-sitter oracle, per-engine-SHA CSV/markdown.

Sibling gaps: none beyond Remaining slices.

Remaining slices: (1) libclang oracle on a subset with compile_commands; (2) a diff subcommand comparing two results/<sha>/clean_check.csv (before/after per issue) and an --against round-2 CSV check; (3) optional manual workflow wrapper.

Gates: pr_gates --fast 6/6; tree-wide guards pass (after fixing test_source_reads: use read_bytes().decode); audit_check clear; new tests 14 pass, time-ratchet 0 over limit. --ratchets not run: no engine, golden or generated-doc change.

Lessons for agents

  • VendorDirectoryDetector.is_candidate_name no longer exists; call is_vendored(rel_dir) on each ancestor directory.
  • tests/test_source_reads.py flags read_text(errors="replace") in tools; use read_bytes().decode("utf-8", "replace").

Cross-repo: none.

🤖 Generated with Claude Code

…can driver, clean-scan scorer (Part of #5468)

Manifest of pinned SHAs (no third-party code), a resumable clone+scan+score driver keyed by engine SHA,
the six-check clean-scan scorer ported from the round-2 study, ctags plus an opt-in tree-sitter oracle,
and a README with the checks and their blind spots. Opt-in, not part of default CI.

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 18:50
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 18:51
@squid-protocol
squid-protocol merged commit f07a307 into main Oct 18, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the churn/5468-20261018T1832Z branch October 18, 2026 19:04
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