Repository navigation
oracle: a constructor's owner is the class it is named for, not a misread enclosing class (Part of #6266) - #7023
Merged
Conversation
…read enclosing class (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
3 of 5 tasks
squid-protocol
added a commit
that referenced
this pull request
Oct 29, 2026
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]>
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. Checklist: partial [c:0254d813] -- doomsday still has engine-only edges (.old x4, fontlinewrapping, inputdevice, amethyst, fluid) and 1 miss (sortSegments->map, rescan needed); other ports untouched this slice.
What
Oracle fix (not an engine change). tree-sitter reads
class X : public A, DE_OBSERVES(..) // c {(packageswidget.cpp'sPackageListItemWidget) as an unclosed class enclosing the rest of the file, socallgraph_oracle._ownerreturned that class for every later constructor.Impl(Public *i) : Base(i)andPackagesWidget::PackagesWidget(..) : GuiWidget(name)then had no known base, and the engine's real constructor calls were scored engine-only "absent"._ownernow accepts an enclosing class only when its name is the constructor's name (new_ctor_name); otherwise it keeps climbing, then uses the qualified scope, else None (any base).Doomsday engine-only "absent" 13 -> 10 (Impl->Base, PackagesWidget->GuiWidget x2);
callgraph_engine_only16 -> 13, precision 0.9684 -> 0.9685. Verified bydoom_rosetta_checkover all ports: only doomsday drifted, blessed (--only doomsday). The new test fails without the fix.Files (2 hand-written):
tests/tools/doom_speedrun/callgraph_oracle.py,tests/tools/test_callgraph_oracle.py; regenerated:tests/golden_doom_rosetta/doomsday.json.gz.Class / Sibling gaps
Class: engine-only constructor-initializer edges the oracle drops because the owner class is misread. Members handled: Impl->Base, PackagesWidget->GuiWidget x2 (all of the class on doomsday; the rule is general to every port).
Sibling gaps (doomsday; burned-estate need: none, these are DOOM ports, not mainframe):
.oldx4 (no class decl, engine-only); fontlinewrappingDE_PIMPL_NOREF -> lineand inputdevicedescription -> isActive/name(comment/string kind); amethystfilledLinex3; fluidcontextx2; sortSegments->map miss after #7014 needs a rescan. Different mechanisms, not here.Gates
pr_gates --fast9/9 pass;audit_checkclear; tree-wide guards andtest_callgraph_oracle.pypass;ruff format --checkclean (0.17.1).--ratchetsnot run: no engine, signature or golden-master input changed (doom-rosetta golden only).🤖 Generated with Claude Code