mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-07 07:23:08 +02:00
> Follow-up to #11208 (merged): rebased onto master and ready for review. ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - The release channels promote artifacts along canary → nightly → beta → stable, with the happy path being promotion of an existing build > - When one or two targeted fixes are needed before a beta or stable, the only options today are waiting for the next nightly or absorbing a whole day of unrelated master changes > - The channel model was designed with an escape hatch for exactly this: short-lived candidate branches carrying only cherry-picked fixes > - This pull request implements candidate-branch beta builds with full verification, documents the stable fix path through the soak-justification gate, and adds the release captain's checklist > - The benefit is that a surgical fix can ship forward without either delay or blast radius, with its provenance recorded ## Linked Issues or Issue Description Refs #11008 — completes the fix-path half of the channel model introduced there. **Subsystem affected** Release automation: `scripts/release.sh`, `.github/workflows/release.yml`, `doc/RELEASING.md`, new `doc/RELEASE-CHECKLIST.md`, tests. **Problem or motivation** Beta promotion only accepts commits that already shipped as a nightly, and stable promotion expects a soaked beta. There is no supported way to ship one or two cherry-picked fixes between lanes: an urgent fix must wait for the nightly cycle or pull in every unrelated master change from the day. The original channel design called for candidate branches to cover this, and they were deferred from the initial implementation. **Proposed solution** Candidate-branch beta builds: cut `candidate/beta-<target>` from a nightly's source commit, cherry-pick the fixes, and dispatch `channel: beta` with the new `candidate_branch` input. Selection enforces the naming convention, rejects heads that already shipped as a beta or predate the candidate tooling, and records the cherry-picked commits in the job summary. Because candidate heads never went through a canary or nightly, publication is gated on a full `release-verify` run (promoted nightlies keep skipping re-verification). The stable fix path (`candidate/release-<target>` as `source_ref`) works through the existing soak gate: the justification requirement is the deliberate, recorded trade-off for shipping unsoaked bits, and is now documented as such. ## What Changed - `scripts/release.sh`: `--from-candidate` flag (beta only) waives the shipped-a-nightly requirement while keeping the duplicate-beta guard - `.github/workflows/release.yml`: `candidate_branch` dispatch input; candidate mode in `select_beta` (naming validation, duplicate and tooling-era rejection, cherry-pick recording); new `verify_beta_candidate` job gating candidate publishes on full verification - `doc/RELEASING.md`: beta fix-path and stable fix-path sections - `doc/RELEASE-CHECKLIST.md` (new): the release captain's checklist for all four lanes as built - Tests: dry-run fixture coverage for `--from-candidate` (waives the nightly guard, keeps the duplicate guard, rejected outside beta) and wiring tests for candidate validation plus the verification gate ## Verification - `node --test` on the four affected suites: 42 pass in total (17 + 25 across the two runs), including the 5 new tests - `bash -n` on `release.sh`; YAML parse of the workflow - After merge: exercise the path end to end the first time a real cherry-picked beta is needed — dispatch with a `candidate/beta-*` branch and confirm the summary records the picks and verification runs ## Risks - Candidate builds bypass the smoke-tested-nightly provenance by design; the compensating controls are full verification before publish, the post-publish beta smoke, the human `npm-beta` gate, and recorded cherry-picks - The stable fix path rides the existing justification mechanism rather than adding a second bypass — one recorded escape hatch, not two ## Model Used Claude Fable 5 (`claude-fable-5`, Anthropic) in Claude Code, with extended thinking and full tool use. All changes model-authored under human direction. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green (pending — will confirm before merge) - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups (pending — will confirm before merge) - [x] I will address all Greptile and reviewer comments before requesting merge
3.2 KiB
3.2 KiB
Release Checklist
The release captain's checklist for every lane. The mechanics live in
RELEASING.md; the user-facing channel guide is
CHANNELS.md.
Canary (automatic, every master push)
- the push's
Releaserun is green (verify + publish) npm view paperclipai@canary versionmatches the expected canary- Docker
:canaryupdated (the same push'sDockerrun) - a canary publish failure is a release-infra regression — fix it before trusting later promotions
Nightly (automatic, 09:00 UTC)
- the scheduled run selected the newest green canary, or skipped with a job-summary reason (no new candidate / already shipped / red smoke)
- the release smoke suite passed against the exact candidate canary before anything published
npm view paperclipai@nightly versionshows the new-nightly.Nnightly/v*tag pushed;:nightlyand:nightly-cloudimages built- on a tag-push rejection (workflows-permission error), follow the recovery commands in the job summary
To force a nightly: dispatch release.yml with channel: nightly
(optional exact canary in source_version; dry_run to preview).
Beta (manual promotion)
Happy path:
- pick the nightly to promote (empty
source_versionselects the newest) - dispatch
release.ymlwithchannel: beta - approve the
npm-betaenvironment gate npm view paperclipai@beta versionshows the new-beta.Nbeta/v*tag pushed;:betaand:beta-cloudimages built- post-publish smoke (
smoke_beta) is green
Fix path (cherry-picked candidate):
- cut
candidate/beta-<target>from the chosen nightly's source commit - cherry-pick only the required fixes; push the branch
- dispatch
channel: betawithcandidate_branch - confirm the job summary records the cherry-picked commits and that full verification ran on the candidate head
- after shipping: reconcile the fixes to
master, delete the branch
Stable (manual promotion)
- pick the beta to promote; its source commit is
source_ref - the beta has soaked ≥ 3 days with no open beta-blocker issues
- author
releases/vYYYY.MDD.P.mdon that source ref - dispatch
release.ymlwithchannel: stable(a dry run first shows the resolved version and soak state without publishing) - approve the
npm-stableenvironment gate npm view paperclipai version(dist-taglatest) shows the stablevYYYY.MDD.Ptag pushed; GitHub Release created;:latestand the versioned Docker tags built- if the soak gate was bypassed,
skip_soak_justificationcarries a real written reason (it lands in the job summary)
Fix path: candidate/release-<target> from the beta's source commit; the
soak gate will demand a justification because the exact bits were not
soaked — write one that stands on its own.
After any incomplete run
The failure playbooks in RELEASING.md cover: red canary,
skipped or failed nightly, a beta that looks bad during soak, partial
stable releases, broken latest, and rejected tag pushes. Every publish
job's summary names what completed and what remains.