Repository navigation
[experiment B] untyped-receiver built-in method calls (Part of #4479) - #6387
Closed
squid-protocol wants to merge 1 commit into
Closed
squid-protocol wants to merge 1 commit into
squid-protocol wants to merge 1 commit into
Conversation
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What
A/B experiment arm B for #4479 (protocol
docs/agents/self-scan-ab-protocol.md); not intended for merge as-is. Part of #4991.Fills the per-language built-in instance-method lists (and global namespaces) in
gitgalaxy/core/call_resolver.pyfor Kotlin, C# and Ruby. The generic untyped-receiver fallback in_resolve_one(added in #4990) already demotes afile/importlink to the ambiguousreceiverstep when the callee name is in_BUILTIN_INSTANCE_METHODS[lang], and returnsnoneforMath.max-style globals in_BUILTIN_NAMESPACES[lang]; those dicts were filled only for TS/JS/Java.Math,Convert,Console, ...include?,empty?); namespacesFile,Hash,Math, ...Tests (
tests/core_engine/test_call_resolver.py): the whole input class per language (one case per built-in family), plus the negative side (non-built-in name staysfile,thisstaysclass, repo class receiver staysqualified, repo class named like a global wins). The old "ruby stays file" test now uses PHP. 122 call-resolver tests pass;ruff checkclean on the source,ruff formatapplied.Class / Sibling gaps
Class: an untyped non-
thisreceiver whose method name is a language built-in links confidently to a same-named repo method.Done here: Kotlin, C#, Ruby (plus TS/JS #4990, Java earlier). Not measured against a Level 2 reference (none exists for these three); lists are from the language docs.
Sibling gaps left (not in this PR): Python (check
calls_out_qualifierscoverage first), PHP (confirm nothing reaches the fallback), Go (stdlib-type methods; confirm untyped receivers reach it), and any other language in_PACKAGE_DIR_LANGS/others such as Scala, Groovy, Swift, Dart, Rust.Not run (experiment cost cap)
Golden bless,
crucible_check.pyand the fullpr_gateswere NOT run. Golden-master drift for Kotlin/C#/Ruby fixtures is therefore unverified.🤖 Generated with Claude Code