Skip to content

DOOM-rosetta: call-graph accuracy as the 7th clean-check (Part of #5874) - #5949

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5874-20261022T0009Z
Oct 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5874-20261022T0009Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5874 (does not close it: item 3, oracle for non-C/C++ languages, is a remaining slice). Part of #5457.

What

  • Check 7 callgraph in doom_scorer.score_port: passes when the tree-sitter body oracle shows 0 misses and 0 engine-only edges of kind absent / comment/string. Columns: callgraph_recall, callgraph_precision, callgraph_misses, callgraph_engine_only (scored), callgraph_unscored. A port outside LICENSED or with no C/C++ function reports n/a (a pass, shown).
  • Not scored (owner question on the edge convention left open, not decided here): engine-only type (constructor), function-pointer, and macro (a callee named only in a preprocessor line; the issue does not list it, so I put it with the unscored kinds).
  • verdict is now out of 7; verdict6 keeps the old six-check verdict. The report prints both PERFECT counts.
  • 11 ports added to expected_fails; goldens re-blessed (all 44 moved only in callgraph_*, verdict6, and fails/verdict for the 11 + the 2 existing-fail ports' verdict). callgraph_baseline.json refreshed at 4ce0815dc.

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 is n/a.

Remaining slices: (1) item 3, a tree-sitter body oracle per other language (PHP, Lua, Dart, JS, Scheme, ZScript...; callgraph_oracle.py is C/C++ only, objc_callgraph_oracle.py exists separately); (2) scoring type / function-pointer / macro once the owner rules the convention; (3) post the count on #5874 when merged.

Evidence

pr_gates --fast 7/7; pytest tests/doom_rosetta tests/tools/test_doom_speedrun.py tests/tools/test_callgraph_tools.py pass; pytest -m doom_rosetta on doomretro, doomsday, fastdoom passes; doom_rosetta_check.py on 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

  • Never wrap doom_rosetta_check.py / doom_speedrun.py scan in heavy-run.sh: scan_port takes a slot itself, so with one slot (nproc/4) the nested call waits forever (no output, idle box).

🤖 Generated with Claude Code

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]>
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 01:20
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 01:25
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit ccea2be into main Oct 22, 2026
54 checks passed
@squid-protocol
squid-protocol deleted the churn/5874-20261022T0009Z branch October 22, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant