Repository navigation
C# brace shield: nested interpolation holes; helion callgraph passes (Part of #6266) - #6792
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…(Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…checked (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…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]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6792 @ 42061a2: 1 failed check(s) == call-graph-accuracy-audit (failure) -- real |
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;
callgraphdropped from helion'sexpected_fails.What changed
csharp_interpolation.blank_interpolated: same-length blanking of every interpolated string (holes, nested strings,$@, raw) using the same walker asexpose_holes.detector._build_brace_safe_streamapplies it (csharp only) before the literal shield. Cause: the plain-string pattern paired the"nested in$"[{xs.Select(c => $"\"{c}\"")...}]"with a later string, soFileConfig.Writeran 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# specGetZ()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_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.{{{rule is C#-only and a regex over literal text; other tree-sitter grammar lexing gaps are unchecked.${}, Swift\(), JS template${}, Python f-strings, Scala, Dart, Ruby).{{{rule (5-file limit); covered by the helion rosetta golden.foreach, DE_GUI_PIMPL, odamexwi_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 --fast9/9,--ratchets9/9;doom_rosetta_check --only helionre-run clean after--update.🤖 Generated with Claude Code