Repository navigation
Description
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
- Golden = measurements, never code (
docs/research/third-party-material-policy.md: publish measurements, not reconstructions; never commit third-party code). Per port, committed undertests/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.
- Gate: zero drift.
pytest -m doom_rosettascans 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/cachekeyed on the manifest). - Bless like the Golden Crucible:
tests/tools/doom_rosetta_check.py [--update --yes], and a scope report likebless_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). - Workflow
doom-rosetta.yml: same trigger and path filter asgolden-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). - 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-.mcaveat) 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
NONEwhen the license file sits in a subdirectory (prboom-plus/dsdaprboom2/COPYING, managed-doomlicenses/, doomsdaydoc/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.csvin 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 alicensecolumn (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_rosettapasses 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
squid-protocol commentedon Oct 19, 2026
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):95753a20e403d0658e624f623f972eb1f708deed1f82e3f40ca24c30aa808b5748e25aa5974b4fb9a055cf96e74018dd46542e820b33187e0a584c9894b8e82ac1204e8d3d9654cf8f276bf3a6eb19314e17635d7184b3ef29bd79fde78069f12d96237f72d5113cd569f72bf7e8617904951175c4358f1ed7bcf5c565f81aff9af68bce5e870c3ffadc871f438d2e17fb9f75fa3dbc54e1d21a3bc088ad009d90af514994d6434b7ba6e74ca9109dad81639a287c557fe5d53be9f75027674a662001aba38f1359117db757cb69ed78dd0fe6195f66b219dca1042a0c4fe3e2c25480518290f5824920a3536bb25866Only licensed ports are listed here, per the licensing rule in the issue body. The full candidate list stays internal.
🤖 Generated with Claude Code
[-]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)[/+]C/C++ call-graph oracle: body oracle, family consensus, 20-port basel…
C/C++ call-graph oracle: tree-sitter body oracle + family consensus, …
DOOM-rosetta: drop Zandronum from the ACS and ZScript docs and target…
DOOM-rosetta: licensed ports only, license and class columns, 13 lice…
DOOM-rosetta: measurements-only golden, pytest -m doom_rosetta, doom_…
doom-rosetta.yml: draft gate on shard job, tree-sitter installed for …
DOOM-rosetta: re-bless sqldoom for shell one-line functions from #5812 …
doom-rosetta.yml: LOC-sharded zero-drift check, Universal Ctags, cach…
squid-protocol commentedon Oct 21, 2026
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 mootsquid-protocol commentedon Oct 22, 2026
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.squid-protocol commentedon Oct 22, 2026
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 theclaim:nyxlabel.