Skip to content

DOOM Port Speedrun harness: pinned 40-port corpus manifest, clean-scan scorer and ctags/tree-sitter comparison as a reproducible tool #5468

Closed

Description

@squid-protocol

Goal

Make the DOOM port study reproducible from the repo so every fix in this milestone is measured on the same corpus and the comparison write-up can be regenerated.

Scope

  • Manifest (no DOOM code in the repo): name, upstream URL, pinned SHA, language(s), lineage (id release -> Chocolate -> Crispy -> ..., Boom -> PrBoom+ -> dsda, ZDoom -> GZDoom -> Zandronum/ViZDoom, rewrites: gore/Go, managed-doom/C#, mochadoom/Java, rust-doom/room4doom/Rust, console RE: doom64-re, psxdoom-re, psydoom, gbadoom, doom3do). Start from /srv/storage_16tb/projects/gitgalaxy/doom-study/variants_r2.csv (39 ports).
  • Clone + scan driver: shallow clone at SHA into a scratch dir outside the repo, scan with the current engine.
  • Clean-scan scorer, ported from doom-study/scripts/clean_check.py: six checks per port — coverage (no first-party file with functions excluded; engine's own VendorDirectoryDetector for vendoring), language fits extension, function count vs Universal Ctags (definitions only, per-language kinds), typosquat alerts, credential flags, log health — plus SARIF error-level listing for review.
  • Second oracle: ctags misses macro-defined functions (C/C++ function-defining macros are not counted as functions (6,074 of 6,437 in the DOOM corpus: DEFINE_ACTION_FUNCTION, CCMD, FUNC(...)) #5461), so add tree-sitter (and/or libclang on a subset with compile_commands) counts so the write-up is not "matches ctags" only.
  • Output: one CSV + markdown table per run, keyed by engine SHA, so before/after per issue is a diff.

Rules

  • Clone at pinned SHAs, never commit third-party code; publish measurements, not reconstructions (docs/research/third-party-material-policy.md).
  • Heavy runs via tests/tools/box/heavy-run.sh; not part of default CI (opt-in marker or a manual workflow).

Acceptance

  • One command reproduces round 2's clean_check.csv (8 perfect / 39 at 585c243e9) from the manifest.
  • README in the tool dir documents the checks and their known blind spots.

Part of #5457 (milestone DOOM Port Speedrun).

Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ — round2_findings.md, clean_check.csv, clean_check_details.json; scans in scans_r2/<port>/ at engine 585c243e9; corpus variants_r2.csv (39 ports, pinned SHAs); scorer scripts/clean_check.py.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    metrics
    testing
    needs:doom-corpus
    scope:infra
    on Oct 18, 2026
  2. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

    Closing: the harness shipped (#5515, #5529, #5533, #5577, #5617) and scores 35/39 at 29349f079. The remaining acceptance (one-command reproducibility, README, keeping it honest over time) moves into the DOOM Crucible gate, #5619.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmetricsneeds:doom-corpuspriority: mediumscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions