Skip to content

ObjC: a method header ended by ; and followed by its { body is a definition (Part of #5639) - #5795

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5639-20261020T2227Z
Oct 20, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5639-20261020T2227Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5639 (slice 2 of 2). Does not close it: the licensed-port rescan against the #5630 oracle is still unrecorded, and [f(x) a:1] is a known gap.

Change

- (void)setOn:(BOOL)turnOn; followed by { ... } (a stray ; after the header) was taken for a bodyless declaration: a loc-1 unit whose body's message sends belonged to nobody. In detector.py (objc group-1 branch) a ; terminator that is followed, after whitespace, by { is now the body start: a declaration is never followed by a {. Real @interface declarations (followed by another method or @end) stay bodyless.

Evidence (doom-study ports, my per-line oracle: every [recv sel line must sit inside a unit that records sel): the three ;{ headers (doom-ios UICustomSwitch.m setOn:, eternity ELTextFieldDelegate.m controlTextDidChange:, prboom-plus UKKQueue.m removeAllPathsFromQueue) now record their sends. gzdoom is already 0.99 on this oracle after #5691 (the remaining misses are [super x] where x is the enclosing method's own name, and nested sends).

Class table

Class: an ObjC method whose unit extent is wrong, so its sends are lost.

Member Status
out-of-line Cls::M, ctor, dtor handled by #5691
header ; then { this PR
in-class inline method with a return type (static T* GetWindow() {) already correct (checked)
in-class bare ctor / dtor with an init list (CocoaVideo() : a(1) {) missing; no burned or licensed port has one (grep of gzdoom .mm), needs a bare-name func_start alternative with a ReDoS-bounded init list
self-named [super x] / [obj x] inside method x dropped from calls_out missing, a call-resolver filter, different mechanism

Tests / gates

tests/extraction/languages/test_objc_semicolon_header_units_5639.py (unary, keyword, +, loose spacing, interface declarations, declaration before a C function). pr_gates --fast 7/7, --ratchets 8/8, tree-wide guards 184 passed. Golden masters re-blessed via golden-lock.sh crucible_check.py --update --yes.

Golden drift: scope_check --expect objective-c shows 183 objective-c differences (calls_out, units, the DNA hit of worldwideweb/Anchor.m) plus ~70 last-digit PageRank / coordinate / rollup moves in other languages (e.g. Expected 0.000123, Got 0.000122, topological X +-0.3). Those are the repo-wide graph recomputation after ObjC call edges moved, not language changes.

🤖 Generated with Claude Code

@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 23:10
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 23:17
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5795 @ d4a3534: 1 failed check(s)

== Call resolution (Level 2, vs pyan3) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39513188837/job/118938959406
repro: python tests/tools/pr_gates.py --fast
errors:
2026-10-20 23:15:31,656 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:33,212 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:33,608 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:36,388 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:39,071 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:41,425 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:41,426 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:41,428 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:41,429 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:41,574 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:41,576 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:42,202 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:42,203 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:42,205 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:42,206 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:42,207 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:42,208 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:42,209 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:.AssertionError>
2026-10-20 23:15:42,265 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:
.AssertionError>
2026-10-20 23:15:45,341 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:50,706 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:50,933 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:51,183 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:51,397 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 23:15:52,525 [INFO] [pyan.analyzer] New edge added for Use from to Name <Node ???:*.AssertionError>
... 67 more
log tail:
"overload_blind_precision_pct": 99.7
},
"recall_all_kinds_pct": 76.4,
"resolution_recall_pct": 97.7,
"named_pyan_edges": 1748,
"pyan_edges": 3592,
"wrong_examples": [
"fastapi: fastapi/routing.py:app -> fastapi/exceptions.py:45 (pyan3: fastapi/exceptions.py:213)",
"fastapi: tests/test_arbitrary_types.py:test_typeadapter -> tests/test_arbitrary_types.py:20 (pyan3: tests/test_arbitrary_types.py:59)"
],
"external_examples": [],
"reference_version": "2.9.0",
"lang": "python"
}
}
| language | reference | confident precision | ambiguous precision | recall | resolution recall |
|---|---|---|---|---|---|
| python | pyan3 | 99.9% (1829 judged) | 60.0% | 50.9% | 97.7% |
decorator edges (not gated): precision 100.0% (575 judged); recall with decorators 66.9%
reference edges (not gated): precision 99.7% (345 judged); recall, all kinds 76.4%
call_graph_resolution: WARNING -- pyan3 2.9.0 is not the pinned 2.8.1; numbers are not comparable to the baseline
call_graph_resolution: REGRESSION
python: recall_pct 51.7 -> 50.9
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/54692c2c-8e2a-46d6-86bc-8335b9439a60' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 20, 2026
@squid-protocol
squid-protocol merged commit c143226 into main Oct 20, 2026
94 of 96 checks passed
@squid-protocol
squid-protocol deleted the churn/5639-20261020T2227Z branch October 20, 2026 23:35
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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant