Release Process¶
This page states how a Teranode release is decided, recorded and announced. The release skill (.claude/skills/release/SKILL.md) runs the same steps. This page is the reference for anyone who cuts a release without it.
Branches and Tags¶
mainis the trunk. Every change lands there first, through a pull request.release/vX.Yis cut frommainat the start of a minor's beta phase. Hotfixes arrive as squash-merge cherry-picks.- A beta tag is
vX.Y.Z-beta-N, onrelease/vX.Y. - A stable tag is
vX.Y.Z. It targets the SHA of the validated beta, never the branch tip. If anything landed onrelease/vX.Yafter that beta, the release needs a new beta.
Release Authority¶
The Maintainers decide whether a stable release ships. They use the decision model in GOVERNANCE.md: consensus, or a majority vote of maintainers when there is no consensus.
- Each go/no-go decision record names the maintainer who approved it, and the date.
- Any maintainer can stop a release. To stop it, the maintainer records a No-Go decision with the criterion that failed. The No-Go stands until the maintainers record a Go under the same decision model.
- Authority to merge code does not give authority to ship a release. A release ships only on a recorded Go decision.
Release Checklist and Go/No-Go Record¶
Each stable release has two records:
- The published checklist,
docs/releases/vX.Y.Z-checklist.md, copied from the template. It is public. It records whether each gate passed, with references that are safe to publish, and the go/no-go decision. - The private release record, which only the maintainers can read. It holds the evidence that must not be published: the nodes that soaked the beta and their soak windows, the sync-from-zero and mid-sync-upgrade nodes, the security review result, and every Critical or High finding with its waiver. Record each security finding as a draft repository security advisory, and list its advisory ID in the private record. A draft advisory is visible only to admins, security managers and invited collaborators.
The steps:
- Fill in the private release record. Each item needs its evidence: a report title, a CI run URL, a node identifier, an issue or advisory ID. "Done" without evidence does not satisfy an item.
- Copy the template to
docs/releases/vX.Y.Z-checklist.md, and mark each gate Yes, No or N/A, with a public reference where the template asks for one. - Record the full 40-character beta SHA, the decision, the approver and the date (
YYYY-MM-DD). - Merge the file to
mainin a pull request. - Push the tag
vX.Y.Zon the beta SHA. Do not create the GitHub Release yet. - Wait for the
teranode_main_build.yamlrun on the tag. If it fails, fix the cause and re-run the failed jobs. - When the run passes, create the GitHub Release on the existing tag (
gh release create vX.Y.Z --verify-tag). Link the file from the release body and from the Announcements discussion.
The release-checklist job in teranode_main_build.yaml enforces steps 4 and 5. For a stable tag, the build fails when any of these is true:
docs/releases/vX.Y.Z-checklist.mdis not onmain.- The file does not have exactly one
**Decision:**line, or that line does not sayGo. A list item (- **Decision:** Go) is accepted. - The
**Beta SHA:**in the file is not the commit that the tag points at. - The approver or the date is missing.
The check reads the file from main, because the tagged beta commit cannot contain a checklist written after its soak. Branches, beta tags (vX.Y.Z-beta-N, and variants such as v0.16.1-beta-txmeta-2) and rc tags (vX.Y.Z-rc-...) are not checked. Any other tag that starts with a version number, such as v0.16.3-hotfix1, fails. Tags that do not start with a version number, such as v-scaling-test-*, are not checked.
The job blocks the image build and deploy. It cannot stop a tag push, so the GitHub Release is created only after the run passes (step 7).
GitHub runs the workflow from the tagged commit. The check applies only to release branches cut from main after this job was added. Earlier release lines, release/v0.16 and before, have no gate. For those lines, a maintainer checks the merged checklist by hand before the tag push.
Checklist Items¶
The private release record holds this evidence for each domain. The published checklist has one gate per item, with the result and a public reference:
| Domain | Required evidence |
|---|---|
| Operational readiness | The beta tag. The mainnet, testnet and TeraTestNet nodes that ran it, each for at least 24 hours while following the chain tip. A sync from zero. An upgrade or restart during sync. If the seeder, the snapshot export format or the reference hardware changed since the last release: a new seed-to-tip measurement on the reference hardware, recorded as measured in the sync guide. Otherwise, N/A and the reason. |
| QA and testing | The CI run URL at the beta SHA for teranode_main_build.yaml, with the results of its test_and_lint jobs (Go test, smoketest and prunertest). The results for the consensus packages: services/blockvalidation, services/validator, services/subtreevalidation, services/blockassembly and stores/utxo. |
| Consensus parity | For a release with consensus-affecting scope: a node-validation run in full mode against the beta SHA that the stable tag will target, or against the immutable image digest built from that SHA. The stable tag does not exist until the checklist merges, so the run cannot use it. Give the report, its verdict, the tool version, the mode and the SHA or digest. For a release without consensus-affecting scope, write N/A and the reason. |
| Security | The security review or scan result for this release, or "none in scope" and the reason. |
| Architecture | The architecture reviews or decision records that affect this release, or "none". |
| Open findings | Every open bug-labelled issue that affects the build. Every open Critical or High finding from any source: miner feedback, security review, internal review, or the acceptance harness. Each one is closed or has a waiver. The findings and waivers are in the private record; the published checklist gives only their counts. |
| Miner feedback register | The number of open items, the number closed since the last release, and where the register is. |
Waivers¶
A stable release does not ship while a Critical or High finding is open, unless the finding has a waiver. A waiver states all of these:
- the finding
- the owner, by name
- the date
- the reason the risk is accepted
- the date by which the finding will be closed
Record each waiver in the private release record, and its count in the published checklist. Disclose each waiver in the Known issues section of the release notes, except a waiver for a security finding that is not yet published: disclose that one when its advisory is published.
Forward Schedule for Consensus-Level Releases¶
When a release carries a consensus-level or behaviour-affecting change, publish a forward schedule in the Announcements category before the beta phase starts, so that operators can plan. The schedule states three dates:
- the code freeze for the release branch
- the readiness confirmation, which is the date of the go/no-go decision
- the activation, which is the release date, or the activation height for a change that activates at a height
The schedule adds to the go/no-go record. It does not replace it.
Release Notes¶
Write the release notes manually; for the commit list format, see the release skill. The Announcements discussion uses this template:
# vX.Y.Z — <one-line theme>
**Released:** <YYYY-MM-DD>
**GitHub:** https://github.com/bsv-blockchain/teranode/releases/tag/vX.Y.Z
**Container:** ghcr.io/bsv-blockchain/teranode:vX.Y.Z
**Release checklist:** https://github.com/bsv-blockchain/teranode/blob/main/docs/releases/vX.Y.Z-checklist.md
## Upgrade priority
<Critical | Recommended | Optional> — <one-sentence reason>.
## Highlights
- <Top change> (#PR)
## For miners
<Required when the release has a consensus-level or behaviour-affecting change.
What a miner must verify before and after upgrading.>
## For node operators
<Required when the release has a consensus-level or behaviour-affecting change.
What a non-mining node operator must verify before and after upgrading.>
## Known issues
<Every open bug-labelled issue that affects this build, with its number and any
workaround. Every waiver. Every open non-code item, such as an open governance
item from miner feedback, with its timeline or deferral reason. "None" only when
all of these are empty.>
Rules:
- Upgrade priority. Critical when the release fixes a known production incident class or a consensus correctness issue. Recommended for meaningful operational fixes with no known production impact. Optional for performance or features only. A release with a consensus correctness change that is not rated Critical must say why.
- Audiences. A release with a consensus-level or behaviour-affecting change must have both the "For miners" and "For node operators" sections. Omit both only when the release has no such change.
- Known issues. At tag time, check the issue tracker. "None" is correct only when the tracker shows no open bug that affects the build.
- No node names. "mainnet", "testnet" and "teratestnet" are fine. Hostnames expose the fleet layout.