Repository navigation
Description
Goal (re-aimed 2026-10-19)
DOOM is a validation corpus for the engine, not a completion target: one program written over 30 years in many languages exposes engine gaps fast (rounds 2 -> 5 found and fixed ~10 general bug classes: directory blocking, single-file engines, payload guards, vendoring, macro functions, C++ templates, require( false RCE, new languages). Three outputs:
- DOOM-rosetta (DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles) #5619): one program written many ways (the real-world sibling of keyword-rosetta), as a golden-gated CI test as stringent as the Golden Crucible, so those wins can't regress.
- Language breadth: add licensed ports in languages the engine handles worst or that matter most to the business (COBOL, SQL, assembly, F#, Fortran, Kotlin, Dart, Scheme...); every one so far found a gap within minutes.
- The study (DOOM study write-up: lineage survival vs linuxdoom across all ports + cross-language subsystem comparison (engine metric calibration) #5620): lineage survival vs linuxdoom and cross-language comparison, doubling as an engine metric calibration check.
Not a goal: a perfect score on every port. On the licensed corpus at29349f079, 29/31 pass; the other 2 are the documented.h-beside-.mcaveat.
Licensing (owner is an LLC): ports are tiered from their license files (ci/review/local); onlycienters CI, the golden and publications (DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles) #5619).
Where we are (2026-10-30, engine 8cc7bab8b, CI corpus)
Done. DOOM-rosetta now scores seven checks per port (the six clean-scan checks plus check 7, call-graph accuracy, #5874). On the 44 CI-tier ports in tests/doom_rosetta/manifest.csv (24 languages, from C, C++ and Objective-C to COBOL/JCL, SQL, F#, Crystal, Fortran, Scheme, Dart, Kotlin, Rust and SNES assembly):
- 42/44 pass all seven checks. All 17 ports that failed the call graph now pass it (DOOM-rosetta check 7: get the 17 call-graph-failing ports to pass #6266: callgraph: doomsday's last 16 engine-only edges; callgraph out of every expected_fails (Part of #6266) #7019 took
callgraphout of everyexpected_fails; DOOM-rosetta callgraph baseline: linuxdoom and doomgeneric clang numbers as CI measures them (Part of #6266) #7056 set the CI clang baseline; DOOM-rosetta: run the callgraph regression check on PRs that change the call graph (Part of #6266) #7038 runs the call-graph regression check on PRs that change the call graph). - The other 2, sqldoom and cssdoom, keep
functionsinexpected_failsby ruling, not as engine gaps: their function deltas were read file by file and ruled a counting convention (named bound arrows andobj.onXhandlers; the engine is right, the ctags-only set is empty) in cssdoom functions: bound-arrow count above ctags ruled a counting convention (Part of #5876) #5963 and sqldoom functions: bound-arrow and handler count above ctags ruled a counting convention (Part of #5876) #5966 (DOOM-rosetta: fix the 4 non-PERFECT ports (doomsday + doom-ios .h language, cssdoom + sqldoom function counts) #5876). - doomsday and doom-ios no longer fail the
.h-beside-.mlanguage check (language lens: a .h is objective-c only with ObjC syntax of its own (Part of #5876) #5957).
Earlier, for comparison: 2026-10-19 (29349f079), 29/31 licensed ports passed the six checks; round 2 (2026-10-18), 8/39.
Work
Gate and study
- DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles) #5619 DOOM-rosetta: measurements-only golden, zero-drift CI gate, nightly oracles, license tiers
- DOOM study write-up: lineage survival vs linuxdoom across all ports + cross-language subsystem comparison (engine metric calibration) #5620 Study: lineage survival + cross-language comparison (metric calibration)
Engine gaps from new languages (found 2026-10-19 by scanning licensed non-C ports)
- COBOL: quoted copybook literals with an extension (COPY "x.cpy".) record no COPY statements, free and fixed format #5618 COBOL: quoted copybook literals (
COPY "x.cpy".) record no COPY statements (cobol_doom ~40, agentic-cobol-doom-cc 7) — high - SQL: no PostgreSQL dialect; Postgres-style .sql is labelled db2_sql or sqlite and sqlite-labelled files lose every CREATE FUNCTION (sqldoom: 93 of 110 found) #5622 SQL: no PostgreSQL dialect (sqldoom: 17 of 110 functions lost, dialect wrong on 65 files) — high
- Language support: F# (.fs/.fsi/.fsx) and Crystal (.cr) files are not mapped at all (fsharp-doom 18 files, doo-cr 43 files) #5623 F# and Crystal not mapped at all
- Assembly: Argonaut/Motorola-style .a/.i sources unmapped, column-0 labels without ':' not functions, .rev build counters read as LiveCode (DOOM-FX: 170 engine files missed, 59 .asm with 0 functions) #5624 Assembly:
.a/.isources unmapped, column-0 labels not functions,.revread as LiveCode (DOOM-FX) - BMS: plain-text map files (.map grids) classified as CICS BMS maps without any DFHMSD/DFHMDI/DFHMDF macro (FPS.cob) #5625 BMS false positive on plain
.mapfiles (FPS.cob) — low
Remaining general engine items from the C/C++ corpus
- C++ out-of-class template member definitions are missed:
Foo<A, B>::method(...)(364 of 385 in the DOOM corpus, doom3-bfg 326) #5462 C++ out-of-line definition shapes still undercounted (found internally; fixed with our own fixtures) + sibling shapes - Risk/security signal noise on C/C++: SARIF on GPL lines/assert, obfuscation on data arrays, threat from macro headers, saturated safety score, mtime-based stability #4548 Risk/security signal noise on C/C++ (next: threat inflation from data arrays and macro-only headers; then mtime stability, saturation, memory family)
Done
- Aperture Gate 4.2: one generated-docs HTML file blocks its whole parent directory (doomsday: 1,170 source files, order-dependent) #5458 Gate 4.2 directory blocking
- Aperture Gate 3.2: Monolithic Amalgamation drops whole single-file engines (gore doom.go 860 fns, PureDOOM.h 767 fns) #5459 Gate 3.2 single-file engines
- Aperture/auditor payload guards drop real source files (aes_prng.c, tables.c, crc32.cpp, EntityFlags.cs ...: 64 files, ~900 functions) #5460 payload guards
- 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 macro-defined functions
- C/C++ macro-defined functions: name from the #define (repo-wide), keep the class qualifier (eternity CONSOLE_* 77/240 misnamed; gzdoom 78 cross-class name collisions) #5563 macro names from
#define, class qualifier - SecurityLens high_risk_execution is not language-gated: C/C++
require( expr )assert macros are level-error RCE findings (85 of 158) #5463require(language gating - Vendored code still scanned as first-party when its directory is not a candidate name (psydoom: 367k LOC of SDL2 under third_party_libs/) #5464 vendored code under any name
- Language support: DOOM-ecosystem files are unsupported — ZScript .zs (295 files), GLSL .fp/.vp, ACS .acs, Arduino .ino, CMake .cmake #5465 DOOM-ecosystem languages
- README.<code-extension> prose files parsed as code: linuxdoom README.asm reported as assembly with 14 functions #5466 README.asm prose
- Scan log noise on C/C++ repos: .clang-format claimed as yaml then refuted; 'Unregistered rule hardcoded_secrets in yaml' warning #5467 log noise
- DOOM Port Speedrun harness: pinned 40-port corpus manifest, clean-scan scorer and ctags/tree-sitter comparison as a reproducible tool #5468 harness (remaining acceptance moved to DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles) #5619)
Known caveats (by design, state them in the write-up)
- C
struct/union/enumcount as classes (docs/language_status/c.md,class_start). docs/trees are ignored (room4doomdocs/cool_things_tried/*.rs).- The ML threat model is not shipped (
docs/zero_dependency_mode.md); repo archetype withheld until retrain (Retrain archetype brains: labels have drifted from their trained state #4111). .hbeside a.mis Objective-C by sibling anchor even without ObjC syntax (doom-ios IBGlue.h) — defensible.- ctags parity is a floor, not ground truth: ctags misses macro-defined functions too (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).
Rules
Clone ports at pinned SHAs outside the repo; never commit third-party code; publish measurements, not reconstructions (docs/research/third-party-material-policy.md).
Evidence: /srv/storage_16tb/projects/gitgalaxy/doom-study/ (round2_findings.md, clean_check.csv, clean_check_details.json, scans_r2/, variants_r2.csv, scripts/).
🤖 Generated with Claude Code
Activity
docs: soften unmeasured attributions in round-4 note (Part of #5457)
docs: DOOM round-4 rescan at b81b19f, 20/39 perfect (Part of #5457) (#…
squid-protocol commentedon Oct 19, 2026
Status (2026-10-19, licensed corpus)
Superseded by the epic body's "Where we are" section, which now reports licensed ports only: 29/31 pass all six checks at
29349f079(the 2 others are the documented.h-beside-.mcaveat), engine within 0.4% of tree-sitter corpus-wide. Earlier per-port details in this comment were removed under the licensing rule (ports with unclear license or provenance are internal only).🤖 Generated with Claude Code
squid-protocol commentedon Oct 19, 2026
Scorer slice (#5468, PR #5617): generated-file signatures, tooling-dir exclusions and functions passing on ctags OR tree-sitter moved the corpus from 27 to 35 perfect at
0e2bf4adescans, 0 regressions. On the licensed ports that is 29/31; the remaining 2 are the.h-beside-.mcaveat. Per-port details trimmed under the licensing rule (see the epic body).🤖 Generated with Claude Code
Add data/crystal control folder: 12-probe shell, manifest, api ledger…
squid-protocol commentedon Oct 30, 2026
Closing: every checklist item is done and DOOM-rosetta's seven-check gate holds 42/44 ports (the other 2 are ruled counting conventions, #5876). Numbers as of 2026-10-30 (
8cc7bab8b) are in the description. Closed on the owner's request.