Skip to content

resolver: Python built-ins on the untyped-receiver fallback (Part of #4991) - #6412

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4991-20261024T0752Z
Oct 24, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4991-20261024T0752Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4991 (Python box).

Class / Sibling gaps

Class: a call through an untyped, non-self receiver whose method name is a language built-in (d.get(), s.strip(), items.append(x)) linked confidently (file/import) to a same-named repo method, via the untyped-receiver fallback in _resolve_one. This PR fills _BUILTIN_INSTANCE_METHODS for python and embedded_python (str/bytes, list/set, dict, file-object methods). self/cls, typed receivers and non-built-in names are unchanged (tests). No _BUILTIN_NAMESPACES entry: Python has no such global static namespaces.
Sibling gaps (not in this PR, each needs its own list and measurement, none has a Level 2 reference except Kotlin's accuracy measure): Kotlin, C#, Ruby, PHP (method-only, likely nothing reaches the fallback), Go (ownerless-method language, likely bypasses the list). No burned mainframe estate needs any of them.

Evidence

  • test_call_resolver.py + test_call_graph_resolution_gate.py: 86 passed. pr_gates --fast: 7/7.
  • Golden masters re-blessed (both legs): edge-driven drift on the python corpus (fan-in/out, PageRank) plus global PageRank/modularity ripples.
  • Not run: call_graph_resolution.py python --ci (pyan3 not installed here), pr_gates --ratchets, so the Level 2 baseline is not regenerated; CI/ratchets will say if it moves. The Python box's "measure some other way" is only covered by the golden drift above.
  • Overlaps PR Call resolver: JVM package split over source sets is visible without an import (java recall 64.9% -> 71.5%) (Part of #3772) #6409 (call_resolver.py, its test file); merge main after it lands.

Checklist: partial [c:python] -- list added and unit-tested; no independent measurement of the built-in class.

🤖 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 24, 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 24, 2026 08:06
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 08:13
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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 24, 2026
…752Z

# Conflicts:
#	tests/core_engine/test_call_resolver.py
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (88fbdc8) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 08:32
@squid-protocol
squid-protocol merged commit 7569a44 into main Oct 24, 2026
62 checks passed
@squid-protocol
squid-protocol deleted the churn/4991-20261024T0752Z branch October 24, 2026 09:15
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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