Repository navigation
resolver: C# BCL and Ruby core built-ins on the untyped-receiver fallback (Part of #4991) - #6667
Conversation
…back (Part of #4991) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6667 @ 7e93920: 1 failed check(s) == crucible-audit (zero-dependency) (failure) -- real |
…d confident call edges (Part of #4991) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #4991. Adds the C# (BCL: string, List/Dictionary/HashSet, LINQ, StringBuilder, object) and Ruby (core: String, Array, Hash, Enumerable, Object) built-in instance-method lists to
_BUILTIN_INSTANCE_METHODSingitgalaxy/core/call_resolver.py, the same mechanism #6412 (Python), #6466 (Kotlin) and #5030 (Java) used. An untyped, non-thisreceiver call such ass.Trim()/h.fetch(k)that would link confidently to a same-named repo method now resolves at stepreceiver(not confident).Checklist: partial [c:7c32f4ca] -- list and unit tests done; no Level 2 reference for C# to measure against yet
Checklist: partial [c:baf75fe9] -- list and unit tests done; no Level 2 reference for Ruby to measure against yet
Class / Sibling gaps
Class: untyped-receiver built-in method calls linking confidently to a same-named repo method. Members handled: TS/JS, Java, Python, Kotlin (merged earlier), C# and Ruby (this PR). Sibling gaps: PHP (method-only, confirm nothing reaches the fallback), Go (stdlib-type methods, confirm untyped receivers reach it); neither done here (different check, no list written). Python's box [c:b2ceb0a3] is covered by #6412 (merged); its tick is the gate's call. Other languages with no list (Swift, Scala, Dart, Groovy, ...) are not on the issue.
Evidence
tests/core_engine/test_call_resolver.py: new tests for C#/Ruby (six built-in names each becomereceiver; non-built-inSave/savestaysfile;this-receiver stays confident). The old "other language keeps the rule" test moved from ruby to php. 99 passed.pr_gates --fast: 7/7 pass.--ratchets: 9 pass, 0 fail, 0 skipped. Golden re-bless (CI crucible-audit caught what I wrongly judged unaffected): drift is graph-only (network_macro, PageRank, fan_in/out, import_edges, blast radius, bottlenecks, LLM brief/graph snapshots, e.g. Ruby files in brew), attributable to C#/Ruby built-in calls no longer producing confident edges. Blessed via golden-lock + crucible_check --update.Remaining slices
PHP and Go confirm-or-close boxes; a C#/Ruby Level 2 reference (callgraph-language-onboarding) to measure the lists.
🤖 Generated with Claude Code