Skip to content

C# a call in an interpolated-string hole is a call; fixed/checked are no function (Part of #6266) - #6790

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/6266-20261027T1106Z
Oct 27, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/6266-20261027T1106Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6266 (DOOM-rosetta check 7, callgraph).

Checklist: partial [c:9e7fe6a3] -- helion misses 0 but 10 engine-only edges remain (slicer run-over in FileConfig.Write); callgraph stays in helion's expected_fails.

What changed (engine fix)

Largest remaining scored class: C# interpolated-string holes. $"x {Foo()}" runs Foo, but the literal shield blanked the whole string, so calls_out_to never saw it (helion: 59 misses).

  • New stdlib-only gitgalaxy/core/csharp_interpolation.py: expose_holes rewrites each interpolated string ($, $@, @$, raw $""", nested) to "" + +(expr) per hole.
  • detector.py: _call_scan_shield applies it (csharp only) before the literal shield in the calls_out scan and in _drop_nested_unit_calls.
  • csharp.py: fixed|checked|unchecked added to the func_start name lookahead (a fixed (...) { statement was a false unit, 16 misses).
  • Tests: tests/extraction/languages/test_calls_out_csharp_interpolation_6266.py (28).

Goldens

golden_master_audit and golden_master_zero_dep_audit: calls_out_to, graph_sqlite, llm_brief move (more call edges from holes). golden_doom_rosetta/helion: misses 59 -> 0, engine-only 10, recall 1.0; managed-doom unchanged. callgraph_baseline.json covers C/C++ only, unchanged.

Class / Sibling gaps

  • Slicer: the brace shield (fast_shield) mis-pairs a nested $"[{x.Select(c => $"\"{c}\"")}]", so FileConfig.cs:134 Write (helion) absorbs ReadConfigFrom's calls: the 10 engine-only edges. Needs an offset-preserving blank. Burned-estate need: none (helion is not a mainframe estate).
  • Other interpolation holes not checked: Kotlin ${}, Swift \(), JS template literals, Python f-strings, Scala, Dart, Ruby.
  • kocoa-doom Kotlin trailing-lambda calls.
  • doomsday/odamex/gzdoom/eternity/doom3-bfg C++: constructor initializer lists, member read as call, function-like-macro calls, foreach false unit, function_cast<>, DE_GUI_PIMPL, odamex wi_interlevel.

Remaining slices

The slicer fix above; the sibling languages.

Gates: pr_gates --fast 9/9, --ratchets 9/9, audit_check clear.

🤖 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 27, 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 27, 2026 11:38
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 27, 2026 11:39
@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-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 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6790 @ 9614878: 1 failed check(s)

== call-graph-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40498317506/job/122170669826
repro: python tests/tools/pr_gates.py --fast
errors:
2026-10-27 11:47:46,913 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
##[error]Process completed with exit code 1.
log tail:
FN: [('foreach', 46), ('forEach', 45), ('handle', 30), ('synchronized', 24), ('map', 22), ('completedFuture', 20), ('ArrayBuffer', 15), ('Map', 12)]
swift FP: [('doNotRetryWithError', 1), ('resumeData', 1), ('request', 1)]
FN: [('write', 27), ('async', 23), ('forEach', 5), ('$0', 3), ('indentingNewlines', 3), ('requestModifier', 3), ('map', 2), ('mapError', 1)]
lua FP: [('f', 3), ('assert', 2), ('write', 2), ('format', 1), ('f2', 1), ('x', 1), ('add', 1), ('012345678901234567890123456789012345678901234567890123456789', 1)]
FN: [('collectgarbage', 6), ('assert', 3), ('error', 2), ('dummy', 1), ('print', 1), ('getlocal', 1), ('f', 1), ('exit', 1)]
zig FP: [('volatile', 10), ('intCast', 5), ('assert', 4), ('get', 4), ('parseInt', 3), ('tagName', 3), ('as', 3), ('resolve', 3)]
FN: [('import', 62), ('await', 9), ('ensureUnusedCapacity', 2), ('assert', 2), ('tagName', 2), ('view', 2), ('header', 2), ('slice', 2)]
dart FP: [('identical', 6), ('StatefulElement', 3), ('
', 2), ('constructor', 2), ('ScrollNotification', 1), ('ScrollEndNotification', 1), ('ScrollStartNotification', 1), ('MapEntry', 1)]
FN: [('objectRuntimeType', 8), ('describeIdentity', 4), ('debugGetCreatorChain', 3), ('toStringShort', 2), ('join', 1), ('contains', 1), ('_stringify', 1), ('shortHash', 1)]
haskell FP: [('Just', 6), ('null', 4), ('map', 4), ('Para', 4), ('break', 3), ('Str', 3), ('go', 3), ('maybe', 2)]
FN: [('Str', 4), ('String', 3), ('Just', 2), ('intercalate', 2), ('extractFilesFromArchive', 1), ('optVerbosity', 1), ('takeExtension', 1), ('optEol', 1)]
perl FP: [('undef', 154), ('grep', 16), ('map', 6), ('x', 6), ('E', 5), ('ord', 4), ('G', 3), ('Group', 3)]
FN: [('new', 12), ('print', 9), ('-f', 5), ('join', 5), ('name', 4), ('say', 4), ('warn', 4), ('-d', 4)]
solidity FP: [('address', 10), ('bytes32', 4), ('mload', 3), ('add', 3), ('gas', 3), ('bytes', 3), ('GovernorDisabledDeposit', 3), ('onlyRole', 2)]
FN: [('call', 2), ('require', 1)]
apex FP: [('COUNT', 6), ('runAs', 4), ('SUM', 1), ('AND', 1)]
FN: [('List', 4), ('Map', 3)]
powershell FP: [('Name', 6), ('Url', 6), ('Configuration', 4), ('Runtime', 4), ('Output', 4), ('ForMinimalSize', 4), ('PSModuleRestore', 4), ('Ignored', 4)]
FN: [('Join-Path', 127), ('Test-Path', 121), ('Get-Content', 57), ('ForEach-Object', 55), ('Split-Path', 44), ('new', 44), ('Where-Object', 36), ('Select-Object', 32)]
tcl FP: [('set', 219), ('expr', 41), ('regexp', 26), ('msgcat::mc', 17), ('registry::entry', 16), ('variants', 13), ('lappend', 7), ('revision', 7)]
FN: [('return', 176), ('variable', 58), ('mc', 35), ('for', 24), ('format', 17), ('error', 16), ('entry', 15), ('switch', 14)]
call_graph_accuracy: REGRESSION
cpp: recall_pct 99.7 -> 99.0
##[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/76e4d13a-0456-4d6e-b0ee-bef2285c868d' 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 27, 2026
@squid-shepherd
squid-shepherd Bot merged commit 07e7c73 into main Oct 27, 2026
73 of 74 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261027T1106Z branch October 27, 2026 11:54
squid-protocol added a commit that referenced this pull request Oct 27, 2026
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