Skip to content

DOOM call-graph oracle: pin that self-edges are ignored, not scored as misses (Part of #5630) - #5700

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5630-20261020T0723Z
Oct 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5630-20261020T0723Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.md stands, test_calls_out_contract_3327 stays). 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), and consensus skips a == 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) and README.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.json is 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 --fast 6/6 pass. test_callgraph_oracle, test_doom_speedrun, test_source_reads, test_generated_branch: 88 passed. --ratchets not run (no engine, golden or ledger input touched).

Sibling gaps

The oracle collapses names with bare(), so Scope::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

…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 20, 2026 07:29
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 07:41
@squid-protocol
squid-protocol merged commit 712e6e0 into main Oct 20, 2026
47 checks passed
@squid-protocol
squid-protocol deleted the churn/5630-20261020T0723Z branch October 20, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant