Skip to content

resolver: C# BCL and Ruby core built-ins on the untyped-receiver fallback (Part of #4991) - #6667

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/4991-20261025T1932Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/4991-20261025T1932Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

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_METHODS in gitgalaxy/core/call_resolver.py, the same mechanism #6412 (Python), #6466 (Kotlin) and #5030 (Java) used. An untyped, non-this receiver call such as s.Trim() / h.fetch(k) that would link confidently to a same-named repo method now resolves at step receiver (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 become receiver; non-built-in Save/save stays file; 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.
  • Not measured: no C#/Ruby call-graph reference exists, so the effect on a real repo is unmeasured; lists are by BCL / core-class membership.

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

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 19:46
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 19:59
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6667 @ 7e93920: 1 failed check(s)

== crucible-audit (zero-dependency) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40227645135/job/121272331603
repro: tests/tools/box/golden-lock.sh python tests/tools/pr_gates.py --only golden
failing tests: tests/test_golden_crucible.py::test_golden_crucible_matches_baseline
errors:
⚠️ MISMATCH at /12. Scan Output Snapshots/LLM Brief: Expected ['# ARCHITECTURAL_BRIEF: data', '> INSTRUCTION: Deterministic Syntactic Analysis. Base architectural insights on Structural Magnitude, Extracted Signatures, and Risk overlays.',
2026-10-25 19:50:11,620 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
FAILED tests/test_golden_crucible.py::test_golden_crucible_matches_baseline - Failed: Structural drift detected against golden_master_zero_dep_audit (48 differences):
##[error]Process completed with exit code 1.
log tail:
│   ├── gitgalaxy
│   ├── github-action-readme.md
│   ├── mkdocs.yml
│   ├── muninn.yml
│   ├── pyproject.toml
│   ├── scripts
│   ├── site
│   ├── templates
│   ├── tests
│   └── zizmor.yml
└── language-crucible
├── AGENTS.md
├── ANTIGRAVITY.md
├── CLAUDE.md
├── LICENSE
├── NOTICE
├── README.md
├── RELEASING.md
├── SECURITY.md
├── SOURCES.md
├── data
├── raw_output
└── tools
14 directories, 25 files
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/0bf31fa4-c7cf-43af-8863-2c36467472d7' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 25, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit a270189 into main Oct 25, 2026
64 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4991-20261025T1932Z branch October 25, 2026 20:53
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