You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/09/26 09:53:26 UTC
[PR] fix(setup): ask instead of guessing on an unrecognised sub-action [magpie]
potiuk opened a new pull request, #1391:
URL: https://github.com/apache/magpie/pull/1391
## 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 reconcie` ran `reconcile` and `upgrede` ran `upgrade` without being asked, and `upgrade` / `reconcile` / `adopt` stage committed files.
- Adds `### Unrecognised sub-action` to `setup/SKILL.md`. On an unknown argument the skill prints `Unknown 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
- [x] Skill change (`.claude/skills/<name>/`) — eval fixtures updated below
- [x] CI / dev loop (`prek`, workflows, validators) — regenerated `surface_hash`, `docs/mode-economics.md` token table, eval counts
## Test plan
- [x] `prek run --all-files` passes
- [x] `uv run --directory tools/skill-evals pytest -q` passes
- [ ] For skill changes: eval suite passes for the affected skill — not run locally (no `claude` CLI inside the sandbox this was authored in)
- [x] For skill *behaviour* changes: new eval suite `evals/setup/step-unknown-subaction` (4 cases). It covers a one-letter typo (`upgrede` → ask, suggest `upgrade`, run nothing), an exact name (`reconcile` → run), no close match (`frobnicate` → list only), and an ambiguous prefix (`un` → `unadopt`, `uninstall`).
## RFC-AI-0004 compliance
- [x] **HITL**: an unrecognised argument no longer triggers any sub-action (and so no committed-file write) without explicit confirmation.
## Notes for reviewers (optional)
The new subsection adds a `###` heading, so `setup`'s `surface_hash` changes. Adopters who have `setup` in their `reconciled:` stamp will see it proposed once on their next reconcile.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(setup): ask instead of guessing on an unrecognised sub-action [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1391:
URL: https://github.com/apache/magpie/pull/1391
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org