Repository navigation
Description
Follow-up to #3072 / PR #3170. The machinery is done; this is scope extension only, and pattern_is_line_local + derive_line_literals make the audit mechanical.
Eligibility sweep over every language's state_mutation (run on the #3170 branch):
Eligible today but unshipped (9): ada, haskell, lua, m4, makefile, scheme, tcl, yacc, zig. These build a gate right now; each just needs the line_gate_bench.py acceptance run (corpus win + ≤35% dense loss) before adding its _line_gates entry — #3072's lesson is that cheap patterns lose (python decorators went 23→49ms), so ship only measured winners. Most of these corpora are small; expect several to fail the corpus-win bar, which is fine.
Refused as "not line-local" and worth a narrowing audit (the cpp playbook): typescript, java, javascript, python, rust, csharp, kotlin, swift, scala, dart, php, ruby, objective-c, groovy, apex, solidity, perl, shell, matlab, cobol, abap, and friends (35 total). cpp was in this bucket until #3170 narrowed its method-call arms \s*\( → [ \t]*\( with zero match movement across the whole corpus. The high-value targets are the big-corpus languages: typescript, java, javascript, python, rust. For each: find which node(s) pattern_is_line_local rejects, decide whether the \s/newline-spanning shape is load-bearing (a genuine multi-line form) or incidental (paren/operand binding that never really spans), narrow only the incidental ones, prove zero corpus movement (crucible + rosetta), golden-check, then opt in.
Refused as "no literal set" (8): agc_assembly, assembly, dockerfile, fortran, hlasm, jcl, powershell, rexx — their state_mutation bottoms out with no derivable required literal; nothing to do without rule redesign.
Bar (same as #3072): exact-parity leg in gate_parity_audit.py must stay at zero violations; every new entry must pass line_gate_bench.py; any pattern narrowing needs a corpus zero-movement proof and golden crucible both legs.
Not in scope: func_start/match_at gating (proven unwinnable, measurements recorded on #3072) and the #3073 combined-alternation scan (separately deferred).
🤖 Generated with Claude Code
Activity
squid-protocol commentedon Sep 18, 2026
Expectations note so nobody picks this up hoping for a big win: every item here is sub-1% end-to-end, likely much less. The arithmetic from #3072/#3170: state_mutation is ~7–8% of the rule pass, a line gate recovers ~⅔ of it, and the rule pass is ≤ half of wall time — that capped even c+cpp+go combined at ~1% on node. The nine eligible-today languages are small-corpus and round to ~0% in mixed-repo scans; the ts/java/js/python narrowing audits are the only entries that could touch ~1%, and each carries a pattern-change proof burden. Treat this as opportunistic background chores (e.g. while touching a language file anyway), not a dedicated perf push. The next dedicated push should start from fresh phase-level profiling, not from this lever.
🤖 Generated with Claude Code
squid-protocol commentedon Sep 18, 2026
Machinery is ready for this — no new engine primitives needed:
pattern_is_line_local, andbuild_line_gateuses_pick_most_selective, so the ts/javastate_mutationnarrowing is a mechanical audit: add the rule to_line_gates, and ifbuild_line_gaterefuses orline_gate_bench.pyshows a corpus loss / >35% dense loss, drop it.#3173added aprefer_selectiveflag toderive_literal_gate(same picker) for the security signatures — worth a glance for consistency, though it's the segment gate, not the line gate.tests/tools/phase_ab.py(tooling(perf): reusable phase A/B harness + perf-ab skill #3178) plus the existingline_gate_bench.pyacceptance leg.Still correctly filed low-priority / background.
squid-protocol commentedon Sep 19, 2026
Fleet payoff: small as scoped — but the machinery points at a much bigger target
Fleet-wide (739 repos),
state_mutationis a minor rule:c::state_mutation44s,cpp43s, and the ts/java/js/rust/python variants smaller still — a rounding error againstB_Bracesat 3,931s (53% of all rule CPU). So line-gatingstate_mutationacross the 9 eligible languages is a genuine-but-marginal win; worth shipping the measured winners opportunistically, not a priority.The more valuable insight is that
_line_gates/pattern_is_line_localis exactly the lever the hot rules need. The real prize is applying the same line-locality narrowing toB_Bracesandfunc_start(55% of rule CPU between the Cartography modes and func_start), especially for the C-family. That's a bigger, separate audit than this state_mutation scope-extension — flagging it here so the connection isn't lost; it likely belongs under #3182.Recommendation: keep
priority: lowfor the state_mutation extension; pursue the hot-rule line-gating under #3182.test: ada schema-completeness ignores the _line_gates helper key (Par…
perf: opt ada and yacc state_mutation into _line_gates (Part of #3171) (
perf: line-gate state_mutation for typescript, javascript, python (Pa…
docs: how_to_add_a_language lists ts/js/python line gates; rust bench…
docs: line_gate_bench on the 7 ungated eligible state_mutation langua…
perf: line-gate state_mutation for csharp and groovy (Part of #3171) (#…
squid-protocol commentedon Oct 24, 2026
Churn run
3171-20261024T0921Z(host melek) ended without a PR. Slice 5 of #3171 already done on main (#5439, #6398 benched all nine); no PR. Remaining php/ruby narrowing audits are low priority.squid-protocol commentedon Oct 24, 2026
Claimed by promoter-bot host
nyx, lease renewed 2026-10-24T09:32Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:nyxlabel.docs: line_gate_bench on narrowed kotlin and swift state_mutation: ne…
squid-protocol commentedon Oct 24, 2026
Closing: every eligible candidate is shipped or benched and refused (ada, yacc, ts/js/python, csharp, groovy shipped; rust, haskell, lua, m4, makefile, scheme, tcl, zig, java, kotlin, swift measured and refused, PRs #5439 #6368 #6407 #6391 #6398 #6444). The remaining languages are not line-local, are unaudited and likely fail the dense bar; reopen or file a fresh issue if one is needed.