Skip to content

objc: [f(x) a:1] keyword send to call receiver; ObjC call-graph oracle and licensed-port rescan (Part of #5639) - #5828

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5639-20261021T0512Z
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5639-20261021T0512Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5639

What

  1. Licensed-port rescan, recorded. Call-graph validation for C/C++: independent body oracle + family consensus on the DOOM corpus (the Graph Accuracy Audit only covers Python/TS/Java) #5630's oracle (callgraph_oracle.py) is C/C++ only, so this adds tests/tools/doom_speedrun/objc_callgraph_oracle.py: a tree-sitter objc body oracle independent of the engine's regexes (C call_expression + message_expression selector = unary selector or first keyword; restricted to names the port defines; self-edges dropped both sides, as the Call-graph validation for C/C++: independent body oracle + family consensus on the DOOM corpus (the Graph Accuracy Audit only covers Python/TS/Java) #5630 oracle does; a unit tree-sitter cannot parse, e.g. ObjC++ members, is read by a text fallback and counted separately). It refuses any port outside the licensed set.
  2. [f(x) a:1] gap closed. A keyword send to a call receiver (calls_out group 4, a [-only lookahead so f( is still a C call; detector reads send_group 3 or 4). Unary [f(x) a] was already handled.

Rescan (current engine at this branch, --db-only, ports at the doom_speedrun pins; the 4 licensed ports with ObjC)

port units oracle calls found recall engine edges engine-only precision oracle reader (tree-sitter / text fallback)
chocolate-doom 89 52 52 1.000 52 0 1.000 52 / 0
prboom-plus 179 88 88 1.000 90 2 0.978 83 / 5
eternity 142 100 100 1.000 100 0 1.000 88 / 12
gzdoom 210 125 125 1.000 130 5 0.962 57 / 68

Acceptance (recall >= 0.95 under the oracle) is met on all four; gzdoom moved 0.892 -> 1.000 since #5689 (#5691/#5795 unit-extent fixes). The numbers are identical before and after the [f(x) a:1] change (no such send in these ports). gzdoom's oracle reads 68 of 125 calls through the text fallback (ObjC++), so its number rests on a weaker oracle than the other three. The 7 engine-only edges are not classified here.

Class

Objective-C message sends as calls. Covered: unary, keyword, super, nested, in C call, @selector (not a call), receiver qualifier, and now keyword-to-call-receiver.
Sibling gaps: a call receiver whose arguments hold a [...] send or nest calls more than two deep ([f([a b]) c:1]): still unrecorded (pattern's one-level-nested-args bound; rare); in-class bare ctor/dtor with init list (from #5795, no licensed miss found).

Gates

pr_gates --fast 7/7; --ratchets 8/8 (ground-truth, completeness, fact-crosscheck, ports ... all PASS); golden blessed via crucible_check.py --update --yes: no drift on either leg, no fixture changed; tree-wide guards + the changed tests pass (134 tests, none over the time limit); audit_check.py clear. Tests: test_calls_out_objc_messages_5639.py (+5 shapes, +2 qualifier, +ReDoS inputs), test_objectivec_strict.py (group count 4).

Remaining

None for the issue's acceptance beyond review; the oracle is not yet wired into a baseline/CI (no committed ObjC baseline; scans are by hand).

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

…l-graph body oracle (Part of #5639)

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 21, 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 21, 2026 05:46
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 05:46
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 47fe307 into main Oct 21, 2026
103 checks passed
@squid-protocol
squid-protocol deleted the churn/5639-20261021T0512Z branch October 21, 2026 06:10
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