Files
PaperClipAI/doc/CHANNELS.md
T
638530f273 fix(cli): support all release channels in update (#11795)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The managed CLI lets operators follow a release channel during
updates
> - Paperclip publishes stable, beta, nightly, and canary channels
> - The update command only let users select stable or canary
> - A default update also changed recorded beta and nightly installs to
stable
> - This pull request adds all four channels to the update command and
update notice
> - The benefit is that each managed install stays on the channel that
the operator selected

## Linked Issues or Issue Description

**What happened?**

`paperclipai update` only accepted `--latest` and `--canary`. It did not
accept `--beta` or `--nightly`. A default update mapped every recorded
channel except canary to `latest`. The update notice used the same
two-channel rule.

**Expected behavior**

The command must accept all four published channel selectors. A default
update must use the moving channel in the install manifest. The update
notice must check the same channel.

**Steps to reproduce**

1. Record `beta` or `nightly` as the managed install channel.
2. Run `paperclipai update` without a channel flag.
3. Observe that the command resolves `paperclipai@latest` instead of the
recorded channel.

**Paperclip version or commit**

Commit `e1ce7a553c280ef3d2b9ed99e0149afc23b14275`.

**Deployment mode**

This bug is not specific to a deployment mode.

**Installation method**

Managed CLI install.

**Additional context**

The managed update workflow was added in #10045. I found no duplicate
issue or pull request for this channel gap.

## What Changed

- Added `--beta` and `--nightly` to `paperclipai update` and
`paperclipai upgrade`.
- Expanded the install manifest channel type and kept the recorded
moving channel during a default update.
- Made update notices use the recorded channel and made the notice cache
channel-aware.
- Added regression tests and updated the channel, CLI, and installation
documents.

## Verification

- `pnpm exec vitest run cli/src/__tests__/update-command.test.ts
cli/src/__tests__/update-notice.test.ts` — 2 files and 18 tests passed.
- `pnpm --filter paperclipai typecheck` passed.
- `pnpm --filter paperclipai build` passed.
- `pnpm paperclipai update --help` showed `--latest`, `--beta`,
`--nightly`, and `--canary`.

## Risks

- Low risk. The change adds accepted manifest values and command flags.
Existing latest, canary, and pinned installs keep their current
behavior.
- Old notice cache files have no channel field. They remain valid for
the latest channel and refresh for other channels.

> For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and
discuss it in `#dev` before opening the PR. Feature PRs that overlap
with planned core work may need to be redirected — check the roadmap
first. See `CONTRIBUTING.md`.

## Model Used

- OpenAI Codex, GPT-5 family. The runtime does not expose the exact
deployment ID or context window. The agent used reasoning, repository
tools, shell execution, and test execution.

## 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
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

Co-authored-by: Dev Agent <dev@paperclip.ing>
Co-authored-by: Paperclip <noreply@paperclip.ing>
Co-authored-by: commitperclip[bot] <284812584+commitperclip[bot]@users.noreply.github.com>
2026-12-04 11:30:05 -08:00

4.3 KiB

Release Channels

Paperclip ships on four channels. Pick the one that matches your appetite for freshness versus stability — switching is just a matter of which version you install.

Channel What it is Updates npm Docker
stable The recommended release every week or two paperclipai@latest ghcr.io/paperclipai/paperclip:latest
beta Release candidates soaking before stable when promoted paperclipai@beta ghcr.io/paperclipai/paperclip:beta
nightly Yesterday's merges, smoke-tested as a unit once a night paperclipai@nightly ghcr.io/paperclipai/paperclip:nightly
canary Every merge to master, as it happens many times a day paperclipai@canary ghcr.io/paperclipai/paperclip:canary

Choosing a channel

stable is the right choice for almost everyone. It only moves when a release has been explicitly vetted and promoted by a maintainer, and every stable must first soak as a beta for at least 3 days.

beta is for people who want the next stable early. A beta is a nightly that a maintainer hand-picked and explicitly promoted behind an approval gate, and it is re-smoked after publishing. Betas are the release candidates: what you run on beta today is what stable becomes a few days later.

nightly is for people who want new features quickly but not the churn of tracking every merge. Once a night, the newest master build that published green is run through the full release smoke suite (real Docker container, real onboarding flow, browser-driven). Only if that passes does it ship as the nightly. If smoke fails, there is no nightly that night — the channel never ships a build that failed its checks.

canary is the bleeding edge: it publishes on every merge to master. It is primarily the lane that continuously exercises our release automation, but it's available to anyone who wants the newest bits and accepts the risk.

Installing from a channel

npm / npx:

npx paperclipai@latest onboard    # stable
npx paperclipai@beta onboard
npx paperclipai@nightly onboard
npx paperclipai@canary onboard

Docker:

docker pull ghcr.io/paperclipai/paperclip:latest    # stable
docker pull ghcr.io/paperclipai/paperclip:beta
docker pull ghcr.io/paperclipai/paperclip:nightly
docker pull ghcr.io/paperclipai/paperclip:canary

Every image is also published as :sha-<short-sha> for exact pinning, and stable images additionally get :YYYY.MDD.P version tags.

Seeing where you are

npx paperclipai channels

prints every channel with the version it currently resolves to, the install command for each, and which channel your install follows (with --json for scripting).

Switching channels

For a managed CLI install, use paperclipai update with --latest, --beta, --nightly, or --canary to switch to any published channel. Later updates without a channel flag stay on the recorded channel. Exact versions selected with --version remain pinned.

For an ephemeral npm / npx install, channel choice comes from the dist-tag in the install command. Moving forward (stable → nightly) is always safe. Moving backward (nightly → stable) can mean running an older schema than your data was created with — treat a downgrade like a restore and keep a backup of your data directory before switching down.

Reading version strings

The version tells you which channel a build came from:

  • 2026.807.0 — stable, published Aug 7 2026
  • 2026.807.0-beta.0 — beta promoted on Aug 7 2026
  • 2026.807.0-nightly.0 — nightly cut on Aug 7 2026
  • 2026.807.0-canary.4 — the fifth canary for the Aug 7 line

Each promotion republishes the exact source commit of the previous lane's build: a nightly shares its source SHA with a canary, and a beta with a nightly. The version dates the promotion, and the shared SHA is visible in the release job summaries and as git tags on the commit.

One quirk to be aware of: npm's semver ordering compares prerelease names alphabetically, so -beta.N sorts below -canary.N, which sorts below -nightly.N for the same base version. This never matters when installing by dist-tag (the recommended way), only if you write version ranges by hand.

For maintainers

The publishing mechanics, promotion flow, and release checklist live in RELEASING.md.