Repository navigation
callgraph: doomsday's last 16 engine-only edges; callgraph out of every expected_fails (Part of #6266) - #7019
Merged
Conversation
…6266) Engine: a comment in a function-like macro body is no callee; a brace-init default holding a call keeps a nested constructor a unit; a template argument may hold decltype/sizeof(...). Oracle: a qualified or differently named ctor is no member of an unclosed class around it; an undefined owner class reads any listed base (as TextBody does), wrapper-suffixed headers (.h.old) declare classes; a file-scope label continues a closed-early body; an ERROR with a stray quote reads the body as text; a template call on a local is a comparison; a head run over declarations above the function takes the braces. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM
…ed_fails; re-bless (Part of #6266) doomsday callgraph misses 3 -> 0, scored engine-only 16 -> 0, verdict 6/7 -> PERFECT; one more function (fontlinewrapping.cpp's nested Line constructor). Crucible: mlir flatbuffer_export.cc gains make_unique<decltype(..)>(. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM
… of #6266) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM
…plate and folded-head reads #7014 fixed the same 3 doomsday misses; its versions are kept and this branch's duplicates dropped. The doomsday golden is re-blessed next. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM
…(Part of #6266) engine-only 16 -> 0 (misses were 0 after #7014), verdict 6/7 -> PERFECT. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM
Contributor
callgraph_oracle.py: #7023 merged the same constructor-owner fix; main's _owner (named-for-its-class climb) is kept, this branch's Classes table and .old-wrapper bases stay. doomsday golden re-blessed on top of main with CI's pinned tree-sitter (language-pack 1.22.1): callgraph engine-only 13 -> 0, verdict 6/7 -> PERFECT; linuxdoom re-checked clean as the parity control. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
Contributor
|
No description provided. |
Contributor
|
No description provided. |
squid-protocol
added a commit
that referenced
this pull request
Oct 29, 2026
Only conflict: doomsday golden. Re-blessed with CI's pinned tree-sitter (language-pack 1.22.1): callgraph_unscored 4639 -> 4664, as this PR predicts; chocolate-doom, crispy-doom, fastdoom, srb2 check clean. callgraph_oracle.py --only all --clang --baseline --fail-on-regression on this head: exit 0, 0 regressions, numbers equal the PR's table. Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol
added a commit
that referenced
this pull request
Oct 29, 2026
… re-blessed on top of #7019 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 29, 2026
Epic: DOOM Port Speedrun — scan ~40 DOOM ports across languages cleanly, for system validation
#5457
Closed
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
…prose (follow-up to #6097) (#7147) * DOOM study: rescan at 6c7c6c1, one scan for every table, refresh the prose (follow-up to #6097) Rescanned all 44 licensed ports at main 6c7c6c1 (42/44 PERFECT; callgraph passes everywhere after #7019) and regenerated the sfs subway table on the same scans, so no table mixes scan dates any more. Prose: drop the defect and "not done" text that #6700/#6703/#6705/#6749 fixed, state the sqldoom/cssdoom #5876 ruling, explain the median-0 complexity of the JVM/Rust ports (method size, measured), fix the dist range and date line. study_report.py: the scorecard's last column was "functions now" but counts only ctags-language files (doom-fx read 1, dartdoom 0); relabel it and say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * DOOM study: read wiring similarity against its floor; cross-subsystem wiring (follow-up to #6097) Co-Authored-By: Claude Opus 5.5 <[email protected]> * DOOM study: subway table reads cross wiring over a shuffled null; negative controls study_report.py shows sfs's cross_wiring, its shuffled-placement null and the gap when subway.csv has them (sfs PR #21), sorted by the gap; old CSVs keep the old table. Prose: raw wiring flatters (doomf77 0.91 is +0.05 over null); doom-scheme and gore keep cross wiring +0.51/+0.50 over null like chocolate-doom; JVM/C#/Fortran ports and reimplementations show none. Negative controls (WinQuake, Quake II, Lua at the same engine) give the null levels; graph-shape distance does not separate them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * DOOM study: restructure as findings first, tables as appendices; twin cross-check, controls, blind placement Findings lead (twins 93% precise vs source text at 6c7c6c1; textscreen shared sideways; Scheme/Go wiring above chance and blind placement kappa 0.50/0.31/0.26; names kept, bodies rewritten; extraction accuracy), then what this does not show, then Appendices A-G (the generated tables, unchanged) and a new hand-quoted Appendix H (twin cross-check, descent, unrelated programs). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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 #6266 (DOOM-rosetta check 7,
callgraph). doomsday was the last port listingcallgraphinexpected_fails; at 5346a34 it had 3 misses and 16 scored engine-only edges. #7014 (merged while this was in review prep) closed the 3 misses; this PR closes the 16 engine-only edges, removescallgraphfrom doomsday'sexpected_failsand re-blesses its golden. No port listscallgraphinexpected_failsany more.Checklist: partial [c:0254d813] --
callgraphis gone fromexpected_failsfor every port and doomsday passes check 7 (0 misses, 0 scored engine-only); the nightlycallgraphjob is still red, but for the separate clang-reference step (see "Nightly" below), not for check 7.Overlap: #7014 (nyx) fixed the same 3 misses with near-identical changes to the ones this branch had (the
decltype/sizeof/alignof/noexcepttemplate operand, the local-variable template comparison, the folded head). It merged first; main was merged in, its versions kept and this branch's duplicates dropped, so the diff here is the 16 engine-only edges only.The 19 edges (3 by #7014, 16 here)
sortSegments -> map(miss)de::map<decltype(segments)>(lost its callee at the(inside<...>at -> delta(miss)delta < e || delta > (360 - e)on a local parses as the template calldelta<..>(..)hasSkyMaskedMaterial -> surfaceMaterialChanged(miss)DE_AUDIENCE(..)with no;folded the members above into the node's headdescription -> name, isActive_E(b) "%s" _E(.)desyncs tree-sitter's string boundaries, so the calls after it were read as string content"reads the body as text when the braces agree on the endfilledLine -> isDone, remove, replaceabortLine:labeled_statementjoins the statements that mean "the body was closed early" (a label is never at file scope)Impl -> Base,PackagesWidget -> GuiWidgetx2DE_GUI_PIMPLswallowed the definitions below it, so their owner was that class_owner: a qualifiedCls::Clsnames its class over an enclosing one; a constructor named for another class is not a member of the one around itLibraryFile -> Filex2, sdlnativefont.cpp.oldSdlNativeFont -> NativeFontx2.old(and.bak,.orig, ...language_lens.SAFE_WRAPPERS) as the language beneath by design, but the oracle's class table read only plain C++ extensions, and an owner class no source defines got no basesx.h.old), and an owner no source defines reads every listed base, asTextBodyalready didDE_PIMPL_NOREF -> CString, lineLine(const WrappedLine &ln = {CString(), 0}, ...)was no unit (the parameter block allowed a brace default only without parens), so its default argument and: line(ln)went to the enclosing macro classcpp.pyfunc_start: a brace-init default may hold one flat calldelete_* -> contextcontext (noteon ...)inside a trailing/**< ... */doc comment offluid_sample_refcountdetector.c_macro_body_calls: comments are blanked with the literals in one pass.oldscope: no exclusion was added. The engine scans backup-wrapped sources on purpose, the scorer's check 1 does not count them, and the edges in them are real base-constructor calls; the oracle was the side reading a different file set.Measurements
doom_rosetta_check.pyover all 44 ports at this head: only doomsday moved (scored engine-only 16 -> 0, precision 0.9684 -> 0.9686, unscored 4638 -> 4639, functions 25484 -> 25485 for the newLineconstructor unit in fontlinewrapping.cpp, verdict 6/7 -> PERFECT). Re-blessed with--only doomsday --update --yes; a re-check is clean. The other 43 are byte-identical.functions, their listedexpected_fails; none failscallgraph).callgraph_oracle.py --only all --clang --baseline callgraph_baseline.jsonat 5346a34 and at this head: every body-oracle number identical except doomsday (precision 0.9684 -> 0.9686, 68178 -> 68186 calls) and odamex (0.9829 -> 0.9828, from calls_out: decltype/sizeof operand in template args; oracle local/folded-head reads (Part of #6266) #7014, inside the 0.001 tolerance); every clang number identical.callgraph_baseline.jsonnot regenerated.golden-lock.sh crucible_check.py, both legs): PASS, zero drift (the one crucible move of this work, mlirmake_unique<decltype(..)>(, came in with calls_out: decltype/sizeof operand in template args; oracle local/folded-head reads (Part of #6266) #7014).Nightly
The nightly
callgraphjob has failed since 10-27 in its "Score call-graph accuracy against the baseline" step, on the--clangreference section only, and this PR does not change it: locally at 5346a34 and at this head the same 10 regressions reproduce (prboom-plus clang recall 0.9972 -> 0.9303, 0 -> 28 clean-file disagreements; fastdoom, dsda-doom, doomretro, doomgeneric, doom-ascii, sdl-doom, linuxdoom). Theclangsection was added to the baseline by #6768 (10-27) and the baseline's own fatal-error file counts are far higher than a fresh run gets (linuxdoom 59 vs 2), so files that were excluded as fatal then are clean now and their disagreements count. Not fixed here (it needs a clang-section re-baseline or reference fix, out of this PR's scope).Class / Sibling gaps
Class: a C/C++ call edge one side gets wrong because of a misparse around macros, literals or template brackets. Handled members here: the six engine-only shapes in the table (macro-body comment, brace-init default with a call, unclosed-class constructor owner, undefined owner class / wrapper-suffixed header, file-scope label, desynced string literal), each with a test that fails without its fix. Sibling gaps not handled:
f<noexcept(g())>(x)) or adecltypeholding=,|,!or?;= {f(g())});catchhandler calls are not collected.Gates
pr_gates.py --fast: 8/9;affectedfails onlytest_committed_fidelity_table_is_fresh_against_the_corpus, which compares the committed table with the local keyword-rosetta checkout'sbias_data.json(no engine input; the checkout is not at the table's commit).pr_gates.py --ratchets: 9/9 (Ports Compile needsJAVA_HOMEat a JDK withjavac, 17 on this box, and the mainframe corpora fetched).audit_check.py: all clear. Tests:tests/extraction/languages/,test_detector.py,test_macro_body_calls_6770.py,test_callgraph_oracle.py,test_language_standards_strict.py, the doom tool tests: 11601 passed. New tests fail without their fix.Cross-repo: none.
Lessons for agents
PYTHONPATHto the worktree (the doom tools do it for their scans).java(21) has nojavac: Ports Compile fails every equivalence case with "release version 17 not supported" untilJAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64.callgraph_oracle.py --clangneedslibclang(ci/requirements/callgraph.txt);pip install --targetinto a scratch dir plusPYTHONPATHkeeps the shared venv untouched.🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvgHnFtHyG5RHPr2dmM