Repository navigation
fix(release-notes): stop inventing edition scoping in generated notes - #445
Merged
Merged
Conversation
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]>
Deploying mcpproxy-docs with
|
| 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 |
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
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:— 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 serverand none live underinternal/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:internal/runtime/,internal/server/,frontend/, etc.) so the model doesn't have to guess from training data.(server),(teams),server-only,personal-only).ui,runtime,oauth,dashboard, etc.) — shared code lands in both.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 cleanANTHROPIC_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