Repository navigation
Closed
Labels
claim:nyxcore-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signatureneeds: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 trialtestingUnit, integration, and E2E pipeline verification
Milestone
Description
Why
Structural extraction is checked against ctags, tree-sitter and libclang; C/C++ call graphs have no independent check (the Graph Accuracy Audit compares against pyan3, the TypeScript checker and scip-java; the C/C++ reference, #3784, is open). A first pass on the DOOM corpus found two engine defects with thousands of edges each (filed alongside this issue) within an hour.
Method (prototype on nyx, /srv/storage_16tb/projects/gitgalaxy/doom-study/)
- Independent body oracle: for each engine function, the brace-matched body from source (comments, strings, preprocessor lines stripped), every
defined_name(call; compare withcalls_out_torestricted to defined names. linuxdoom: 1,597/1,597 calls agree (recall 1.000, precision 1.000 apart from recursion); chocolate-doom 12,132 calls, 3 misses (a call inside--Vars[ReadMapVar(...)]). Use tree-sittercall_expressionrather than regex for C++ (regex mistakesstd::unique_lock<...> lock(for a call and missesf<T>(). - Family consensus: near-identical ports (linuxdoom, doomgeneric, doom-ascii, sdl-doom, PureDOOM, Chocolate, Crispy, doom-wasm, inter-doom) vote on each edge; a port that defines both ends but lacks an edge most siblings have is checked against its source. First pass: 306 holes, 304 real divergences, 2 engine misses (
R_PointToAngle -> SlopeDivpassed as a function pointer). - Report per port and per shape (statement, nested argument, condition/return, after cast, after operator, subscript, function pointer, macro), recall/precision, with examples; licensed ports only.
- Wire into the DOOM Crucible nightly (DOOM-rosetta: golden-gated CI regression test over the DOOM port corpus (measurements-only golden, zero drift, sharded, nightly oracles) #5619) with thresholds, and a libclang call-reference (Call-graph reference: C/C++ (clang-based) #3784) on the C subset when it lands.
Acceptance
- Tool in the repo (
tests/tools/doom_speedrun/callgraph_oracle.pyor the crucible), one command, licensed ports. - Baseline published on this issue; every new defect shape gets its own issue.
- Nightly fails on a recall/precision regression.
Found by the DOOM corpus call-graph consensus check (#5620, #5457): near-identical ports vote on each call edge, and an independent body oracle re-extracts calls from source. Licensed ports only.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
claim:nyxcore-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signatureneeds: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 trialtestingUnit, integration, and E2E pipeline verification
Activity
squid-protocol commentedon Oct 19, 2026
Extend the tool beyond C/C++: the same oracle on Java/C#/Kotlin (licensed ports, engine
0e2bf4ade) gives managed-doom (C#) recall 1.000 / precision 1.000 over 2,944 calls, mochadoom (Java) 0.998 / 1.000 over 5,176, helion (C#) 0.994 / 0.999 over 21,555, kocoa-doom (Kotlin) 0.969 / 0.999 over 4,834; pairwise consensus mochadoom <-> kocoa-doom (a Kotlin port of mochadoom): 410 differing edges, 405 real code differences, 5 engine misses. Oracle notes for these languages: strip C# verbatim/interpolated and Kotlin/Java raw strings; handle expression bodies (=> expr;,= expr); don't count Kotlinfun name(definitions as calls; reportnew X(,x.f(,f<T>(and lambda calls as separate shapes. Prototype:/srv/storage_16tb/projects/gitgalaxy/doom-study/study-prototype/callcheck_jvm.py. Defects found so far: #5628 (C# case), and the three issues filed today for C# constructor initializers, Kotlin bodyless extents, and prefix---/Javasynchronizedcall shapes.🤖 Generated with Claude Code
squid-protocol commentedon Oct 19, 2026
Rust/Go baseline (licensed ports, engine
0e2bf4ade): rust-doom recall 0.999 / precision 1.000 (866 calls), room4doom 0.999 / ~0.998 (13,968), gore (Go) 0.999 / 1.000 (1,960). Cross-language consensus gore vs linuxdoom: 625 shared functions, 1,233 shared edges (Jaccard 0.90), 0 engine misses on either side. Oracle notes: Rust nested block comments, raw stringsr#"..."#, lifetimes vs char literals, turbofishf::<T>(, macrosname!((not calls); Go backtick strings,F[T](instantiation,funcliterals; keep language built-ins (len,default) out of any keyword filter, or the checker undercounts. Defects: #5634.🤖 Generated with Claude Code
squid-protocol commentedon Oct 19, 2026
COBOL/SQL baseline (licensed ports, engine
0e2bf4ade): COBOL PERFORM/GO TO/CALL extraction recall 1.000 on FPS.cob, agentic-cobol-doom-cc, agentic-cobol-doom-codex and mood's COBOL; precision ~1.000 (one false shape, #5637). Oracle note:locis not a pure line span for COBOL paragraphs, so slice by the next paragraph's start, notstart+loc. SQL: sqldoom routines have 109 routine-to-routine calls in source and 0 recorded (#5635); saildoom (Spark SQL port of sqldoom) defines no SQL routines, so no routine-level consensus is possible, and 2 of its 12 SQL files (the monster AI and renderer fragments) are dropped by the aperture (#5636).🤖 Generated with Claude Code
squid-protocol commentedon Oct 19, 2026
Remaining-language baseline (licensed ports, engine
0e2bf4ade). Reliable: PHP (srb2) 0.991/0.995, ZScript (gzdoom) ~0.98-1.00 (oracle misses are native declarations/state actions), Lua (edge-classic) 0.965/0.965, Dart (dartdoom) 0.979/0.962, JavaScript (cssDOOM) 0.949/0.985, x86 asm in woof 1.000. Cross-language consensus vs linuxdoom: doom-scheme Jaccard 0.88 (94 holes: 92 real, 2 engine misses in lambdas), dartdoom 0.82 (66 holes, 0 misses). Gaps: Fortran #5638 (recall 0.47), Objective-C message sends #5639 (0.52-0.86), shell/Scheme-lambda/Lua/Tcl shapes #5640, assembly local labels + no call edges on #5624. Oracle caveats for the tool: Python/JS/Scheme numbers here are dominated by nested-function attribution (the engine attributes an inner function's calls to the outer; decide the convention and make the oracle match), and one-line definitions must not be skipped. Prototypes:study-prototype/callcheck_all.py,consensus_xlang.py.🤖 Generated with Claude Code
C/C++ call-graph oracle: body oracle, family consensus, 20-port basel…
squid-protocol commentedon Oct 20, 2026
Per-port / per-shape call-graph baseline at engine
42488957a, fromcallgraph_oracle.py --only all(20 licensed C/C++ ports; draft PR #5690). Recall and precision are measured against a tree-sitter body oracle. Misses are named by call shape, engine-only edges by how the callee appears in the body.Family consensus (9 vanilla-lineage ports, quorum 75%): holes 321, engine missed 2 (crispy-doom 1, inter-doom 1; shape function-pointer 2), real divergence 319, false-edge suspects 0.
Open engine shapes found:
R_PointToAngle -> SlopeDiv, crispy-doom and inter-doom);~Scanner -> Scanner, also in gzdoom);P_ExecuteZDoomLineSpecial(p_spec.c:5788) is truncated: enginelocis 1427 against 1786 non-blank lines, and the calls after line ~7215 are missed.The
typecolumn counts C++ classes used as a type that the engine emits as constructor calls. These are reported, not scored as wrong. The baseline file istests/tools/doom_speedrun/callgraph_baseline.json. The nightly hook is--only all --baseline ... --fail-on-regression, waiting on #5619.C/C++ call-graph oracle: tree-sitter body oracle + family consensus, …
37 remaining items
squid-protocol commentedon Oct 26, 2026
Churn run
5630-20261026T2227Z(host nyx) ended without a PR. no-change CI-triage; doom_rosetta re-bless folded into slice 3 briefC++ DE_FOR_EACH*/DE_FOR_OBSERVERS/DE_NOTIFY* macro statements are not…
DOOM call-graph oracle: a function tree-sitter closes early at an if-…
Re-bless DOOM-rosetta and call-graph baseline for the IFVM/IFVIRTUAL*…
Re-bless doomsday DOOM-rosetta after merging main (Part of #5630)
callgraph baseline: engine_sha after merging main (Part of #5630)
C++ IFVM/IFVIRTUAL* macro blocks are statements, not functions; re-bl…
Re-bless golden masters and DOOM-rosetta for explicit destructor call…
C++ explicit destructor call p->~T() is a call to the ~T unit; re-ble…
C++ MOODYCAMEL_CONSTEXPR_IF / MOODYCAMEL_CATCH blocks are statements,…
DOOM call-graph: libclang reference on the C ports (doom_clang_calls.…
DOOM call-graph: --clang folds the libclang reference into callgraph_…
DOOM call-graph: triage the clean-file disagreements of the libclang …
squid-protocol commentedon Oct 27, 2026
Acceptance met: oracle tool in tests/tools/doom_speedrun/, baselines published, nightly (doom-rosetta.yml) gates on recall/precision, and the libclang reference (#6768) plus the clean-file disagreement triage (#6769) are merged. Remaining defect shapes are tracked as sibling gaps filed separately.