Repository navigation
perf(tools): combined-alternation candidate-finder parity harness (Part of #3073) - #5428
Merged
Merged
Conversation
…rt of #3073) Harness only; the engine is unchanged and #3073 stays deferred. 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 18, 2026 08:03
squid-protocol
enabled auto-merge (squash)
October 18, 2026 08:03
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 #3073 (does not close it: the issue stays deferred, see #5361).
What
tests/tools/combined_alternation_parity.py: the parity precondition the issue sets for ever reopening. A first-pass candidate finder (one combined regex of rule-required literals, one sweep per segment) plus a corpus audit over language-crucible and keyword-rosetta. Contract: every rule whosefinditermatches is a candidate. Engine unchanged; no golden movement.Design: zero-width lookahead scan over literals reduced to those with no other literal as a substring (so leftmost-wins cannot consume text a second literal needs); case-insensitive gates use a second regex over
fold_haystack(text); ungated rules are always candidates. It is a superset of today's per-rule gate, so it only pays if a fleet-scalephase_ab.pyrun shows a large many-small-rules residual.Evidence
pr_gates --fast6/6; new test file 5 tests, 2.9s; time ratchet 0 over limit.--ratchets) not run: tools/docs only, no parsing logic touched.Class table
No burned-estate program needs this. Sibling gaps: none. The plan said the issue had no unchecked item; I shipped the harness slice only.
🤖 Generated with Claude Code