Skip to content

fix(release-notes): stop inventing edition scoping in generated notes - #445

Merged
Dumbris merged 1 commit into
mainfrom
fix/release-notes-prompt-no-edition-claims
May 2, 2026
Merged

Dumbris merged 1 commit into
mainfrom
fix/release-notes-prompt-no-edition-claims

Conversation

@Dumbris

@Dumbris Dumbris commented May 2, 2026

Copy link
Copy Markdown
Member

Summary

The release-notes generator (scripts/generate-release-notes.sh) feeds commit subjects to Claude with no edition context, and Claude has been inventing edition annotations on its own. The most recent miss is v0.29.2:

Note: All changes in this release apply to the Teams edition only.

— wrong. All three PRs in v0.29.2 (#442, #443, #444) modify shared code (internal/runtime/tool_quarantine.go, frontend/src/stores/servers.ts, frontend/src/views/{Activity,AgentTokens,Servers}.vue). None of those files have //go:build server and none live under internal/teams/, so the fixes ship in both editions.

This isn't a one-off — same pattern in v0.29.0 ("primarily affect the Personal Edition") and v0.29.1 (a "Personal Edition (macOS)" header). The model is filling in plausible-sounding edition framing because the prompt never tells it not to.

Fix

scripts/generate-release-notes.sh — extend the prompt with:

  1. A one-paragraph explanation of the two-edition build model (Personal default vs Server build tag, shared code in internal/runtime/, internal/server/, frontend/, etc.) so the model doesn't have to guess from training data.
  2. Explicit "Edition scoping rules":
    • Don't add edition-only notes unless a commit subject explicitly says so ((server), (teams), server-only, personal-only).
    • Don't speculate from subject keywords (ui, runtime, oauth, dashboard, etc.) — shared code lands in both.
    • Use "Server edition", not "Teams edition" (Teams is an internal package name).
    • When unsure, omit edition labels — default assumption is BOTH editions.

No script logic changed; only the heredoc inside build_prompt().

Out of scope

The v0.29.2 release body has already been hand-corrected (gh release edit); this PR only prevents the next release from making the same mistake.

Test plan

  • bash -n scripts/generate-release-notes.sh — syntax clean
  • Smoke-run before next tag: ANTHROPIC_API_KEY=... ./scripts/generate-release-notes.sh v0.29.2 (or whichever tag is being prepped) and confirm no spurious edition annotations slip in. If a commit explicitly does target one edition, confirm the label still renders.

🤖 Generated with Claude Code

The release-notes generator (scripts/generate-release-notes.sh) feeds
commit subjects to Claude with no edition context, and Claude has been
inventing edition annotations from thin air:

- v0.29.0: "*Note: The onboarding improvements primarily affect the
  **Personal Edition** desktop application.*"
- v0.29.1: "**Personal Edition (macOS)**" header
- v0.29.2: "*Note: All changes in this release apply to the Teams
  edition only.*" — wrong, all three PRs (#442, #443, #444) modify
  shared code (internal/runtime/, frontend/) and ship in both editions

This patch updates the prompt to:

1. Briefly explain the two-edition build model so the model doesn't have
   to guess from training data.
2. Forbid edition-only annotations unless a commit subject explicitly
   says so (e.g. contains "(server)", "(teams)", "server-only").
3. Forbid speculation from subject keywords (ui/runtime/oauth/etc).
4. Use "Server edition", not "Teams edition" — Teams is an internal
   package name.
5. Default to BOTH editions when unsure.

The v0.29.2 release body has been hand-corrected separately.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0355fd
Status: ✅  Deploy successful!
Preview URL: https://f502b098.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-release-notes-prompt-no.mcpproxy-docs.pages.dev

View logs

@Dumbris
Dumbris merged commit 4ba237d into main May 2, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants