Repository navigation
Closed
Labels
core-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signaturelane:nyxChurn routing: only host nyx works this issue (promoter-bot host_skips)needs:doom-corpusNeeds the pinned DOOM-ports corpus (doom-study)priority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Milestone
Description
Goal (owner 2026-10-23)
Finish the DOOM call-graph work: every port that fails DOOM-rosetta check 7 (callgraph) passes it, so callgraph leaves expected_fails in tests/doom_rosetta/manifest.csv port by port and the seven-check PERFECT count goes from 27/44 to 44/44.
A port passes check 7 when callgraph_misses = 0 and callgraph_engine_only (scored kinds only) = 0 (tests/tools/doom_speedrun/doom_scorer.py callgraph_check). Unscored engine-only kinds (type, function-pointer; the #5874 open question) do not fail the check and are out of scope here.
The 17 failing ports (golden on main, 2026-10-23)
| Port | Oracle | Recall | Precision | Misses | Scored engine-only |
|---|---|---|---|---|---|
| srb2 | C body | 0.9318 | 0.9636 | 1358 | 646 |
| doomsday | C/C++ body | 0.9750 | 0.9314 | 1741 | 3223 |
| gzdoom | C/C++ body | 0.9953 | 0.9483 | 201 | 810 |
| odamex | C/C++ body | 0.9981 | 0.9673 | 38 | 311 |
| doom3-bfg | C++ body | 0.9996 | 0.9772 | 19 | 340 |
| eternity | C/C++ body | 0.9982 | 0.9769 | 28 | 175 |
| edge-classic | C++ body | 0.9963 | 0.9741 | 39 | 150 |
| dsda-doom | C body | 0.9978 | 0.9992 | 24 | 2 |
| doomretro | C body | 0.9996 | 1.0 | 3 | 0 |
| prboom-plus | C body | 1.0 | 0.9993 | 0 | 2 |
| fastdoom | C body | 0.9997 | 0.9997 | 1 | 0 |
| sqldoom | tree-sitter | 0.8987 | 1.0 | 68 | 0 |
| helion | tree-sitter (C#) | 0.9971 | 0.9579 | 59 | 9 |
| mood | tree-sitter | 0.9598 | 1.0 | 9 | 0 |
| managed-doom | tree-sitter (C#) | 1.0 | 0.8234 | 0 | 3 |
| cssdoom | tree-sitter (JS) | 0.9939 | 1.0 | 2 | 0 |
| mochadoom | tree-sitter (Java) | 0.9998 | 0.9586 | 1 | 0 |
Method
- Shape first. Run
callgraph_oracle.py --only <ports>(C/C++) / thets_callgraph_oraclepath (others) on current main and post the per-port, per-shape breakdown (misses by shape, scored engine-only by kind, 2-3 examples each) here as checklist lines: one line per shape class, not per port. Scans of gzdoom/doomsday/srb2 are long: run them in the background and log progress. - Engine or oracle? For each shape, read the source at the examples. A real call the engine misses / a false edge the engine records -> engine fix with a test per shape and a golden re-bless of the affected ports. An oracle mistake (macro expansion, preprocessor branches, a call the oracle misreads) -> oracle fix with a test. Say which in the PR.
- Largest shape first, one PR per shape class (<= 5 hand-written files). Each PR updates the goldens it moves; when a port reaches 0/0, drop
callgraphfrom itsexpected_fails. - Shapes already filed elsewhere: Call graph small shapes: shell functions record no calls; Scheme calls inside lambda; Lua call after '..'/not; Tcl command after '}' #5640 (shell, Scheme lambda, Lua
.., Tcl after}) — tick them there.
Acceptance
- Per-shape breakdown posted for all 17 ports on current main. (DOOM-rosetta callgraph oracle: a bare macro misparsed as a definition named
ifno longer swallows the file (Part of #6266) #6645) - Every scored shape class fixed (engine or oracle), each with a test. (C# brace shield: nested interpolation holes; helion callgraph passes (Part of #6266) #6792)
- sqldoom (0 misses, 1 scored engine-only on main
7e7b6f510, ts oracle): a one-line shell function body runs past its closing}.scripts/run_with_server.sh:10up() { psql ... >/dev/null 2>&1; }absorbs lines 11-19, so the engine recordsup -> sleep(thesleep 1on line 13;sleepis a JS function the port defines,web/app.js:53): "absent" edge, ENGINE. Fix: end a single-line shell function at its own}, with a test; re-bless sqldoom and dropcallgraphfrom itsexpected_fails(functionsstays, the ctags convention ruling). Same family as Call graph small shapes: shell functions record no calls; Scheme calls inside lambda; Lua call after '..'/not; Tcl command after '}' #5640's shell shapes. (Shell: nameless block after a one-line function does not borrow its name; sqldoom callgraph passes (Part of #6266) #6759) -
callgraphgone fromexpected_failsfor all 17 ports; the DOOM-rosetta nightly green with the new golden. - Seven-check PERFECT count posted here.
Licensed ports only (callgraph_oracle.LICENSED, manifest licence column). Part of #5457. Related: #5874, #5630, #5640.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
core-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signaturelane:nyxChurn routing: only host nyx works this issue (promoter-bot host_skips)needs:doom-corpusNeeds the pinned DOOM-ports corpus (doom-study)priority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
squid-protocol commentedon Oct 23, 2026
Track B, per-shape breakdown for the 6 non-C/C++ ports, tree-sitter oracle on current main (
148e7f520, scans viadoom_speedrun.py run --oracle, numbers match the table above).x.sizeof()dropped:sizeofis in the global calls-out ignore set (a C operator)src/w/WadLoader.java:142 AddFile -> sizeof(filelump_t.sizeof())window.f = () => {..}) owns its calls in the engine, the oracle folded them into the enclosing functionlifts.js:34 initLifts -> activateLift,touch.js:107 setupPointerHandlers -> stopAutoFirenew string(..)beside a useroperator string: oracle did not read the built-in type nameDoomInterop.cs:24 ToString -> string,SaveMenu.cs:145 DoSave -> string,Cheat.cs:72 CheckBuffer -> stringloc6 for a ~100-line method; sqldoom_runloc 41, cut just before"""SELECT ...)cobol_mapper.py:27 map_state_to_cobol -> _format_player_record,render_worker.py:136 _run -> _log_failure,-> prepare_rendererabsentedges (9)Client.Commands.cs:693 ToggleMapOption -> HasOption,:660 DrawCounts -> LevelTotal; absent:FileConfig.cs:134 Write -> EnsureMenuKey,-> Exists,-> GetCommandArrayUnscored (reported only): function-pointer / type engine-only edges: managed-doom 513, mochadoom 214, helion 892.
Smallest-to-finish ports (managed-doom, mochadoom, cssdoom) are fixed in the Track B PR; mood + sqldoom share one Python shape (needs its own PR); helion needs its own.
Format the bound-function oracle test (Part of #6266)
DOOM check 7: managed-doom, mochadoom, cssdoom pass call-graph (Part of
squid-protocol commentedon Oct 23, 2026
#6291 merged: a partial slice of [c:a1f0d74e] "Per-shape breakdown posted for all 17 ports on current main."; left: breakdown posted for the 6 non-C/C++ ports only; the 11 C/C++ ports are not covered (promoter-bot)
squid-protocol commentedon Oct 23, 2026
#6291 merged: a partial slice of [c:9e7fe6a3] "Every scored shape class fixed (engine or oracle), each with a test."; left: three shape classes fixed with tests; the Python triple-quote shape, helion and the C/C++ shapes remain (promoter-bot)
squid-protocol commentedon Oct 23, 2026
#6291 merged: a partial slice of [c:0254d813] "
callgraphgone fromexpected_failsfor all 17 ports; the DOOM-rosetta nightly green with the new golden."; left:callgraphdropped for managed-doom, mochadoom, cssdoom only (14 of 17 left); nightly not yet run with this change (promoter-bot)squid-protocol commentedon Oct 23, 2026
#6291 merged: a partial slice of [c:84996f5e] "Seven-check PERFECT count posted here."; left: PERFECT count not posted yet; three more ports reach PERFECT-or-unscored-only on check 7 but the seven-check tally needs the nightly (promoter-bot)
Unit brace scan: rescan past the 50 KB handshake lookahead, keep only…
203 remaining items
calls_out: LOG_AS before try is not a function-try-block head (Part of …
squid-protocol commentedon Oct 29, 2026
#6990 merged: a partial slice of [c:0254d813] "
callgraphgone fromexpected_failsfor all 17 ports; the DOOM-rosetta nightly green with the new golden."; left: doomsday still lists callgraph in expected_fails (3 misses, 16 scored engine-only edges left); the other 16 ports are already clear. (promoter-bot)calls_out: decltype/sizeof operand in template args; oracle: local-vs…
squid-protocol commentedon Oct 29, 2026
#7014 merged: a partial slice of [c:0254d813] "
callgraphgone fromexpected_failsfor all 17 ports; the DOOM-rosetta nightly green with the new golden."; left: doomsday still has 16 scored engine-only edges (callgraph stays in its expected_fails) (promoter-bot)oracle: a constructor's owner is the class it is named for, not a mis…
squid-protocol commentedon Oct 29, 2026
#7023 merged: a partial slice of [c:0254d813] "
callgraphgone fromexpected_failsfor all 17 ports; the DOOM-rosetta nightly green with the new golden."; left: doomsday still has engine-only edges (.old x4, fontlinewrapping, inputdevice, amethyst, fluid) and 1 miss (sortSegments->map, rescan needed); other ports untouched this slice. (promoter-bot)squid-protocol commentedon Oct 29, 2026
Churn run
6266-20261029T1747Z(host nyx) ended without a PR. No PR opened: #7019/#7020 already cover the checklist, both conflict with main; gate queues PR-fix items.callgraph: doomsday's last 16 engine-only edges; callgraph out of eve…
DOOM-rosetta nightly: a macro named like a declared function reaches …
DOOM-rosetta callgraph baseline: linuxdoom and doomgeneric clang numb…
DOOM-rosetta: run the callgraph regression check on PRs that change t…
squid-protocol commentedon Oct 30, 2026
Done: every one of the 17 ports passes DOOM-rosetta check 7 (callgraph); #7019 took callgraph out of every expected_fails, #7056 set the CI clang baseline, and #7038 runs the callgraph regression check on PRs that change the call graph (its run on the up-to-date head passed). Closed on the owner's request.
Call graph: small cross-language fixes — recursion qualifier, builtin…