release: cheapshot-mcp 0.1.4 and plugin 0.1.4 #71
Claude finished @ryanilano's task in 57s —— View job
---
Review: release cheapshot-mcp 0.1.4 and plugin 0.1.4
origin/main and the release scripts and workflowsVerdict: safe to ship in the order the description gives. I found no correctness or security bugs. This PR changes no code under Redaction/, the golden cases, plugin/hooks/, plugin/scripts/ or the MCP handlers. It touches only versions, pins and docs.
Weakest point: the merge step in docs/release.md:40 (inline comment). The step says main gets "a squash commit with the same tree". That is only true if main has not moved since the branch was cut. --match-head-commit checks the PR head, not the base. If a change to mcp/ lands on main between the tag and the merge, npm 0.1.4 would not include it, but main would still say 0.1.4. Right now the branch sits directly on f8f2928, the tip of origin/main, so this release is fine. The documented procedure needs one more check: before tagging and before merging, confirm the branch is still on the current origin/main.
Minor (inline comment): the new wording in SKILL.md:46 ("0.6.0 or older, or a main build from before rules v2") no longer matches the hook's user-facing hint at cheapshot-read.sh:542, claude-code.md:167 and the mcp source comments, which all still say "older than 0.6.5". Behavior is unchanged, but the model now sees two different version claims for the same error.
What I checked:
plugin.json and marketplace.json are both 0.1.4, as check-plugin.sh requires.plugin/.mcp.json pin is cheapshot-mcp@0.1.4 and equals mcp/package.json. package-lock.json is 0.1.4 in both places.npx or npm view. CI going green before the publish is therefore correct, not a false pass.npm-publish.yml refuses a tag that does not match package.json and runs check-mcp.sh before publishing. Tagging the PR head works with that.CHEAPSHOT_ALLOW_RAW "0.1.3 or later" notes, claude-code.md:75 (the mask gate shipped in 0.1.3), and the redaction.md sentence about older plugins.claude-code.md and redaction.md now say the bundled MCP tools pass --all-rules with plugin 0.1.4. That is accurate once the pin moves, and the site only rebuilds from main after the merge, which comes after the npm publish.I didn't run the gate scripts here; the PR reports them all passing locally.
"main gets a squash commit with the same tree" is only true if main has not moved since this branch was cut. --match-head-commit guards the PR head, not the base. If another PR lands on main between the tag and this merge and touches mcp/, npm 0.1.4 (built from the tagged branch commit) would not contain that change, while main would say 0.1.4 with different source. Nothing in npm-publish.yml or check-plugin.sh would catch it. Suggest adding a step: before tagging, and again before merging, confirm the branch is still based on the current origin/main (or at least git diff <tag>..origin/main -- mcp/ is empty). If it is not, rebase and re-tag with a new version.
Not a safety problem: the fallback behavior is the same, and a binary that rejects the flag still cannot switch rules off. But this wording now disagrees with the other places that describe the same rejection. Those still say "older than 0.6.5": the hook's user-facing hint at plugin/hooks/cheapshot-read.sh:542, the comment at :490, site/src/content/docs/claude-code.md:167, mcp/src/run.ts:14 and mcp/src/args.ts:44. The model can see both this skill and the hook hint, so it gets two different version claims for the same error. Either change all of them or keep the old wording here.
<!-- claude-second-review -->
Second review started for 7a08144c1. One follow-up review runs per pull request; later pushes are not reviewed.
git diff <tag> origin/main -- mcp/ cannot tell the two cases apart. It compares the tag's tree with main's tree, so it always includes this PR's own changes to mcp/package.json, mcp/package-lock.json and mcp/README.md (0.1.4 on the tag, 0.1.3 on main). I checked this on the current head: with main still at f8f2928 and nothing new under mcp/, git diff 7a08144 origin/main -- mcp/ already lists those 3 files. So whenever main has moved at all, this step says "stop, rebase and release a new version", even when the new main commits never touched mcp/. That is stricter than intended rather than unsafe, but someone following the doc will either burn a version for nothing or decide the check is noise and skip it, and skipping it is the unsafe case. The check you want is what changed on main since the branch point. The three-dot form does that: git diff <tag>...origin/main -- mcp/ (same as git diff $(git merge-base <tag> origin/main) origin/main -- mcp/). It prints nothing today and only prints something when main itself changed mcp/. The first review suggested the two-dot form, so the mistake started there.
4. Only then squash-merge the PR with `--match-head-commit <head sha>`. That flag guards the PR head, not the base, so first check again that `origin/main` has not moved past the branch's base (the same `merge-base --is-ancestor` check). If it has and `git diff <tag>...origin/main -- mcp/` (three dots: only what main changed since the branch point) is not empty, npm's X.Y.Z would differ from main's source: stop, rebase and release a new version instead. When the base has not moved, the tag points at the branch commit and main gets a squash commit with the same tree. Do not push to the PR between the tag and the merge.
Second review
Weakest point: the new main-moved check in docs/release.md:40 asks the wrong question (inline comment). It uses git diff <tag> origin/main -- mcp/. That diff always includes this PR's own 0.1.4 bump, so it is never empty. On the current head, with main unchanged, it already lists mcp/package.json, mcp/package-lock.json and mcp/README.md. As written, any movement on main means "release a new version", even when nothing under mcp/ changed. That fails closed, so it is not a safety bug, but it makes people likely to ignore the check. The three-dot form git diff <tag>...origin/main -- mcp/ only shows what main changed since the branch point, which is what the step means. The first review suggested the two-dot form, so this started with that suggestion.
Earlier comments:
docs/release.md, main can move between the tag and the merge: partly resolved. Step 2 now checks git merge-base --is-ancestor origin/main <head sha> before tagging. The direction is right. Step 4 repeats the check before merging and explains that --match-head-commit only guards the head. What is still wrong is the diff condition described above.plugin/skills/cheapshot/SKILL.md:46, the version wording disagrees with the other copies: still open. No change since the first review. The skill says "0.6.0 or older, or a main build from before rules v2". The hook hint the model also sees still says "older than 0.6.5" (plugin/hooks/cheapshot-read.sh:542, plus the comment at :490). So do mcp/src/run.ts:14,24, mcp/src/args.ts:44 and plugin/tests/test-hook.sh:893. This does not change behavior: either way the advice is to rerun without the flag, and no binary can switch rules off. But the model still gets two different version claims for the same error.New issues from the new commit: none beyond the above. The commit only touches docs/release.md. It changes nothing under Redaction/, the golden cases, plugin/hooks/, plugin/scripts/ or the MCP handlers. The version and pin changes are the same as in the first review. The branch still sits directly on origin/main (f8f2928), so this release can follow the documented order safely as long as main does not move before the merge.
Verdict: safe to ship. Before merging, fix the diff command in step 4 to use three dots so the procedure is right for the next release, and either align the SKILL.md wording or revert it.
claude[bot]
ryanilano
Ships cheapshot-mcp 0.1.4 (passes
--all-ruleson every read, #42) and plugin 0.1.4 (delivers the hook and skill changes since 0.1.3, #42 #56 #61 #68, to cached 0.1.3 installs), after the v0.6.5 binary.Order (do not push to this branch after the tag): CI green on this head →
mcp-v0.1.4tagged on this head commit → npm-publish.yml publishes → merge only oncenpm view cheapshot-mcp versionprints 0.1.4.scripts/check-plugin.shrequires the pin to equalmcp/package.json, and the pin must never point at a version npm lacks, so the bump and the pin land together and only after npm has it.Changes:
mcp/package.json,mcp/package-lock.json: 0.1.4plugin/.mcp.json: pincheapshot-mcp@0.1.4plugin/.claude-plugin/plugin.json,.claude-plugin/marketplace.json: 0.1.4plugin/skills/cheapshot/SKILL.md:46: a binary without--all-rulesis "0.6.0 or older, or a main build from before rules v2" (was "older than 0.6.5")cheapshot-mcp@0.1.4snippets: 8 insite/src/content/docs/mcp.md, plusREADME.mdandmcp/README.md(ships in the npm package)site/.../claude-code.md,site/.../redaction.md: the sentences that said the plugin still pins 0.1.3 now name plugin 0.1.4docs/release.md: records v0.6.5 as shipped and replaces the old steps 1-7 with the binary order and the tag-the-PR-head mcp order used hereGates run locally: check-plugin, check-mcp, check-readme, check-formula, check-license, check-site all ok.
Did: headless inline review on fable (modelUsage: claude-fable-5-2, claude-haiku-5-5), diff f8f2928...4d7f51d, 0 findings.