MPL release: mvp#262
Draft
KyubumShin wants to merge 1 commit into
Draft
Conversation
PR #245 fixed the trailing-keyword shape for runner heads via classifyRunnerHead (npm/pnpm/yarn/cargo/go/npx/pnpx synthesize a canonical of just `head subcommand` before matchFamilyRegex). The structurally same-class hole remained for the rest of STRICT_GATE_HEAD_ALLOWLIST — heads whose binary name IS the family signal (tsc/eslint/vitest/jest/mocha/ruff/ mypy/playwright/cypress/wdio). Their fallback ran matchFamilyRegex against the whole canonical, so a trailing HARD3 keyword promoted the entry: classifyGateCommand('tsc playwright') → 'hard3_resilience' (wrong) classifyGateCommand('vitest playwright') → 'hard3_resilience' (wrong) ANSI-C `$'...'`, parameter expansion `${...}`, and locale translation `$"..."` wrapped arbitrary text into the same forgery surface: classifyGateCommand("tsc $'playwright'") → 'hard3_resilience' (wrong) classifyGateCommand('tsc ${FOO}playwright') → 'hard3_resilience' (wrong) Fix: extend the synthesized-canonical pattern to non-runner heads. After classifyRunnerHead returns undefined, if the head is a head-as-signal binary, run matchFamilyRegex on just the head — trailing positional args and quote/expansion wrappers never reach the keyword scan. Both shapes close in the same change because the post-head text is dropped entirely. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
MPL Stage A release artifact for cut
mvp.Snapshot ref:
refs/mpl/releases/mvp⚠ Do not push to this branch. Further work happens on the working branch; subsequent cohort commits do NOT update this PR. This PR is frozen at the snapshot point.