Skip to content

DOOM study write-up and study_report.py (Part of #5620) - #6094

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5620 (final slice: rescan + write-up). Slices 1, 2 and 4 are merged (#5714, #6067, #6077); slice 3 (callmaps.py) was dropped by the owner on 2026-10-21, so the subway figures come from sfs.

What

  • docs/research/doom-port-study.md: measurements only, no port code, three short attributed README quotes. Per-port clean-scan before/after (round 2 585c243e9 to eadc036c9), fidelity, lineage, distributions, cross-language landmarks, subway, limits.
  • tests/tools/doom_speedrun/study_report.py: one command regenerates every table into the doc's marked blocks (--write; --check returns rc 1 when stale).
  • lineage.LICENSED gained the 13 licensed manifest ports it lacked (they were silently hidden from the translation analysis); README updated.
  • 6 tests in tests/tools/test_doom_study_report.py (synthetic rows only).

Findings

  • 27 of 44 ports pass every scored check now; round-2 coverage/health failures are gone. 17 fail the new call-graph check (14 existed in round 2). Some passes are vacuous (0 first-party files seen, e.g. Fortran/Crystal/F#/COBOL ports): the table marks them.
  • Calibration: Scheme case clauses are not counted (p-cross-special-line: 75 clauses, complexity 6 vs 93). Dart counts break|continue as branches, C does not (pUseSpecialLine 169 vs 121; same 48 if and ~67 case, 51 break). Go: none found (gore matches on 12/12 landmarks).

Sibling gaps (not filed)

  • Scheme case clause counting; Dart break|continue in the branch rule (engine fixes, golden re-bless).
  • Landmark matcher drops no p_/r_ prefix: managed-doom, doomf77, kocoa-doom, mochadoom find 0-4 of 12.
  • Scorer SRC_EXT misses Fortran, Crystal, F#, COBOL (check 1 vacuous); gg_functions is 0 where no ctags comparison exists.
  • Vendored code not excluded in distributions; 20 ports state no fidelity; per-subsystem distributions and plots not done.

Cross-repo

Companion: squid-protocol/gitgalaxy-population-analyses #17/#18 (sfs subway). No merge-order dependency; the subway table was built from an sfs run on 2026-10-21 data, re-run sfs compare and study_report.py --write after either side moves.

Verification

pr_gates.py --fast 7/7, audit_check.py clear, new + lineage + speedrun + source-read/UTF-8 guard tests pass with plain pytest from /tmp. Not engine code: no golden re-bless.

Lessons for agents

  • ruff check of a path outside the repo config run from a different cwd applies default rules (S101 noise); use audit_check.py.
  • study_report.py --write takes ~2 min (re-runs lineage/distribution over the clones): run it in the background.

🤖 Generated with Claude Code

…t.py regenerating its tables (Part of #5620)

Rescan on eadc036: clean-scan before/after against round 2, fidelity, lineage, distributions, cross-language
landmarks and the sfs subway figures, each a marked block filled by study_report.py (--write / --check).
Calibration findings: Scheme case clauses uncounted, Dart counts break/continue as branches, Go none.
lineage.LICENSED gains the 13 licensed manifest ports it lacked.

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 23, 2026 00:05
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 00:19
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit f7e9d50 into main Oct 23, 2026
54 checks passed
@squid-protocol
squid-protocol deleted the churn/5620-20261022T2315Z branch October 23, 2026 01:01
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