← Back to Pull requests

release: cheapshot-mcp 0.1.4 and plugin 0.1.4 #71

Merged
ryanilano merged 12 files (81 lines) on Nov 29, 2026 05:30 UTC
View on GitHub
ryanilano ryanilano commented on Nov 29, 2026 05:10 UTC
Author

Ships cheapshot-mcp 0.1.4 (passes --all-rules on 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.4 tagged on this head commit → npm-publish.yml publishes → merge only once npm view cheapshot-mcp version prints 0.1.4. scripts/check-plugin.sh requires the pin to equal mcp/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.4

  • plugin/.mcp.json: pin cheapshot-mcp@0.1.4

  • plugin/.claude-plugin/plugin.json, .claude-plugin/marketplace.json: 0.1.4

  • plugin/skills/cheapshot/SKILL.md:46: a binary without --all-rules is "0.6.0 or older, or a main build from before rules v2" (was "older than 0.6.5")

  • cheapshot-mcp@0.1.4 snippets: 8 in site/src/content/docs/mcp.md, plus README.md and mcp/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.4

  • docs/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 here
  • Gates 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.

    Diff: 81 lines (+41 / -40) across 12 files Reviewer: claude[bot] Review duration: 20m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.50) × (1 − Review Confidence (0.73)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 81 lines diff across 12 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.59 · 5 substantive comment(s)
    0.59
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    73%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.264
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    7 items
    claude[bot] claude[bot] commented on Nov 29, 2026 05:10 UTC
    Bot

    Claude finished @ryanilano's task in 57s —— View job

    ---

    Review: release cheapshot-mcp 0.1.4 and plugin 0.1.4

  • Read the diff against origin/main and the release scripts and workflows

  • Checked the version and pin consistency, CI behavior, and the security-sensitive paths

  • Posted the review
  • Verdict: 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:

  • Versions match: plugin.json and marketplace.json are both 0.1.4, as check-plugin.sh requires.

  • Pin matches the package: the 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.

  • CI does not need npm to have 0.1.4: no workflow or script runs npx or npm view. CI going green before the publish is therefore correct, not a false pass.

  • Publish checks the tag: 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.

  • No stale 0.1.3 references: the remaining ones are correct as written. They are the 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.

  • Doc claims hold: 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.

    claude[bot] claude[bot] commented on code on Nov 29, 2026 05:11 UTC
    Code Review
    docs/release.md:1
    @@ -16,28 +16,28 @@ This file is now the record of how v0.5.0 went out. The steps below stay as writ
     - Release: https://github.com/all-caps-dev/cheapshot/releases/tag/v0.6.0 , tagged at `1c0876a` (PR #20). The release workflow passed in 2m21s.
     - Tap: https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at v0.6.0 with a real `sha256`, written by the tap job.
     
    -## Next: v0.6.5
    +## v0.6.5 shipped 2026-11-29
     
    -> **Do not skip step 7.** The plugin is still 0.1.3, but #42 (hook passes `--all-rules`), #56 (CHE-134), #61 and #68 (CHE-144: a timed-out read is asked about, not sent as pixels) changed its hook and skill after #43 set that number. Claude Code caches plugins by version, so a user who installed 0.1.3 earlier keeps the older hook until the plugin becomes 0.1.4. Step 7 bumps `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` to 0.1.4 in the same PR that moves the cheapshot-mcp pin; that PR is what delivers these hook fixes to cached plugin users.
    +Ryan, 2026-11-28: "i want to use smaller bumps. 0.6.5". It was prepared as 0.6.1 and shipped as 0.6.5; there is no v0.6.1 tag. The hook's mask gate checks for 0.6.1 or later, which 0.6.5 passes.
     
    -Ryan, 2026-11-28: "i want to use smaller bumps. 0.6.5". This release was prepared as 0.6.1 and ships as 0.6.5; there is no v0.6.1 tag. The hook's mask gate still checks for 0.6.1 or later, which 0.6.5 passes.
    +- Release: https://github.com/all-caps-dev/cheapshot/releases/tag/v0.6.5 , annotated tag at `f8f2928` (#70 dated the CHANGELOG on top of #57 and #62). The release workflow passed: https://github.com/all-caps-dev/cheapshot/actions/runs/46225009186
    +- Tap: https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at v0.6.5 with the real `sha256`, written by the tap job (tap commit `f53ef75`).
    +- cheapshot-mcp 0.1.4 and plugin 0.1.4 went out after the binary, in one PR, in the order below. Plugin 0.1.4 delivers the hook and skill changes made after 0.1.3 (#42, #56, #61, #68) to users with a cached 0.1.3: Claude Code caches plugins by version.
     
    -Same path as v0.6.0: no rc, no setup. The release branch (`release/v0.6.1`, #31) set `Version.swift` to `0.6.1` (#57 moves it to `0.6.5`), adds the `CHANGELOG.md` entry, bumps the plugin to 0.1.2 in `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`, and points `packaging/homebrew/cheapshot.rb` and `scripts/check-formula.sh` at v0.6.5. The formula copy here keeps the placeholder hash; the tap job writes the real `url` and `sha256` into the tap.
    +## Binary release order (every v* tag)
     
    -Merging the branch ships plugin 0.1.2 at once: the marketplace reads `./plugin` from main, so plugin users get the new hook before the tag. The hook runs with the v0.6.0 binary, but that pairing is not safe: when a screenshot reads blank, the 0.1.2 hook denies the Read and names `cheapshot mask` to the user, and a v0.6.0 `mask` has no blank-read gate (added in #29, CHE-24), so on that same blank read it writes a copy that is the unmasked original and allows it for Read. Ryan chose on 2026-11-28 to merge now and hold the tag until the redaction-gap fixes land, so this window runs from the merge until users have a v0.6.5 binary. The 0.6.5 Security section in `CHANGELOG.md` carries the upgrade warning. Plugin 0.1.3 closes the gap in the hook and the plugin skill: the hook names `cheapshot mask` only when the binary's `--json` `version` is 0.6.1 or later, and otherwise tells the user to upgrade first (unknown counts as old); the skill tells the model to run mask only when the hook named it. The hook also refuses a mask allow entry when `cheapshot --version` is below 0.6.1, so, while the hook's own `cheapshot` is below 0.6.1, a mask run anyway cannot get its copy read.
    +1. On main, change `## X.Y.Z (unreleased)` in `CHANGELOG.md` to the UTC date the tag will carry, in a one-line PR, and merge it. Nothing checks this date against the tag, so tag the same UTC day.
    +2. Tag the merge commit: `git tag -a vX.Y.Z -m "cheapshot X.Y.Z" && git push origin vX.Y.Z`.
    +3. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/release.yml goes green; the release has `cheapshot-vX.Y.Z-macos.zip` and its `.sha256`; https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at vX.Y.Z with a real `sha256` and the tap job log has no `Skipping:`; `brew upgrade cheapshot && cheapshot --version` reports X.Y.Z.
     
    -1. RYAN: merge the release PR.
    -2. AGENT: on main, change `## 0.6.5 (unreleased)` in `CHANGELOG.md` to the UTC date the tag will carry, in a one-line PR (or fold it into the release PR just before merge).
    -3. RYAN: tag from main: `git tag v0.6.5 && git push origin v0.6.5`.
    -4. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/release.yml goes green; https://github.com/all-caps-dev/cheapshot/releases/tag/v0.6.5 has `cheapshot-v0.6.5-macos.zip` and its `.sha256`; https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at v0.6.5 with a real `sha256` and the tap job log has no `Skipping:`; `brew upgrade cheapshot && cheapshot --version` reports 0.6.5.
    +## cheapshot-mcp release order (every mcp-v* tag)
     
    -cheapshot-mcp changed in #42 (it passes `--all-rules` on every read), but `mcp/package.json` and the plugin's pin in `plugin/.mcp.json` are still 0.1.3, the version already on npm. Ryan chose to bump both at release time. In this order:
    +`scripts/check-plugin.sh` (CI) requires `plugin/.mcp.json` to pin exactly the version in `mcp/package.json`, and a pin to a version npm does not have yet breaks the plugin's MCP server. So the bump and the pin cannot land on main separately, and neither can land before npm has the version. Used for 0.1.4 (Ryan's pick, 2026-11-29: "Tag the PR head, merge after npm"):
     
    -5. RYAN: bump `mcp/package.json` to `0.1.4` in a one-line PR and merge it.
    -6. RYAN: tag from main: `git tag mcp-v0.1.4 && git push origin mcp-v0.1.4`. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/npm-publish.yml goes green and https://www.npmjs.com/package/cheapshot-mcp shows 0.1.4 with provenance.
    -7. RYAN: only then, in one PR: move the pin in `plugin/.mcp.json` to `cheapshot-mcp@0.1.4` and bump the plugin to 0.1.4 in both `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` (the bump is what makes cached 0.1.3 installs pick up the hook from #42, #56, #61 and #68). A pin to a version npm does not have yet breaks the plugin's MCP server.
    -
    -Until step 7 lands, plugin users run cheapshot-mcp 0.1.3, which does not pass `--all-rules`: a preset or switch in `rules.json` then thins out what an agent sees through the MCP tools. A cached plugin 0.1.3 can also still run a hook from before #42 and #68, which does not pass `--all-rules` either, can send a timed-out PDF or slow image to the model as pixels, and can pass a PDF as pixels when it cannot make its temp file while `CHEAPSHOT_RULES` is set (CHE-134, #56).
    +1. One PR moves together: `mcp/package.json` and `mcp/package-lock.json`, the pin in `plugin/.mcp.json`, the plugin version in `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` (when the hook or skill changed since the last plugin version), and the `cheapshot-mcp@X.Y.Z` snippets in `README.md`, `mcp/README.md` and `site/src/content/docs/mcp.md`.
    +2. When CI is green on the PR head, tag that head commit, not main: `git tag -a mcp-vX.Y.Z -m "cheapshot-mcp X.Y.Z" <head sha> && git push origin mcp-vX.Y.Z`. `npm-publish.yml` checks only that the tag matches `mcp/package.json`, builds that commit and publishes with provenance.
    +3. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/npm-publish.yml goes green and `npm view cheapshot-mcp version` prints X.Y.Z.
    +4. Only then squash-merge the PR with `--match-head-commit <head sha>`. The tag keeps pointing at the branch commit; main gets a squash commit with the same tree. Do not push to the PR between the tag and the merge.

    "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.

    claude[bot] claude[bot] commented on code on Nov 29, 2026 05:11 UTC
    Code Review
    plugin/skills/cheapshot/SKILL.md:1
    @@ -43,7 +43,8 @@ reads every page.
     Always pass `--all-rules` when you run cheapshot from Bash for yourself: it ignores any preset
     or switch in the user's rules.json, so you get every built-in redaction rule, the same as the
     Read hook and the MCP server. If the binary answers `cheapshot: unknown option --all-rules`, it
    -is older than 0.6.5 and cannot switch rules off at all: run the same command without the flag.
    +is 0.6.0 or older, or a main build from before rules v2, and cannot switch rules off at all: run

    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.

    github-actions[bot] github-actions[bot] commented on Nov 29, 2026 05:19 UTC
    Bot

    <!-- claude-second-review -->
    Second review started for 7a08144c1. One follow-up review runs per pull request; later pushes are not reviewed.

    claude[bot] claude[bot] commented on code on Nov 29, 2026 05:20 UTC
    Code Review
    docs/release.md:1
    @@ -16,28 +16,28 @@ This file is now the record of how v0.5.0 went out. The steps below stay as writ
     - Release: https://github.com/all-caps-dev/cheapshot/releases/tag/v0.6.0 , tagged at `1c0876a` (PR #20). The release workflow passed in 2m21s.
     - Tap: https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at v0.6.0 with a real `sha256`, written by the tap job.
     
    -## Next: v0.6.5
    +## v0.6.5 shipped 2026-11-29
     
    -> **Do not skip step 7.** The plugin is still 0.1.3, but #42 (hook passes `--all-rules`), #56 (CHE-134), #61 and #68 (CHE-144: a timed-out read is asked about, not sent as pixels) changed its hook and skill after #43 set that number. Claude Code caches plugins by version, so a user who installed 0.1.3 earlier keeps the older hook until the plugin becomes 0.1.4. Step 7 bumps `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` to 0.1.4 in the same PR that moves the cheapshot-mcp pin; that PR is what delivers these hook fixes to cached plugin users.
    +Ryan, 2026-11-28: "i want to use smaller bumps. 0.6.5". It was prepared as 0.6.1 and shipped as 0.6.5; there is no v0.6.1 tag. The hook's mask gate checks for 0.6.1 or later, which 0.6.5 passes.
     
    -Ryan, 2026-11-28: "i want to use smaller bumps. 0.6.5". This release was prepared as 0.6.1 and ships as 0.6.5; there is no v0.6.1 tag. The hook's mask gate still checks for 0.6.1 or later, which 0.6.5 passes.
    +- Release: https://github.com/all-caps-dev/cheapshot/releases/tag/v0.6.5 , annotated tag at `f8f2928` (#70 dated the CHANGELOG on top of #57 and #62). The release workflow passed: https://github.com/all-caps-dev/cheapshot/actions/runs/46225009186
    +- Tap: https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at v0.6.5 with the real `sha256`, written by the tap job (tap commit `f53ef75`).
    +- cheapshot-mcp 0.1.4 and plugin 0.1.4 went out after the binary, in one PR, in the order below. Plugin 0.1.4 delivers the hook and skill changes made after 0.1.3 (#42, #56, #61, #68) to users with a cached 0.1.3: Claude Code caches plugins by version.
     
    -Same path as v0.6.0: no rc, no setup. The release branch (`release/v0.6.1`, #31) set `Version.swift` to `0.6.1` (#57 moves it to `0.6.5`), adds the `CHANGELOG.md` entry, bumps the plugin to 0.1.2 in `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`, and points `packaging/homebrew/cheapshot.rb` and `scripts/check-formula.sh` at v0.6.5. The formula copy here keeps the placeholder hash; the tap job writes the real `url` and `sha256` into the tap.
    +## Binary release order (every v* tag)
     
    -Merging the branch ships plugin 0.1.2 at once: the marketplace reads `./plugin` from main, so plugin users get the new hook before the tag. The hook runs with the v0.6.0 binary, but that pairing is not safe: when a screenshot reads blank, the 0.1.2 hook denies the Read and names `cheapshot mask` to the user, and a v0.6.0 `mask` has no blank-read gate (added in #29, CHE-24), so on that same blank read it writes a copy that is the unmasked original and allows it for Read. Ryan chose on 2026-11-28 to merge now and hold the tag until the redaction-gap fixes land, so this window runs from the merge until users have a v0.6.5 binary. The 0.6.5 Security section in `CHANGELOG.md` carries the upgrade warning. Plugin 0.1.3 closes the gap in the hook and the plugin skill: the hook names `cheapshot mask` only when the binary's `--json` `version` is 0.6.1 or later, and otherwise tells the user to upgrade first (unknown counts as old); the skill tells the model to run mask only when the hook named it. The hook also refuses a mask allow entry when `cheapshot --version` is below 0.6.1, so, while the hook's own `cheapshot` is below 0.6.1, a mask run anyway cannot get its copy read.
    +1. On main, change `## X.Y.Z (unreleased)` in `CHANGELOG.md` to the UTC date the tag will carry, in a one-line PR, and merge it. Nothing checks this date against the tag, so tag the same UTC day.
    +2. Tag the merge commit: `git tag -a vX.Y.Z -m "cheapshot X.Y.Z" && git push origin vX.Y.Z`.
    +3. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/release.yml goes green; the release has `cheapshot-vX.Y.Z-macos.zip` and its `.sha256`; https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at vX.Y.Z with a real `sha256` and the tap job log has no `Skipping:`; `brew upgrade cheapshot && cheapshot --version` reports X.Y.Z.
     
    -1. RYAN: merge the release PR.
    -2. AGENT: on main, change `## 0.6.5 (unreleased)` in `CHANGELOG.md` to the UTC date the tag will carry, in a one-line PR (or fold it into the release PR just before merge).
    -3. RYAN: tag from main: `git tag v0.6.5 && git push origin v0.6.5`.
    -4. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/release.yml goes green; https://github.com/all-caps-dev/cheapshot/releases/tag/v0.6.5 has `cheapshot-v0.6.5-macos.zip` and its `.sha256`; https://github.com/all-caps-dev/homebrew-tap/blob/main/Formula/cheapshot.rb points at v0.6.5 with a real `sha256` and the tap job log has no `Skipping:`; `brew upgrade cheapshot && cheapshot --version` reports 0.6.5.
    +## cheapshot-mcp release order (every mcp-v* tag)
     
    -cheapshot-mcp changed in #42 (it passes `--all-rules` on every read), but `mcp/package.json` and the plugin's pin in `plugin/.mcp.json` are still 0.1.3, the version already on npm. Ryan chose to bump both at release time. In this order:
    +`scripts/check-plugin.sh` (CI) requires `plugin/.mcp.json` to pin exactly the version in `mcp/package.json`, and a pin to a version npm does not have yet breaks the plugin's MCP server. So the bump and the pin cannot land on main separately, and neither can land before npm has the version. Used for 0.1.4 (Ryan's pick, 2026-11-29: "Tag the PR head, merge after npm"):
     
    -5. RYAN: bump `mcp/package.json` to `0.1.4` in a one-line PR and merge it.
    -6. RYAN: tag from main: `git tag mcp-v0.1.4 && git push origin mcp-v0.1.4`. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/npm-publish.yml goes green and https://www.npmjs.com/package/cheapshot-mcp shows 0.1.4 with provenance.
    -7. RYAN: only then, in one PR: move the pin in `plugin/.mcp.json` to `cheapshot-mcp@0.1.4` and bump the plugin to 0.1.4 in both `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` (the bump is what makes cached 0.1.3 installs pick up the hook from #42, #56, #61 and #68). A pin to a version npm does not have yet breaks the plugin's MCP server.
    -
    -Until step 7 lands, plugin users run cheapshot-mcp 0.1.3, which does not pass `--all-rules`: a preset or switch in `rules.json` then thins out what an agent sees through the MCP tools. A cached plugin 0.1.3 can also still run a hook from before #42 and #68, which does not pass `--all-rules` either, can send a timed-out PDF or slow image to the model as pixels, and can pass a PDF as pixels when it cannot make its temp file while `CHEAPSHOT_RULES` is set (CHE-134, #56).
    +1. One PR moves together: `mcp/package.json` and `mcp/package-lock.json`, the pin in `plugin/.mcp.json`, the plugin version in `plugin/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` (when the hook or skill changed since the last plugin version), and the `cheapshot-mcp@X.Y.Z` snippets in `README.md`, `mcp/README.md` and `site/src/content/docs/mcp.md`.
    +2. When CI is green on the PR head, check the branch still sits on the current main (`git fetch && git merge-base --is-ancestor origin/main <head sha>`; if not, rebase and wait for CI again), then tag that head commit, not main: `git tag -a mcp-vX.Y.Z -m "cheapshot-mcp X.Y.Z" <head sha> && git push origin mcp-vX.Y.Z`. `npm-publish.yml` checks only that the tag matches `mcp/package.json`, builds that commit and publishes with provenance.
    +3. Verify: https://github.com/all-caps-dev/cheapshot/actions/workflows/npm-publish.yml goes green and `npm view cheapshot-mcp version` prints X.Y.Z.
    +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/` 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.

    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.
    

    claude[bot] claude[bot] commented on Nov 29, 2026 05:20 UTC
    Bot

    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.

    Reviewers
    Assignees
    ryanilano ryanilano
    Labels
    risk: low confidence: 73.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.5% (MEDIUM) · Higher = larger blast radius
    50.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 73.2% · Lower = rushed or shallow review
    73.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 13.5% · Safe to merge
    13.5%