Charlie Roffe

Principal Architect & Engineering Director · Cloud & AI

Madrid, Spain · LinkedIn · GitHub

ADR-034: Release Management — Drafts, a Human Publish, Semver

Context

Merges to main deploy staging automatically; a v* tag promotes the already-tested image to production (ADR-021). Cutting a release by hand meant picking the version, listing every merged PR, choosing a commit with a promotable image, and checking E2E and pending Terraform. AI agents now do much of the engineering (ADR-028), but a production deploy must stay a human decision, and this repository's plan offers no required reviewers on environments.

Decision

Automate everything up to a draft release; keep publishing, which creates the tag and deploys, as a manual click.

1. The "Prepare release draft" workflow runs only when someone starts it (bump: auto, patch, minor or major; optional target commit).
2. A read-only planner picks the version from merged PR titles (breaking → major, any feat → minor, else patch), targets the newest commit whose staging image built, writes grouped release notes, and blocks the draft if the image build or E2E failed or the tag exists.
3. It saves a draft release with no tag, replacing an older unpublished draft, so running it is always safe.
4. A person clicks Publish release. That creates the v* tag, which runs the production promotion: signature check, infrastructure and hosting, smoke test. Agents may prepare drafts but never publish or push tags; a "yes" in chat is not the approval.
5. Roll forward only: a bad release is fixed by a new one.

Consequences

Benefits:
* Releasing is one click on a prepared draft, with a consistent version and notes.
* A release can only target a commit whose exact image passed staging and E2E.
* Agents prepare; the owner decides.

Trade-offs:
* Someone must open GitHub to publish; production never deploys on its own.
* Version bumps depend on PR titles following conventional commits.
* Recovering from a bad release takes a new build and release.

Alternatives considered

1. Deploy production on every merge: Rejected — production changes would follow merge timing, and an agent's merge would ship directly.
2. semantic-release or release-please: Rejected — they create tags or release PRs automatically, and here the tag is the deploy.
3. Required reviewers on the production environment: Rejected — not available for this repository's plan.
4. Agents publish after a chat confirmation: Rejected — the approval must be an action the owner takes in GitHub.

Architecture Decision Records