Repository navigation
perf: line-gate state_mutation for csharp and groovy (Part of #3171) - #6407
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 07:42
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 24, 2026 07:42
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3171 (slice 4b).
Slice 4 as briefed (typescript/javascript/python) was already shipped by #6368 (docs #6391, #6398), so this audits the next refused languages instead: the
\s*\(mutator-call arm ofstate_mutationis narrowed to[ \t]*\((the cpp/ts playbook) in csharp and groovy, which are then opted into_line_gates.Class / Sibling gaps
Class: a
state_mutationregex thatpattern_is_line_localrefuses because of an incidental newline-consuming\sin the call arm. Measured for csharp, kotlin, swift, scala, dart, groovy (every one: narrowing is zero span movement over crucible + rosetta, gated/ungated parity exact).\s*before the assignment operator, not the call arm; java/rust already benched; objective-c, solidity, apex, perl, shell, cobol, abap etc. not audited.No burned estate needs any of these (scope:infra).
Evidence
line_gate_bench.py: all gated rules pass (csharp 1.44x, groovy 1.58x on corpus; dense 0.79x/0.75x on a loaded box).gate_parity_audit.py: zero violations.tests/core_engine/test_line_gates.py: 33 pass (csharp/groovy added to the narrowed parity set, incl. split-call forms).crucible_check.py(no update): both legs PASS, so no golden re-bless.pr_gates.py --fast: 7/7.--ratchetsnot run.🤖 Generated with Claude Code