Skip to content

DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles) #5619

Closed

Description

@squid-protocol

Goal

Name: DOOM-rosetta (owner, 2026-10-19): a Rosetta stone of one program written many ways, the real-world sibling of keyword-rosetta (one artificial program); like the Golden Crucible in rigor. "DOOM" is used descriptively only.

Turn the DOOM Port Speedrun harness (tests/tools/doom_speedrun/, #5468) into a DOOM-rosetta: a CI regression gate as stringent as the Golden Crucible (golden-crucible.yml + tests/test_golden_crucible.py + crucible_check.py), over ~40 real DOOM ports spanning 30 years and many languages (7.8M LOC, 20.7k files, 199k functions at 0e2bf4ade). One program written many ways is an unusually good regression corpus: it already exposed ~10 general engine bug classes (#5458-#5466, #5563, #5618).

Status that motivates it (round 5, scorer #5617): 35/39 ports pass all six checks; engine within 0.3% of tree-sitter corpus-wide. The remaining value is protecting that, not chasing 39/39.

Design

  1. Golden = measurements, never code (docs/research/third-party-material-policy.md: publish measurements, not reconstructions; never commit third-party code). Per port, committed under tests/golden_doom_rosetta/<port>.json (compressed if large):
    • summary: rc, first-party files/LOC, functions, classes, languages, six-check verdict and values, SARIF counts by rule and level, typosquat/credential counts, log problems
    • per first-party file: path, language, LOC, function count, class count, and a hash of its sorted (name, start_line, loc, complexity) tuples (no names committed)
    • exclusions: path + reason (vendor, generated, payload, docs, ...)
      Estimate the size; keep the whole golden in the low MB.
  2. Gate: zero drift. pytest -m doom_rosetta scans each pinned port and diffs against the golden; any change fails with a per-port, per-file report (which file, which field). Clones fetched at run time at the manifest SHA (never committed), cached across runs (actions/cache keyed on the manifest).
  3. Bless like the Golden Crucible: tests/tools/doom_rosetta_check.py [--update --yes], and a scope report like bless_scope.py; a PR that changes the golden explains every moved port/file in its body. A local diagnose mode re-scans one port and prints the actual function names for a drifted file (local only).
  4. Workflow doom-rosetta.yml: same trigger and path filter as golden-crucible.yml (non-draft PRs touching the engine), matrix-sharded by LOC so PR wall time stays at or under the Golden Crucible's; full-precision leg (decide with data whether a zero-dep leg is worth it). Plus a nightly run on main with the oracles (--oracle, ctags + tree-sitter; libclang subset optional) that publishes the clean-scan table as an artifact and fails on any new failed check (diff --fail-on-regression).
  5. Manifest moves to tests/doom_rosetta/manifest.csv (tests/crucible_pins.toml-style single source), with columns for class (engine-port / reimplementation / raycaster) and license, and documented expected fails (doom-ios/doomsday .h-beside-.m caveat) so the six-check verdicts are gated too.

Licensing (owner ruling 2026-10-19; GitGalaxy is an LLC, so every use is commercial; not legal advice)

  • Only clearly licensed ports (an OSI license read from the repo's files, original or properly released source, no provenance concern) go into the in-repo manifest, the CI job and its caches, the committed golden, and any publication. GitHub's spdx is often NONE when the license file sits in a subdirectory (prboom-plus/dsda prboom2/COPYING, managed-doom licenses/, doomsday doc/LICENSE): read the files.
  • Anything questionable is internal only: the maintainer keeps a separate manifest and license register outside this repo and runs the harness on it locally (--manifest); nothing from it is committed, cached in CI, or named/quoted in public issues, PRs or docs. Engine bugs it reveals are filed with our own fixtures.
  • Remove the ports that don't qualify from tests/tools/doom_speedrun/manifest.csv in this PR: 31 of the current 39 qualify; the 8 to remove are named in the worker brief, and the PR says only "8 ports removed per the licensing rule". The manifest gets a license column (as found in the files) and the README states the rule.
  • No WADs or other game data in fixtures, goldens or caches; "DOOM" used only descriptively (no logos/screenshots; a not-affiliated-with-id-Software/ZeniMax/Microsoft line in the README); add the corpus to docs/research/third-party-material-policy.md "Current sources".

Acceptance

  • Golden committed for the licensed ports only (31 of the current 39, plus the licensed additions listed in the thread); pytest -m doom_rosetta passes on main, fails on a deliberately broken extractor (show it in the PR).
  • PR wall time measured and in the PR body (target ≤ Golden Crucible), runner-minutes per run.
  • Nightly run green with the oracle table as an artifact.
  • License column verified from files for every port; manifest, CI and golden contain licensed ports only.
  • README in tests/doom_rosetta/ (how to bless, how to add a port, the policy rules).

Supersedes the remaining acceptance of #5468 (harness reproducibility/README). Part of #5457.

🤖 Generated with Claude Code

Activity

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

    @squid-protocol
    OwnerAuthor

    Manifest expansion (licensed ports only) (licenses from the repo's files; all scanned locally at these SHAs with rc=0 at engine 29349f079; each already surfaced or confirmed an engine gap):

    port language license SHA lineage / class gap it exposed
    cedardb/sqldoom SQL (PostgreSQL/CedarDB) + Python GPL-2.0 95753a20e403d0658e624f623f972eb1f708deed engine-port of 1993 DOOM in SQL #5622
    Amnibro/doomf77 Fortran 77 GPL-2.0 1f82e3f40ca24c30aa808b5748e25aa5974b4fb9 engine-port, no C — (146 fns)
    brubsby/doom-scheme Chez Scheme GPL-2.0 a055cf96e74018dd46542e820b33187e0a584c98 port of linuxdoom-1.10 — (935 fns)
    bdero/dartdoom Dart GPL-2.0 94b8e82ac1204e8d3d9654cf8f276bf3a6eb1931 translation of playsim + renderer — (865 fns)
    D-Shwagginz/doo-cr Crystal GPL-3.0 4e17635d7184b3ef29bd79fde78069f12d96237f based on PureDOOM/linuxdoom #5623
    hiperbou/kocoa-doom Kotlin GPL-3.0 72d5113cd569f72bf7e8617904951175c4358f1e port of mochadoom (in corpus) — (3,565 fns)
    JamesRandall/fsharp-doom F# MIT d7bcf5c565f81aff9af68bce5e870c3ffadc871f reimplementation (BSP) #5623
    NielsLeenheer/cssDOOM JS + CSS GPL-2.0 438d2e17fb9f75fa3dbc54e1d21a3bc088ad009d reimplementation, WAD -> CSS 3D —
    RandalLinden/DOOM-FX 65816/SuperFX + 68k asm GPL-3.0 90af514994d6434b7ba6e74ca9109dad81639a28 1995 SNES engine (independent) #5624
    icitry/FPS.cob COBOL Apache-2.0 7c557fe5d53be9f75027674a662001aba38f1359 raycaster (sector mode) #5625
    acherm/agentic-cobol-doom-cc COBOL MIT 117db757cb69ed78dd0fe6195f66b219dca1042a raycaster by Claude, agentic-cobol-study #5618
    acherm/agentic-cobol-doom-codex COBOL + C MIT 0c4fe3e2c25480518290f5824920a3536bb25866 raycaster by Codex, same study —
    notactuallytreyanastasio/mood C + COBOL + JCL GPL-2.0 pin at onboarding modified linuxdoom driving a COBOL AI on z/OS — (JCL 6 files, 108 job-flow rows)

    Only licensed ports are listed here, per the licensing rule in the issue body. The full candidate list stays internal.

    🤖 Generated with Claude Code

  3. changed the title [-]DOOM Crucible: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles)[/-] [+]DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles)[/+] on Oct 19, 2026
  4. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5619-20261021T0408Z (host nyx) ended without a PR. PR #5813 already merged at 1450efd (owner-approved workflow edit per PR body); the worker's later push to the branch is moot

  5. squid-protocol commented on Oct 22, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5619-20261022T0643Z (host nyx) ended without a PR. Drift already blessed on main in #5883; helion ok on current main. No PR. Slice 4 (nightly --oracle, tests/doom_rosetta/README.md, doom_speedrun README) still open. Process gap: #5843 merged without the doom-rosetta gate.

  6. squid-protocol commented on Oct 22, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-10-22T18:51Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

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

    claim:nyxenhancementneeds:doom-corpuspriority: highscope:infratesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions