Guided release: prepare the version bump and CHANGELOG cut itself #114
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 640 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.387
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #114"
general
weight: 0.35
holdenk
Summary
The guided release scripts now do docs/RELEASE.md Step 1.1 (bump
pubspec.yamland cut the CHANGELOG) when you give them a new version. Before, they listed what to do by hand and waited.The scripts also offer this when you answer "release a new version" at the prompt, and whenever
origin/mainis not ready to tag.Changes
scripts/release-lib.sh-
--new-tag [X.Y.Z](also--new-tag=X.Y.Z; a leadingvis accepted).--from-tagtogether with a version is refused.- When
origin/mainis ready, the script now offers three choices: release it as is, release a new version, or stop. Before, the only options were yes or abort.-
prepare_release_commit: makes a scratch worktree oforigin/mainon a newrelease/vX.Y.Zbranch. It setspubspec.yaml's version, keeping+Nand the rest of the line. It moves the entries under## Unreleased/## [Unreleased]into a new## [X.Y.Z] - <today>section, drops a "Nothing yet" placeholder and leaves the Unreleased heading empty. It then shows the diff, offers$EDITORfor the notes, and commits. Your own checkout is never touched. If you decline, the worktree and branch it made are removed.-
open_release_pr: asks first, then pushes the branch and opens a PR intomainwithgh pr create. Merging stays with the human. The run then waits, re-checksorigin/main, and carries on tagging the new version.- The prep refuses:
- a version that is not above every
v*tag, or is already tagged. The highest tag is picked withversion_gt, not git'sv:refnamesort, which ranks-rc1above the release;- a CHANGELOG that already has an
[X.Y.Z]section, or has no Unreleased heading;- an empty Unreleased section. In that case it offers to write the entries first, in
$EDITORor by hand.- If the release branch is already on the remote (a PR not yet merged), the run says so and waits instead of making a second one.
- New pure helpers:
version_valid,version_gt,version_bump,pubspec_set_version,changelog_cut.- Fixes:
-
case "$(choose …)"hid adieinside the substitution, so end of input fell through as if answered. The choice is now captured into a variable first, in both places.-
ask_requiredandask_versionnow stop at end of input. Before, under a caller's|| exit 1, they looped forever.scripts/release-lib-selftest.sh:- covers the helpers: version ordering, both heading styles, placeholders, link refs, no extra blank line at EOF, and each refusal code;
- covers end of input at the prompts, and an rc tag next to its release;
- runs an end-to-end prep and PR against the throwaway origin with a stubbed
gh: branch pushed, only the two files changed, worktree removed, checkout untouched;- checks that a declined prep leaves nothing behind.
docs/RELEASE.md, the usage lines in both entry scripts, and the CHANGELOG are updated.Testing
./scripts/release-lib-selftest.shand./scripts/ci-shellcheck.shpass.resolve_new_tagagainst a throwaway origin. Input: choose "new version", 0.1.0, prepare, commit, push. Output: arelease/v0.1.0commit that changes onlypubspec.yaml(0.0.0+1→0.1.0+1) andCHANGELOG.md../scripts/test.sh): all checks passed, 4521 Flutter tests, and every Rust suite. That run was on the first commit. The second commit touches onlyrelease-lib.shand its selftest, and both pass again.Related Issues
Follows the guided release scripts PR (liberatedbread/liberatedbread-mobile#111) and liberatedbread/liberatedbread-mobile#112.
---
_Generated by Claude Code_
<!-- codesmith:footer -->
---
<a href="`
https://backend.blacksmith.sh/track/enable-autofix?expires=1797306094&installation_model_id=429530&pr_number=114&ref=codesmith_pr_footer&repository=liberatedbread%2Fliberatedbread-mobile&return_to=https%3A%2F%2Fgithub.com%2Fliberatedbread%2Fliberatedbread-mobile%2Fpull%2F114&signature=8fc626372d64db2cb974ab48ee788c953628e8a85094ae88b83e36142d74222f"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28">`</picture></a><sup><a href="https://app.blacksmith.sh/liberatedbread/codesmith/liberatedbread-mobile/pr/114?autoLogin=true&ref=codesmith_pr_footer">Open in [code]smith</a> · Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->