Release
Prepare and ship a GitHub + npm + sandbox release with a mandatory preview step. A confirmed execute run is not complete until npm publish succeeds from the published package root and sandbox.neotoma.io is deployed and verified, unless the user explicitly scoped the request to GitHub-only / no registry / no sandbox.
When to Use
When you want to ship what is on dev (or the current integration branch) to main, tag it, publish to npm, create a GitHub Release with curated notes, and update the public sandbox deployment.
Trigger with /release, or naturally ("prepare a release", "let's ship v0.5.0").
Reference Documents
| Document | Role |
|----------|------|
| docs/developer/github_release_process.md | GitHub Release template layout, release-notes:render usage, gh release create |
| docs/developer/github_release_supplement.example.md | Section pattern for the human-readable supplement |
| docs/infrastructure/deployment.md | Sandbox Fly deployment command and verification |
| docs/subsystems/sandbox_deployment.md | Sandbox runtime behavior and operator runbook |
| .github/release_notes_wrap.md | Fixed wrap template (install commands, npm/compare table, commit list) |
Workflow
Step 1: Preflight
Run before anything else:
- Fetch:
git fetch origin(and other configured remotes). - Determine branches: Default integration =
dev, target =main. Override if the user specifies. - Commits not on main:
git log origin/main..origin/dev --oneline(ororigin/main..HEADon integration branch). This is the default scope of "what ships." - Uncommitted changes:
git status --short. If dirty, describe the actual pending work grouped by area/impact usinggit diff --statand targeted file inspection. Do not use a generic placeholder. - Submodules:
git submodule status— surface any that are ahead/behind recorded SHAs. - Previous tag:
git tag --sort=-v:refname | head -1— this is the compare base unless the user specifies--compare-base. - Current package.json version: Read and display.
- Existing GitHub Release check: Run
gh release view "vX.Y.Z" --json isDraft,tagName 2>/dev/nullfor the target version. If a release exists and is a draft, surface this to the user ("Draft release vX.Y.Z already exists on GitHub — execute will update it rather than create a new one."). If a release exists and is not a draft (already published), STOP and ask the user explicitly before proceeding — updating a published release's notes is a hold point. - Sandbox deploy readiness: Confirm
fly.sandbox.tomlexists,flyctlis available, and the active Fly account can deployneotoma-sandbox. If Fly auth is missing, report that execute will block at sandbox deployment unless the user explicitly scopes the release to no sandbox.
Step 2: Resolve Version
- If the user provided a version (e.g. "v0.5.0"), use it.
- Otherwise, propose next patch from the latest tag: if latest is
v0.4.2, proposev0.4.3. If the user wants a minor or major bump, ask once. - Confirm: "Release as vX.Y.Z?"
Step 3: Preview
Draft the supplement following the section pattern from docs/developer/github_release_supplement.example.md:
- Summary: One plain-English sentence of what this release ships.
- What changed for npm package users: CLI, runtime/data layer, shipped artifacts.
- API surface & contracts: OpenAPI / MCP tool changes.
- Behavior changes: What users notice after upgrading.
- Docs site & CI / tooling: If applicable.
- Internal changes: Refactors, architecture, dependency, test-only work.
- Fixes: Bug fixes with user/operator impact.
- Tests and validation: What validates confidence. (Optional: for a committed Markdown test evidence file, run
npm run test:remote:critical:reportornpm run test:integration:report, then copy a redacted.vitest/reports/*.mdintodocs/releases/in_progress/vX.Y.Z/per