Repository navigation
fix(setup): ask instead of guessing on an unrecognised sub-action - #1391
Merged
Merged
Conversation
The dispatch table had no rule for a first argument matching no sub-action, so a typo like `reconcie` or `upgrede` was silently mapped to the nearest name and run. Print an unknown-sub-action message with close-match suggestions and the full list, and wait for confirmation. Adds eval suite evals/setup/step-unknown-subaction (4 cases). Generated-by: Claude Opus 5
potiuk
added a commit
to potiuk/magpie
that referenced
this pull request
Sep 26, 2026
Pick up today's merges (apache#1390, apache#1391-apache#1394, apache#1398, apache#1399) in a fresh marketplace build. pyproject.toml, uv.lock and every generated plugin/marketplace manifest move from 0.9.0.dev202609251939. Generated-by: Claude Opus 5
3 tasks done
potiuk
added a commit
that referenced
this pull request
Sep 26, 2026
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.
Summary
setup's dispatch table had no rule for a first argument that matches no sub-action, so the agent guessed. In practice/magpie-setup:setup reconcieranreconcileandupgrederanupgradewithout being asked, andupgrade/reconcile/adoptstage committed files.### Unrecognised sub-actiontosetup/SKILL.md. On an unknown argument the skill printsUnknown setup sub-action, a did you mean for close matches (edit distance ≤ 2, or a prefix; all of them when several qualify), and the full sub-action list. It then waits and runs a suggestion only after the user confirms it.Type of change
.claude/skills/<name>/) — eval fixtures updated belowprek, workflows, validators) — regeneratedsurface_hash,docs/mode-economics.mdtoken table, eval countsTest plan
prek run --all-filespassesuv run --directory tools/skill-evals pytest -qpassesclaudeCLI inside the sandbox this was authored in)evals/setup/step-unknown-subaction(4 cases). It covers a one-letter typo (upgrede→ ask, suggestupgrade, run nothing), an exact name (reconcile→ run), no close match (frobnicate→ list only), and an ambiguous prefix (un→unadopt,uninstall).RFC-AI-0004 compliance
Notes for reviewers (optional)
The new subsection adds a
###heading, sosetup'ssurface_hashchanges. Adopters who havesetupin theirreconciled:stamp will see it proposed once on their next reconcile.🤖 Generated with Claude Code