Repository navigation
DOOM call-graph oracle: pin that self-edges are ignored, not scored as misses (Part of #5630) - #5700
Merged
Merged
Conversation
…s misses (Part of #5630) Owner ruling 2026-10-19 (#5628 part 1): recursion stays dropped per #3327. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 20, 2026 07:29
squid-protocol
enabled auto-merge (squash)
October 20, 2026 07:41
This was referenced Oct 20, 2026
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 #5630. Queued part 1 of the #5628 ruling: the DOOM call-graph oracle/consensus ignores self-edges (recursion stays dropped per #3327) instead of scoring them as misses.
Owner decisions
Owner OK (2026-10-19, #5628): "Self-recursion stays dropped per #3327 (
docs/calls_out_rule_contract.mdstands,test_calls_out_contract_3327stays). The DOOM call-graph oracle/consensus (#5630 tooling) will ignore self-edges instead of scoring them as misses; queued separately on #5630."Finding
callgraph_oracle.py(#5690) already discards the caller from both the engine set (Port.__init__) and the oracle set (body_oracle), andconsensusskipsa == b. Behaviour is therefore already as ruled; nothing pinned it. This PR adds that pin and states the rule.Changes (3 files, no engine change)
tests/tools/test_callgraph_oracle.py: new test. A recursive function is recorded by one port's engine and not by four others. Recall and precision are 1.0, there are no misses or engine-only edges, and consensus has 0 holes and 0 suspects, either way.tests/tools/doom_speedrun/callgraph_oracle.py(docstring) andREADME.md: state the rule and cite #3265 step 0: state the calls_out contract (what counts as a call) #3327 and the ruling.No golden, baseline or ledger moves (tool and test only;
callgraph_baseline.jsonis unchanged because it was already measured with self-edges dropped).Class
Self-edge shapes: direct recursion (covered by test), recursion recorded by the engine (covered), recursion missed by the engine (covered), consensus over recursion (covered). Mutual recursion is not a self-edge and is still scored.
Gates
pr_gates --fast6/6 pass.test_callgraph_oracle,test_doom_speedrun,test_source_reads,test_generated_branch: 88 passed.--ratchetsnot run (no engine, golden or ledger input touched).Sibling gaps
The oracle collapses names with
bare(), soScope::X -> free X(#5628 part 2) is also dropped as a "self-edge". Once #5698 lands, the oracle should key on the qualified name so these edges are scored.🤖 Generated with Claude Code