Skip to content

perf: line-gate state_mutation for csharp and groovy (Part of #3171) - #6407

Merged
squid-protocol merged 1 commit into
mainfrom
churn/3171-20261024T0732Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/3171-20261024T0732Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 of state_mutation is narrowed to [ \t]*\( (the cpp/ts playbook) in csharp and groovy, which are then opted into _line_gates.

Class / Sibling gaps

Class: a state_mutation regex that pattern_is_line_local refuses because of an incidental newline-consuming \s in 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).

  • Shipped: csharp (corpus 42/60 ms, dense +29%), groovy (corpus 17/28 ms, dense +26%).
  • Not shipped (bench): kotlin (corpus 1.1/1.3 ms, noise), swift (corpus loses 1.11x), scala (corpus loses 1.63x, dense +64%), dart (corpus wins 33%, dense +34-36% against the 35% bar: flaky).
  • Not in scope, different shape: php and ruby are refused by an operand \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. --ratchets not run.

🤖 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 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 07:42
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 07:42
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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