Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Release?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/inoio-release)
---
name: release
description: "Cut an agents-sandbox release."
disable-model-invocation: true
---
# Release
Cut a release of `agents-sandbox`. `release` prepares the release end to end, then stops at a
sign-off gate; nothing reaches a remote until the maintainer approves. One release per invocation,
and the maintainer decides the version and who pushes the tag.
There are two flows. A **micro** release (a patch: only fixes) tags the current
`release/<major>.<minor>` branch and starts with step 0. A **minor** (or major) release tags `main`,
advances the maintenance line, and starts with step 1.
## Reference docs
- [RELEASE-NOTES.md](RELEASE-NOTES.md): the release-note structure and how to pull contributors,
including first-time ones.
- [NON-GO-DEPS.md](NON-GO-DEPS.md): the pinned non-Go tool versions (dependabot does not manage
them) and the node `<25` rule.
## The one hard rule
The release's own artifacts stay local until the maintainer approves: steps 1-4 reach no remote, and
step 5 is a gate — present the release and wait for an explicit go. Land the changelog (6), push the
tag (7), and set the notes (8) only after the maintainer approves, and only for the version they
chose. On abort, stop.
Step 0 is the one exception, and it is not part of the release's artifacts. Its audit
(`scripts/backport-audit.sh`) and `git cherry` checks are local and read-only, but the port it may call
for (`scripts/open-backport-pr.sh <n>`) pushes a branch and opens a PR — an ordinary fix PR against the
release branch, subject to review and merge like any other, not a release artifact. Opening it does not
push a tag, land the changelog, or otherwise publish the release, so it needs no step-5 approval.
## Flow
### 0. Backport precondition (a micro release)
A micro's fixes are authored on `main` and cherry-picked down onto the current release branch, so the
branch must hold nothing `main` lacks. Run this **before** authoring the release's own changelog/tag
commit (step 6): that is *this* micro's one branch-local commit and so is never in scope here. It is
not the branch's only one — every earlier micro already assembled a changelog and tagged the branch,
and its release commit stays on the line.
Run `git fetch origin main 'refs/heads/release/*:refs/remotes/origin/release/*'` first: the audit
resolves a merged PR through its merge commit and the release branch's patch-ids from the local
clone, so a clone whose refs are stale fails the run (exit 2) instead of answering it.
Run `scripts/backport-audit.sh`. It exits non-zero when a merged `needs-backport` PR on `main` has a
commit missing from the latest `release/<major>.<minor>` line, and reports each fix together with its
open backport PR, if any. Present the outstanding backports — the in-flight PRs and the unported
fixes — and ask whether to include them. A fix may ship while other ports are pending: never hold up a
release, in particular an urgent security fix, for unrelated backports. For an unported PR,
`scripts/open-backport-pr.sh <n>` performs the port (cherry-pick down, open the PR against the
branch); let it merge, then rerun the audit. Outstanding debt is mirrored in the pinned
`[Tracker] Missing backports` issue.
A porter run that hits a real conflict aborts (`exit 1`, "Port it by hand and rerun") and does not
resume, so finish that port by hand:
- Resolve and `git cherry-pick --continue`; the `-x` trailer is kept.
- A source commit may be **main-only** — it touches a subsystem the line does not carry, or the fix's
own message says it was kept out so the pick stays clean. `git cherry-pick --skip` it; the audit's
`missing:<n>` is a patch-id count, not a target, and a merged backport PR that references the fix
clears the finding even when its patch-id differs.
- Push the branch, open the PR with the porter's shape (`--base release/<major>.<minor>`, one line per
ported commit, `Backport of #<n>.`), rename the carried `changelog.d/<source number>.*.md` to the
backport PR's number, append a `Backport of #<n> to the <line> line.` line, and push that second
commit.
Then run `git cherry main release/<major>.<minor>` as the wrong-direction tripwire. Every commit on the
branch must be patch-equivalent to a `main` commit; a `+` line is a branch commit `main` lacks. A
mature line prints many `+` lines, not one per micro, and each falls into one of four classes:
- **a prior micro's release commit** — `chore(release): promote <x>.<y>.<z>`, one per shipped micro.
- **a porter fragment-rename commit** — `chore(changelog): name the backported fragment for this PR`,
one per backport PR, branch-local by the porter's design.
- **an adapted port** — a conflict resolved differently, or a test seam adapted, so a different
patch-id.
- **a fix or test commit authored straight on the branch** — permitted, but debt to clear by getting
its patch onto `main`.
Surface each `+` line for the maintainer to confirm "adapted, not missed" and proceed.
Completion: the audit is clean (or the maintainer chose to ship without the outstanding backports), and
every `+` line is accounted for as one of the four classes above.
### 1. Curate the changelog
Assemble `changelog.d/` into the changelog, then curate. Read every fragment in `changelog.d/` (the
ignored `README.md` aside) together with the legacy `[Unreleased]` section of `CHANGELOG.md`, and turn
them into the entries a reader wants. Read from the branch that will be tagged (step 7): `main` for a
minor or major release, `release/<major>.<minor>` for a micro release, where the line's fixes and
their fragments live. Order the fragments by section (`Added`, `Changed`, `Deprecated`, `Docs`,
`Fixed`) and, within a section, by filename ascending, per
[`specs/ci/ci-pipeline.md`](../../../.operator-shared/specs/ci/ci-pipeline.md).
- Use one heading per section in the order `Added`, `Changed`, `Deprecated`, `Docs`, `Fixed`. Merge duplicate headings
if the section accumulated them, and put documentation-only entries under `Docs`. Do not invent other headings.
- Drop negligible entries — internal churn a user of the tool would never notice. Keep the meaningful `Internal:` lines:
state shape and migrations, reliability or error-surfacing changes, and rebuild/caching behaviour. Drop dev-tooling,
CI, test-infrastructure, and pure-refactor churn.
- Rewrite each keeper as a human-readable line: lead with the behaviour change, not the implementation. Trim mechanism
detail but keep every user-visible fact — flags, paths, commands, numbers, and issue links.
- Group related entries under the heading that fits; one user-visible change reads as one line. Sort by user impact per
section, and lead `Added` and `Changed` with the release's headline stories.
- Write for a user of the tool, in the voice of [`STYLEGUIDE.md`](../../../STYLEGUIDE.md): "sandbox" and "agent", not
"VM" or "harness", and no filler words.
Completion: every `[Unreleased]` entry is kept, rewritten, or dropped, and the section reads clean
top to bottom.
### 2. Verify
Run `make check` and confirm it passes.
Run `make test-hermetic` and confirm it passes on `main`. It is the strict hermetic envelope (a temp copy, a
scrubbed environment, the sentinel pass, and a loopback-only network namespace; needs Linux unprivileged user
namespaces).
A micro tags an older line, which cannot inherit this: `make test-hermetic` **fails on `release/0.7`** — its
strict netns tier reads files a `chmod` should deny, because the permission fixtures were repaired on `main`
after that line was cut and the line's `ci.yml` carries no `hermetic` job. Whether the envelope gates the
release is the **tagged line's** `release.needs`, not a constant (`main`:
`[tag-guard, lint, test, integration, integration-podman, hermetic]`; `release/0.7`:
`[lint, test, integration, integration-podman]`). So on an older line a red local envelope is expected, not a
release blocker — that line's tag CI is the authority.
Confirm the last `fuzz` workflow run on `main` is green (`gh run list --workflow=fuzz.yml --branch main --limit 1`), or
dispatch one (`gh workflow run fuzz.yml -f fuzztime=15m`) and wait for it. It runs nightly and on merges that touch the
fuzzed parsers, needs no VM or docker, and nothing is gated on it: a red run means a crasher to fix and commit as a
corpus seed before tagging.
`make test-integration` and `make test-msb` are host-only steps. The integration suite builds a real
runner image and needs a normal host docker daemon (microsandbox's egress-inspection CA breaks
in-image downloads, so it does not run inside the agents-sandbox VM); the `test-msb` harness smoke
suite starts every agent to its TUI in a real VM and needs KVM, a docker daemon, and network. Run both
on the host; the tag-triggered CI runs the integration suite before the release job.
The advisory `mutation` workflow already sweeps each code change at merge time, so a release-time
sweep is optional. Run `make mutation` only when you want a cross-PR view; it is never a gate. By
default it mutates the whole module but only the lines changed since the last release tag. Triage any
LIVED mutant — strengthen the test so the mutant now fails, or record the reason in the source next to
the mutant with `// gomutants:disable <TYPE> reason="..."` — and leave one you do not take on as `#268`
debt, not a release blocker. If you do strengthen tests, that is the one write in steps 1-4: nothing
reaches a remote until step 5.
Completion: `make check` green, `make test-hermetic` green on `main` (noted as expected-red on an older
line), the last `main` fuzz run green, and the host-only integration and harness-smoke steps run or noted
for the maintainer.
### 3. Choose a version
Pick the next version by SemVer from the curated content: a breaking change bumps the major, a new
feature the minor, fixes the patch (micro). A release carrying big user-facing features may warrant a
pre-release (`vX.Y.Z-alpha.N`). State the version and the reasoning; the maintainer makes the final
call.
Two prompts shape the choice, and neither fires on its own:
- **Micro offer after a down-port.** Immediately after a backport PR (step 0) merges, offer a micro
release. There is no change threshold and no batching rule — one down-ported fix is enough to offer.
- **Minor proposal.** Propose a minor only when **both** hold: `changelog.d/` holds at least one
user-visible fragment (a `changelog.d/*.<type>.md` other than the ignored `README.md`), **and** the
last minor release is at least `MINOR_RELEASE_MIN_AGE` (30 days) old. Age alone never fires it, and a
fragment alone never fires it — a busy week on a young line is not a minor. A major is never
proposed: it is a stability commitment the maintainer calls explicitly.
Completion: one proposed version with its rationale.
### 4. Author the release notes
Draft the GitHub release body from the same curated content, re-pitched for the public, following
[RELEASE-NOTES.md](RELEASE-NOTES.md). Include the Contributors section, highlighting first-time
contributors. Keep the draft in a temp file.
Completion: a complete notes body in a temp file, ready to present.
### 5. Gate
Stop and present, in one message: the proposed version, the curated `[Unreleased]` content, the
drafted release notes, and the tag-push options (the maintainer pushes from the host, or the agent
creates the tag through `gh`). Wait for an explicit decision.
For a minor (or major) release, also **offer** deleting the previous line's branch
(`release/<previous minor>`). The maintenance line moves to `release/<new minor>` and only one line is
maintained — a dropped line silently receiving fixes is the failure this avoids. The deletion is
offered here, never automatic: the maintainer confirms after the new line's tag is verified (step 7),
and a dropped line's users move forward.
### 6. Land the changelog
On approval, open a PR that assembles `changelog.d/` and the legacy `[Unreleased]` content into
`## [X.Y.Z] - <today>`, deletes the fragment files, and adds a fresh empty `[Unreleased]` above the
new section; merge it to the branch being tagged (step 1) — `main` for a minor or major release, the
existing `release/<major>.<minor>` branch for a micro release. The tag must point at the merged
content.
`main` merges through a queue and repo auto-merge is disabled, so `gh pr merge` is refused. Enqueue
the PR with the `enqueuePullRequest` GraphQL mutation once its required checks have passed (the
mutation fails until they do), or have the maintainer click "Merge when ready". The queue re-runs the
required checks on the combined tree before it merges. `scripts/enqueue-pr.sh` wraps that wait-and-enqueue.
A `release/<major>.<minor>` PR has no queue: merge it directly with `gh pr merge <n> --merge` once its
required checks pass. A required check the changeset makes inert reports **skipped** — its conclusion is
`SKIPPED`, and it still satisfies the gate — so a wait loop must accept `SKIPPED` (or watch
`mergeStateStatus`), not demand `SUCCESS` from every required context.
### 7. Create the release branch and push the tag
Every minor (or major) release gets a release branch `release/<major>.<minor>` at the merged `main`
tip; the tag lands on `main` and the branch marks the new maintenance line. `main` keeps taking new
work; a fix that affects the shipped line is authored on `main` and cherry-picked down (step 0) onto
`release/<major>.<minor>`, so the branch never holds a fix `main` lacks. Only one line is maintained:
once the new line's tag is verified, the previous branch is offered for deletion in the step-5 gate.
See [`specs/release/release-branching.md`](../../../.operator-shared/specs/release/release-branching.md).
The maintainer may push from the host, or ask the agent to do it through `gh`:
```
repo=$(gh repo view --json nameWithOwner -q .nameWithOwner)
sha=$(gh api "repos/$repo/commits/main" --jq .sha)
gh api "repos/$repo/git/refs" -f ref="refs/heads/release/<major>.<minor>" -f sha="$sha"
gh api "repos/$repo/git/refs" -f ref="refs/tags/vX.Y.Z" -f sha="$sha"
```
A micro release tags the tip of the current `release/<major>.<minor>` branch instead:
```
sha=$(gh api "repos/$repo/commits/release/<major>.<minor>" --jq .sha)
gh api "repos/$repo/git/refs" -f ref="refs/tags/vX.Y.Z" -f sha="$sha"
```
CI then cross-compiles the three targets, publishes the GitHub Release with auto-generated notes,
bumps the Homebrew formula, and publishes the docs.
### 8. Set the release notes
Wait for the `publish` job to create the Release (`gh run watch`, or poll `gh release view vX.Y.Z`),
then replace the auto-generated body with the authored notes:
```
gh release edit vX.Y.Z --notes-file <file>
```
Add `--prerelease` for a pre-release. The notes live only in the release body; `CHANGELOG.md` stays
the in-repo record.
Completion: `gh release view vX.Y.Z` shows the authored notes.
Then monitor and double-check the release: the three target artifacts are attached to the Release,
the Homebrew formula bump PR is open (or merged), and the Pages deploy from the tag succeeds. The
bump PR is opened by the `publish` job with `GITHUB_TOKEN`, so GitHub parks its workflow run at
`action_required` — no checks report until a maintainer approves the run — after which it merges
through the queue like any other PR.
### 9. Post-release
On any release:
- On the origin branch (`main` for minor/major release, `release/<major>.<minor>` for micro release:
Confirm `[Unreleased]` is empty and `changelog.d/` holds only `README.md`.
On major/minor releases (from `main` branch):
- `make upgrade-deps`, push any `go.mod`/`go.sum` changes to PR — but hold the microsandbox SDK on its
current v0.7 line (crossing into v0.8 is source-breaking and needs the `msb-seam` migration first)
- Bump the non-Go tool versions per [NON-GO-DEPS.md](NON-GO-DEPS.md), push to PR
Completion: the bumps are on `main` (or found unnecessary), and the tagged branch's `[Unreleased]`/`changelog.d/`
invariant holds.
## Non-goals
- No binary building; CI builds the release artifacts.
- No `.github/release.yml` and no CI workflow changes; the notes are authored, not tuned
auto-generation.
- No release without the maintainer's explicit approval.