Repository navigation
feat(#1135): /release pre-flight runs claude plugin validate; post-tool never hard-blocks; current model aliases - #1207
Merged
Conversation
…manifests and stops on error Entire-Checkpoint: d7ba4c3624e0
… and name current models in run-command per-phase docs
… the plugin manifest
Entire-Checkpoint: ab14d8dce0c9
This was referenced Sep 28, 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
Track C of #1135 (AC-9, AC-10). Track B is #1206. #1135 stays open until both land, and AC-12's full suite is this PR's CI.
AC-9:
continueOnBlockdoes not apply topost-tool.sh. Evidence below; no registration changeAC-9 asks for
continueOnBlock"where it currently hard-blocks". Nothing hard-blocks, and the field can't be applied here anyway:## 2.1.139: "Added hookcontinueOnBlockconfig option forPostToolUse". The installed 2.1.283 binary defines it only in thetype: "prompt"hook schema (continueOnBlock:O().optional().describe('Sets the continue value for the decision:"block" produced when ok is false…')) and reads it only in the prompt-hook runner. Sequant registerspost-tool.shastype: "command"in both.claude/settings.jsonandhooks/hooks.json.post-tool.shnever blocks. Every exit in all three copies isexit 0. It emits nodecisionJSON, and security patterns and test failures only go to the quality log.The new fixture case in
__tests__/pre-tool-hook.integration.test.ts,post-tool.sh never hard-blocks (#1135 AC-9) [%s], covers all three hook copies. It feeds a.tswrite containingeval(and a failingnpm testpayload, then asserts exit 0, no"decision"on stdout, and both warnings in the log. If a later change makes the hook block, this test catches it.Docs:
docs/reference/run-command.mdkeeps aliases in its examples and adds a table of what they resolve to as of Claude Code 2.1.283. Each row was checked with a realclaude -p --model <alias> … | jq '.modelUsage|keys':opus→claude-opus-5-5,sonnet→claude-sonnet-5,haiku→claude-haiku-4-5-20251001,fable→claude-fable-5-1.AC-10:
claude plugin validatein pre-flightclaude plugin validate .validates onlymarketplace.jsonand silently skipsplugin.json, so the new### Plugin Checksstep names each manifest.plugin.jsonpasses today with one warning ("CLAUDE.md at the plugin root is not loaded as project context"), so--strictwould block every release.claudeon PATH.Output I got running both commands against this branch:
Acceptance criteria
npx vitest run __tests__/pre-tool-hook.integration.test.tspassed (384 tests, including the new case for all three copies); the evidence for "no hard-block exists" is above.npx vitest run src/lib/__tests__/release-plugin-validate-skill.test.tspassed, 9 of 9. The test runs the skill's own pre-flight bash block against a stubclaude: a failing stub must stop the release after theplugin.jsoncheck, and a passing stub must call both manifests in order.npm run lint:skill-syncreported 44 synced, 0 diverged, andlint:skill-callsreported no violations. For the full suite, see CItest.Mutation records
Mutation-verified: AC-9 — added
exit 2after the SECURITY_WARNING log line in .claude/hooks/post-tool.sh; tests/pre-tool-hook.integration.test.ts failed; restored.Mutation-verified: AC-10 — replaced the plugin.json line's
|| { echo …; exit 1; }with|| truein .claude/skills/release/SKILL.md; src/lib/tests/release-plugin-validate-skill.test.ts failed; restored.The first AC-10 mutation survived, because the marketplace line still exited non-zero. The test was tightened to require that nothing runs after a
plugin.jsonfailure; after that, the mutation above fails it.Test plan
claude plugin validate, run after mergingmaintest+canary🤖 Generated with Claude Code