Skip to content

DOOM study: distribution.py, per-function metric distributions vs linuxdoom (Part of #5620) - #6067

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5620-20261022T2111Z
Oct 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5620-20261022T2111Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5620 (slice 2 of 4; slice 1 was #5714).

What

tests/tools/doom_speedrun/distribution.py: the round-1 study's dist.py as 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); assets projects and ports under 30 code functions are skipped. README section added. No third-party code; measurements only.

Evidence

  • Run on the 0e2bf4a scans (30 licensed ports, 11 s): matches the study script's dist_summary.json for 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; plain pytest from an unrelated rootdir: 8 passed.
  • --ratchets not run: no engine, parser, golden, ledger or generated-doc input changed.

Class sweep

Class: study-prototype scripts that become harness tools.

member status
survival / canonical (survival.py, canonical.py) done, #5714
dist.py this PR
callmaps.py (subway maps) dropped (owner 2026-10-21), built as sfs subway in gitgalaxy-population-analyses
manifest fidelity column from READMEs slice 4, a different mechanism (reads clones' READMEs)
callcheck*, consensus* sibling gaps, below

Sibling gaps

Remaining slices

(4) manifest fidelity column from READMEs; then the rescan and docs/research/doom-port-study.md write-up.

🤖 Generated with Claude Code

…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 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 22, 2026 21:24
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 21:25
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit bae2cc3 into main Oct 22, 2026
58 checks passed
@squid-protocol
squid-protocol deleted the churn/5620-20261022T2111Z branch October 22, 2026 21:28
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