Skip to content

DOOM-rosetta check 7: get the 17 call-graph-failing ports to pass #6266

Closed

Description

@squid-protocol

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

  1. Shape first. Run callgraph_oracle.py --only <ports> (C/C++) / the ts_callgraph_oracle path (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.
  2. 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.
  3. 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 callgraph from its expected_fails.
  4. 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

Licensed ports only (callgraph_oracle.LICENSED, manifest licence column). Part of #5457. Related: #5874, #5630, #5640.

🤖 Generated with Claude Code

Activity

  1. added
    core-engine
    priority: high
    scope:frontier
    needs:doom-corpus
    lane:nyx
    on Oct 23, 2026
  2. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    Track B, per-shape breakdown for the 6 non-C/C++ ports, tree-sitter oracle on current main (148e7f520, scans via doom_speedrun.py run --oracle, numbers match the table above).

    Shape class Ports (count) Kind Examples Engine or oracle Status
    Java x.sizeof() dropped: sizeof is in the global calls-out ignore set (a C operator) mochadoom (1 miss) miss src/w/WadLoader.java:142 AddFile -> sizeof (filelump_t.sizeof()) engine fix in the Track B PR
    JS bound function expression (window.f = () => {..}) owns its calls in the engine, the oracle folded them into the enclosing function cssdoom (2 misses) miss lifts.js:34 initLifts -> activateLift, touch.js:107 setupPointerHandlers -> stopAutoFire oracle fix in the Track B PR
    C# new string(..) beside a user operator string: oracle did not read the built-in type name managed-doom (3 scored engine-only) absent DoomInterop.cs:24 ToString -> string, SaveMenu.cs:145 DoSave -> string, Cheat.cs:72 CheckBuffer -> string oracle fix in the Track B PR
    Python function body ends at its first multi-line triple-quoted string (engine loc 6 for a ~100-line method; sqldoom _run loc 41, cut just before """SELECT ...) mood (9 misses), sqldoom (68 misses) miss cobol_mapper.py:27 map_state_to_cobol -> _format_player_record, render_worker.py:136 _run -> _log_failure, -> prepare_renderer engine open, not in this PR (same shape for both; sqldoom not yet confirmed for all 68)
    C# calls not extracted (59) plus C# absent edges (9) helion miss / absent miss: Client.Commands.cs:693 ToggleMapOption -> HasOption, :660 DrawCounts -> LevelTotal; absent: FileConfig.cs:134 Write -> EnsureMenuKey, -> Exists, -> GetCommandArray not yet read open, not in this PR

    Unscored (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.

  3. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    #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)

  4. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    #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)

  5. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    #6291 merged: a partial slice of [c:0254d813] "callgraph gone from expected_fails for all 17 ports; the DOOM-rosetta nightly green with the new golden."; left: callgraph dropped for managed-doom, mochadoom, cssdoom only (14 of 17 left); nightly not yet run with this change (promoter-bot)

  6. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    #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)

  7. 203 remaining items

  8. squid-protocol commented on Oct 29, 2026

    @squid-protocol
    OwnerAuthor

    #6990 merged: a partial slice of [c:0254d813] "callgraph gone from expected_fails for 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)

  9. squid-protocol commented on Oct 29, 2026

    @squid-protocol
    OwnerAuthor

    #7014 merged: a partial slice of [c:0254d813] "callgraph gone from expected_fails for 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)

  10. squid-protocol commented on Oct 29, 2026

    @squid-protocol
    OwnerAuthor

    #7023 merged: a partial slice of [c:0254d813] "callgraph gone from expected_fails for 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)

  11. squid-protocol commented on Oct 29, 2026

    @squid-protocol
    OwnerAuthor

    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.

  12. squid-protocol commented on Oct 30, 2026

    @squid-protocol
    OwnerAuthor

    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.

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

    core-engineenhancementlane:nyxneeds:doom-corpuspriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions