Repository navigation
DOOM study: distribution.py, per-function metric distributions vs linuxdoom (Part of #5620) - #6067
Merged
Merged
Conversation
…uxdoom (Part of #5620) Port of the round-1 study's dist.py onto the speedrun harness, stdlib only. Reads the scans alone and reports, per licensed port, median / p90 of complexity, LOC, fan-out, token mass and args, the share of functions with complexity >= 10, and a normalised Wasserstein distance to linuxdoom. On the 0e2bf4a scans it matches the study script's numbers for all 30 shared ports to 1e-14. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 21:24
squid-protocol
enabled auto-merge (squash)
October 22, 2026 21:25
Owner
Author
|
No description provided. |
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.
Part of #5620 (slice 2 of 4; slice 1 was #5714).
What
tests/tools/doom_speedrun/distribution.py: the round-1 study'sdist.pyas our own tool, stdlib only (no numpy). Reads the harness scans alone (no clones) and writes<work>/results/<sha>/distribution/{distribution.csv,distribution.json,distribution.md}: per licensed port, median / p90 of complexity, LOC, call fan-out, token mass and args, the share of functions with complexity >= 10, a normalised Wasserstein distance to linuxdoom, and where linuxdoom's median falls among the ports'. Licensed ports only (lineage.LICENSED);assetsprojects and ports under 30 code functions are skipped. README section added. No third-party code; measurements only.Evidence
dist_summary.jsonfor all 30 shared ports, max difference 4e-15 (float noise).pr_gates.py --fast: 7/7 pass (CI ruff 0.17.0, mypy 2.4.0). Pre-PR guards + both DOOM test files: 217 passed;time_ratchet check: 0 over the limit; plainpytestfrom an unrelated rootdir: 8 passed.--ratchetsnot run: no engine, parser, golden, ledger or generated-doc input changed.Class sweep
Class: study-prototype scripts that become harness tools.
survival.py,canonical.py)dist.pycallmaps.py(subway maps)sfs subwayin gitgalaxy-population-analysescallcheck*,consensus*Sibling gaps
lineage._engine_vendor_test); the prototype did not do it either. Not here: changes the numbers, so it wants its own before/after. No burned-estate program needs it (DOOM study only).callcheck*/consensus*prototypes: largely covered bycallgraph_oracle.py(Call-graph validation for C/C++: independent body oracle + family consensus on the DOOM corpus (the Graph Accuracy Audit only covers Python/TS/Java) #5630); round-1 round-determinism andhotspots_extraare not ported. No burned-estate program needs either.Remaining slices
(4) manifest fidelity column from READMEs; then the rescan and
docs/research/doom-port-study.mdwrite-up.🤖 Generated with Claude Code