Repository navigation
DOOM-rosetta: call-graph accuracy as the 7th clean-check (Part of #5874) - #5949
Merged
Merged
Conversation
Check 7 `callgraph`: zero oracle misses and zero engine-only edges of kind absent / comment-string. Constructor (type), function-pointer and macro engine-only edges are reported in callgraph_unscored, not scored (owner question open). Ports with no oracle report n/a. verdict is now out of 7; verdict6 keeps the old count. Golden re-blessed, 11 ports listed in expected_fails, callgraph_baseline.json refreshed at 4ce0815. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 01:20
squid-protocol
enabled auto-merge (squash)
October 22, 2026 01:25
Owner
Author
|
No description provided. |
1 similar comment
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5874 (does not close it: item 3, oracle for non-C/C++ languages, is a remaining slice). Part of #5457.
What
callgraphindoom_scorer.score_port: passes when the tree-sitter body oracle shows 0 misses and 0 engine-only edges of kindabsent/comment/string. Columns:callgraph_recall,callgraph_precision,callgraph_misses,callgraph_engine_only(scored),callgraph_unscored. A port outsideLICENSEDor with no C/C++ function reportsn/a(a pass, shown).type(constructor),function-pointer, andmacro(a callee named only in a preprocessor line; the issue does not list it, so I put it with the unscored kinds).verdictis now out of 7;verdict6keeps the old six-check verdict. The report prints both PERFECT counts.expected_fails; goldens re-blessed (all 44 moved only incallgraph_*,verdict6, andfails/verdictfor the 11 + the 2 existing-fail ports' verdict).callgraph_baseline.jsonrefreshed at4ce0815dc.Numbers on main (
4ce0815dc)30 PERFECT / 44 on seven checks; 40 on the first six.
Fail check 7: doomretro, prboom-plus, dsda-doom, eternity, odamex, gzdoom, fastdoom, doom3-bfg, srb2, doomsday, edge-classic.
(Baseline refresh: nugget-doom and woof now have no scored edges; edge-classic recall 0.9844 -> 0.9963; srb2 recall 0.9318 and doomsday 0.9750 / 0.9314 were not in the issue's table.)
Class sweep
Class: call-graph accuracy as a per-port verdict. C/C++ ports in
LICENSED: covered. Everything else isn/a.Remaining slices: (1) item 3, a tree-sitter body oracle per other language (PHP, Lua, Dart, JS, Scheme, ZScript...;
callgraph_oracle.pyis C/C++ only,objc_callgraph_oracle.pyexists separately); (2) scoringtype/function-pointer/macroonce the owner rules the convention; (3) post the count on #5874 when merged.Evidence
pr_gates --fast7/7;pytest tests/doom_rosetta tests/tools/test_doom_speedrun.py tests/tools/test_callgraph_tools.pypass;pytest -m doom_rosettaon doomretro, doomsday, fastdoom passes;doom_rosetta_check.pyon doomretro/nugget-doom/doomsday/cssdoom: zero drift. Not run:--ratchets(no engine change), full rosetta CI shards. Check 7 adds ~1.5 min over all 44 ports.Lessons for agents
doom_rosetta_check.py/doom_speedrun.py scaninheavy-run.sh:scan_porttakes a slot itself, so with one slot (nproc/4) the nested call waits forever (no output, idle box).🤖 Generated with Claude Code