Delivery
accepted ADR-0012 engineering/ADR-0012-delivery
delivery: target: package environments: - { name: github, trigger: tag } - { name: npm, trigger: tag } release_tool: release-please release_notes: highlights registry: nonedeployment: manifests: noneStatus
Section titled “Status”Accepted
Context
Section titled “Context”While these keys are empty, an agent finishing a change does not know whether merging puts it in front of users or only onto the default branch, nor what produces a version. Of all the questions governance asks, this is the one where a wrong guess reaches people outside the repository.
Releasing and deploying are two acts. Releasing makes a named version
with its changelog (delivery.release_tool) and the notes that come with it
(delivery.release_notes). Deploying puts something in
service (each environment’s trigger). A repository can do one without the
other: a library releases and never deploys; a service can deploy every
merge without naming versions.
Semantic versioning is not a question here: feat gives a minor
version, fix and perf a patch, a breaking change a major. The commit
format is ADR-0006. Calendar versioning would be a
departure, declared in your own ADR.
Decision
Section titled “Decision”What governance recommends, and why.
| Key | Recommended value | Reason |
|---|---|---|
delivery.target |
no recommendation | it describes what this repository ships, which governance cannot know. It is the trait that changes most what an agent writes: an image job, platform configuration, a publish job, or nothing |
delivery.environments |
staging on merge, production on tag |
staging should mirror the default branch with no extra step; production runs a named version, so a rollback has a target. The list itself is asked, never guessed |
delivery.release_tool |
release-please |
governance assumes GitHub, and it is the most widely used tool there that turns Conventional Commits into a version, a changelog and a release pull request |
delivery.release_notes |
highlights |
a generated changelog lists commits, for whoever maintains the repository; it does not tell a consumer what the release brings or what they must do. A short text that heads the release does, and only a reader of the whole release can write it |
delivery.registry |
a form, not a value: an address such as ghcr.io/<owner> |
needed as soon as delivery.target is container; GitHub’s registry needs no other account |
deployment.manifests |
a form, not a value: a relative path or a URL | the form decides the pipeline (below), and only this repository knows where its manifests live |
delivery.target says what leaves the repository.
container: an image is built and pushed todelivery.registry, and manifests describe how it runs (Kubernetes or another orchestrator).platform: a platform builds and runs the code itself (Vercel, Netlify, Fly.io, Render, Cloudflare Pages…). The agent writes the platform’s declaration, not manifests, and there is no image job.package: the repository publishes a package (npm, PyPI…). Its one environment is the registry it publishes to, triggered ontag.none: nothing is deployed.
The trait exists because deployment.manifests: none alone cannot tell
“deploys without manifests” from “deploys nothing”.
The form of deployment.manifests decides the pipeline
(ADR-0011):
- A relative path: the manifests are here, and the pipeline applies them, with one deploy job per environment.
- A URL: the manifests live in another repository. The pipeline proposes a change there and has no deploy job here; merging over there is the deployment (GitOps).
none: nothing is applied.
Write URLs with their scheme (https://, ssh://, or git@host:path).
Without one, forge.example.test/group/repo is a valid relative path. If the
value is neither form, or is a relative path to a directory that does not
exist, the agent stops and asks, writing nothing. With a URL, an
environment’s trigger describes what triggers the proposal, not the
deployment. Keeping manifest sources here and pushing rendered output
elsewhere is not covered: declare it in your own ADR.
manual is not none. manual means versions are made by hand (number,
changelog, tag). none means there are no versions at all. A repository
that publishes a package answers manual, never none. A tool that does
only half the job (publishes without a changelog) still counts: say
“changelog by hand” under Consequences.
delivery.release_notes says what comes with a version.
changelog: the changelogdelivery.release_toolgenerates, alone. Nothing is done when a release is made.highlights: the changelog, plus a short text for readers that heads the release’s notes on the forge: what the release brings, what a consumer must do, and, in a repository that ships ADRs, every ADR it revises. Withrelease-please, write it once the tag exists and prepend it to the GitHub release (gh release edit): release-please rewrites its release pull request at every merge, so text written there is lost. A release is not finished until its highlights are written.none: there are no versions. It goes withdelivery.release_tool: none.
Before 1.0.0, a breaking change gives a minor version. With
release-please, a repository whose current version is below 1.0.0 sets
"bump-minor-pre-major": true in release-please-config.json. Without it,
the first breaking change in a 0.x repository releases 1.0.0, a promise of
stability nobody decided. Going to 1.0.0 stays a deliberate act
(a Release-As: 1.0.0 footer), after which the option no longer applies. A
repository already at 1.0.0 or above does not set it.
A change is done in its own pull request. Its last tasks are:
- Once a pipeline file exists, check that it passes on the pull request, even when there is no deploy job.
- Update the documentation the change makes false, in the same pull request: a page, the README, an example. Not in a later one, and not at release time.
Whatever a check can verify belongs in a check, so the pipeline catches it
next time; review covers the rest. Nothing else waits for the release,
except the highlights when delivery.release_notes is highlights.
release-please adopted as recommended. target: package: ontrack is an npm
package installed as a dev dependency; nothing is deployed and no image is
built, hence registry: none and manifests: none.
Departure: two environments, github then npm, both on tag, instead of
staging on merge and production on tag. A package has no staging: its
environments are the places a version is published to. The first is the
GitHub repository, where a tag makes the release and from which
ontrack@git+https://github.com/trivoallan/ontrack.git#vX.Y.Z installs. The
second is the npm registry, where the same tag publishes the package as
@trivoallan/ontrack: the unscoped ontrack name belongs to another
project there. The command stays ontrack.
The 0.x rule above is already followed: release-please-config.json sets
"bump-minor-pre-major": true.
release_notes: highlights adopted as recommended, on 2026-11-15: the
v0.4.0 release already carries highlights above the generated changelog.
Consequences
Section titled “Consequences”Positive
Section titled “Positive”- Users install a named version from the npm registry, with its changelog, without a git URL or a build on install.
- Installing from the GitHub repository at a tag stays a decided route, for whoever cannot or will not use the registry.
- Versions follow the commit messages that
commitlint(ADR-0006) already enforces, and a breaking change before 1.0.0 gives a minor version. - Each release opens with what it brings and what a user must do.
Negative
Section titled “Negative”- Two environments on one tag can disagree: a release whose publish job fails exists on GitHub and not on npm until the job is run again.
- A badly typed squash message (ADR-0009) produces a wrong version.
- A release is not finished when its tag exists: its highlights are still to write, by hand.
Neutral
Section titled “Neutral”- The package is scoped and the command is not: users install
@trivoallan/ontrackand runontrack. - This verdict was taken again at revision 3, which added
delivery.release_notes; the other keys are unchanged since revision 2.
Alternatives Considered
Section titled “Alternatives Considered”Deploy on tag
Section titled “Deploy on tag”What runs has a name. One more step, and a rollback has a target.
Deploy on merge
Section titled “Deploy on merge”The merge is enough, and the delay is minimal. What runs becomes a SHA nobody remembers, and a rollback has no obvious target.
Deploy by hand
Section titled “Deploy by hand”Someone decides and runs it. Honest for a repository that ships rarely; the cost is that the act is written nowhere.
releaser-pleaser
Section titled “releaser-pleaser”surdesrails’ recommendation, because it covers GitHub and GitLab alike, and
it is proven on GitHub Actions. governance assumes GitHub only, where
release-please is the more widely used choice. A repository already on
releaser-pleaser has no reason to migrate.
References
Section titled “References”- Suggested skills:
deploy-checklistfromengineering@knowledge-work-plugins;verification-before-completionfromsuperpowers@superpowers-marketplace, for the last tasks of a change;deliver-release-notesfrompm-skills@product-on-purpose, for the highlights. - Adapted from surdesrails SDR-0011, revision 1 (its internal hosting-offer trait
hosting.offerreplaced bydelivery.target; recommendsrelease-pleaseinstead ofreleaser-pleaser). - ADR-0001: how governance ADRs are ruled on.
- release-please and Semantic Versioning.
The keys.
| Key | What it holds | Allowed values |
|---|---|---|
delivery.target |
what leaves the repository | container, platform, package, none |
delivery.environments |
the environments a version goes through, in order, each with its trigger | a list of { name, trigger }, trigger being tag, merge or manual; [] for a repository that deploys nothing |
delivery.release_tool |
what makes a version and its changelog | release-please, releaser-pleaser, another tool, manual or none |
delivery.release_notes |
what comes with a version | changelog, highlights or none |
delivery.registry |
where images are pushed | an address, or none |
deployment.manifests |
where the deployment manifests live | a relative path, a URL with a scheme, or none |
delivery.registry sits under delivery because pushing an image builds
an artifact; it puts nothing in service. A registry is not an environment.
What the check does not see. It refuses an empty key and an unknown
delivery.target. It does not check a trigger value inside
delivery.environments, and it cannot tell a path from a URL in
deployment.manifests: review does.
rejected means nothing leaves the repository: no service, no package,
no image, as in a documentation, schema or configuration repository. It is
not the same as deploying by hand, which is manual.
All six keys are required: an empty key is not an answer. This file decides when, where and what is delivered; the rules a pipeline follows are ADR-0011’s. The value is written in this file and nowhere else; whoever needs it links here. See ADR-0001 for the check command.
Revisions. What changed in the question at each revision, and what a repository that already ruled must re-answer.
- Revision 2: with
release-pleaseand a version below 1.0.0,release-please-config.jsonsets"bump-minor-pre-major": true. No key changed: if your repository is below 1.0.0, set the option. - Revision 3: a new key,
delivery.release_notes(changelog,highlightsornone, recommendedhighlights), and a change’s last tasks now include updating the documentation it makes false. Answerdelivery.release_notes; nothing else to re-answer.
