Repository navigation
DOOM check 7 (C/C++): unit brace scan past 50 KB, destructor header not a call; 4 ports pass (Part of #6266) - #6298
Conversation
…is no call; 4 C ports leave callgraph expected_fails (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… a closed result (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eader fix: crucible 8,348 differences (both fixtures), DOOM-rosetta 12 ports (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6298 @ a287b9a: 2 failed check(s) == shard 1 (1669449 LOC) (failure) -- real == shard 4 (1666524 LOC) (failure) -- real |
Part of #6266 (Track A, C/C++). Checklist: partial [c:a1f0d74e] -- C/C++ breakdown posted only for fastdoom, doomretro, prboom-plus, dsda-doom; 7 big ports not scanned
Checklist: partial [c:9e7fe6a3] -- two shape classes fixed (below); srb2, doomsday, gzdoom, odamex, doom3-bfg, eternity, edge-classic unread
Checklist: partial [c:0254d813] --
callgraphdropped fromexpected_failsfor fastdoom, doomretro, prboom-plus, dsda-doom onlyOwner decisions
Track A (C/C++) of #6266, owner 2026-10-23: first self-contained slice, at most 5 hand-written files.
What changed (engine, not oracle)
Oracle numbers on current main (
callgraph_oracle.py --only ...) and after:statement,nested-argument,assignment-rhs)._find_balanced_endused the embedded-block handshake lookahead (50,000 chars) for every unit's brace scan, so a ~1,600-line C function (doomretroM_Responder, fastdoomoutput_assembly) lost every call after the cut. A scope still open at 50 KB is now rescanned out toBODY_LOOKAHEAD_LIMIT(500 KB) and the longer end is used only when it closes; a malformed scope stays cut where it was. The handshake caller pins its own limit.absent).Scanner::~Scanner()and inline~ParserState()recordedScanner(/ParserState(of their own header as a call. A callee spelled right after~in a~Xunit namedXis skipped;~g(x)in another unit is still a call.Files (5):
gitgalaxy/core/detector.py,tests/extraction/languages/test_calls_out_body_span_6266.py(fails without the fix: 3 of 4),tests/doom_rosetta/manifest.csv(4 rows), plus the handoff note outside the repo.Golden: blessed, drift attributed
Bless via
golden-lock.sh crucible_check.py --update --yes(box load ~7, zero timeouts in the log). Attribution by control: the same bless with the detector at 495ae3e (main) gives 0 differences against the committed fixtures, so all drift below is this change (the earlier 11,158 "pristine" differences were load-induced and not reproduced).golden_master_auditandgolden_master_zero_dep_audit: 8,348 differences each (327 topological X/Y/Z re-solve, 8,021 substantive; sections: 7,912 parsed files, 76 scan snapshots, 31 ecosystem summary, 2 forensic report). Per language: typescript 5,326, zig 388, php 355, csharp 287, scheme 235, cpp 226, cobol 205, perl 202, scala 172, javascript 147, dart 126, c 55, rest under 40 each. Cause: functions over 50 KB (parser.ts, checker.ts, emitter.ts, formatting.php, main.zig, ...) now keep their real end line and every call after the old cut, and the PageRank / layout re-solve follows. No file moved between parsed and excluded.tests/golden_doom_rosetta: 12 ports re-blessed, all attributable (control run on main leaves themok): doomretro 5, prboom-plus 4, dsda-doom 7, fastdoom 5, eternity 2, odamex 3, gzdoom 13, gore 1, doom3-bfg 3, srb2 3, doomsday 7, edge-classic 5 changes. Verdicts: doomretro, fastdoom, prboom-plus, dsda-doom losecallgraph.doom-rosettamay still show them red.callgraph_baseline.jsonnot regenerated.Class / Sibling gaps
Class: C/C++ call-graph misses on current main, 11 ports. Done: the two shapes above, covering the four smallest ports. Sibling gaps, remaining misses / engine-only after this change (from the re-blessed goldens): doomsday 1713 / 2602, srb2 see golden (engine-only 640), doom3-bfg engine-only 57, edge-classic 38 / 12, gzdoom, odamex, eternity (see their goldens). Also stale-golden siblings: managed-doom, mochadoom, cssdoom, sqldoom. Their recall may already move with shape 1 (rescan needed); precision gaps are mostly
type/function-pointer(unscored) plusabsent.Remaining slices
Rescan the 7 big ports on this engine and post their per-shape breakdown; fix residual shapes largest first; then drop their
expected_fails, regeneratecallgraph_baseline.json, post the seven-check PERFECT count.Gates
pr_gates.py --fast7/7; pre-PR tree guards +tests/doom_rosetta217 passed, 44 skipped.pr_gates.py --ratchets9/9 pass (via heavy-run.sh).Lessons for agents
doom_speedrun.py scanreuses<work>/scans/<engine-sha>when it exists:rm -rfit to rescan after an engine edit at the same HEAD.crucible_check.pyon pristine HEAD can show ~11k differences when the box load is >6: checkbox_status.pyand compare against an unchanged-engine run before reading the drift as yours.🤖 Generated with Claude Code