Skip to content

docs(adr): decide the release model: branches and cuts, versioning and changelog, and testing the release tip #1751

Closed

Description

@dan-petty

Friction

Releasing takes several hand-held steps and repeatedly breaks the tooling built around it.

Evidence

Questions

  1. Branching: release branches plus release pull requests, or trunk-based development on main with releases cut by tag? Weigh the Argo CD tracking of main and the release branch, GitHub Pages and the image build in release.yml.
  2. Versions and changelog: generate them from Conventional Commits or pull request titles (release-please, git-cliff or semantic-release), or keep changelog.d/ fragments (towncrier-style)?
  3. Milestones: what role do milestones and the roadmap render keep, and who starts and ends a release?
  4. The tip: how is the release tip tested after every merge? Run CI on push, or a merge queue (see the gate-placement investigation)?
  5. Effort today: what does a release cost now, measured on v0.2.36 and v0.2.37 (owner steps, wait time, broken steps), and what would each option cost?

Deliverable

An ADR deciding the release model, with follow-up issues for its migration, each delivered by one pull request.

Acceptance criteria

  • The current release cost is measured on two releases.
  • Each option is compared on owner steps, failure modes and the deploy path (release image, Pages, Argo CD).
  • The ADR states the decision and lists its follow-up issues in delivery order.

Activity

  1. added
    source/agent
    type/docs
    on Oct 20, 2026
  2. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/docs. The candidate is about creating a decision record for the release model and does not implement new functionality, fix a bug, or change infrastructure.
    • Priority: P2-Medium. It addresses friction in the release process and impacts project maintainability but is not an immediate blocker.
    • Value: Medium. Improving the release model enhances developer experience and tooling reliability, which benefits the project's long-term health.
    • Effort: High. The candidate requires a detailed analysis of multiple aspects of the release process, including branching strategies, versioning, changelogs, and testing methods.
  3. added this to the v0.2.39 milestone on Oct 22, 2026
  4. added
    status/in-progress
    on Oct 22, 2026
  5. added a commit that references this issue on Oct 22, 2026
    bf5f8a9
  6. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1843, merged into release/v0.2.39 as bf5f8a9.

    Cause: Releases run through a release/vX.Y.Z branch, a hand-made cut pull request, a release pull request of 188 to 990 files and a publish on the push to main. That costs 75 minutes on v0.2.36 and 107 on v0.2.37, and the release path is 3,190 lines of source, 4,446 of tests, 403 of workflow and a share of the 540 readiness lines. A title search on 2026-10-22 finds 94 issues and 138 merged pull requests that name a release, changelog, cut or fragment. #1751 asks which release model is right, and nothing records the decision.

    Change: ADR 0011 decides that releases come from trunk. Item pull requests target main, towncrier assembles the changelog from typed fragments, uv version sets the version, one dispatched workflow opens the release pull request, merging it publishes and creates the tag as its last write, and Argo CD follows the semver tags. The ADR answers the issue's five questions, measures two releases, compares four options, names what stays custom with the open tool considered for each, decides the ten points that needed the owner under Decisions Taken, and orders the nine migration steps. It adds the task file and the changelog fragment. It changes no code, workflow or setting, and the settings only a person can change are listed as Pending a person bullets.

    Existing tool considered: towncrier is chosen for the changelog and release notes, uv for the version, and the dispatched workflow plus the publish workflow for the rest. git-cliff, commitizen and python-seman…

    3 file(s) changed.

    How it was verified

    Check runs at 7960ff9:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • bandit: pass
    • devops-cli: pass
    • CodeQL: pass
    • Analyze (actions): pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Static Analysis: pass
    • Changed-Test Independence: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Check: pass
    • Dependency Freshness: skipping
    • Service Image: skipping
    • DevContainer Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1751-release-model-adr.md:

    • The cost of a release is measured on two releases: v0.2.36 took 75 minutes and v0.2.37 took 107 minutes from the cut pull request's creation to the end of the publish run, with release pull requests of 188 and 990 files (ADR 0011, Evidence).
    • Each option is compared on owner steps, failure modes and the deploy path: the four options in "Considered Options", with the nine defect clusters of the old model in Evidence.
    • The ADR states the decision, answers the five questions of the issue, and lists the nine steps that migrate to it in delivery order (ADR 0011, "Cutover and Sequence").
    • The ADR records no point as open: the ten points that needed the owner are under "Decisions Taken", each confirmed by merging the ADR and reversible by a later ADR.
    • Every figure in the ADR was re-counted against the tree and GitHub on 2026-10-22, and the ones that could not be reproduced were replaced by figures that can (the pull request and issue counts by scope, the changelog section sizes and the title and fragment lengths).
    • Pending a person: create the release GitHub App for this repository only and set RELEASE_APP_CLIENT_ID and RELEASE_APP_PRIVATE_KEY in an environment named release. devops gh api repos/dan-petty/devops-cli/environments --jq '.environments[].name' then lists release.
    • Pending a person: create the tag ruleset on refs/tags/v* with the App as bypass actor before the Argo CD tag-following step merges. devops gh api repos/dan-petty/devops-cli/rulesets --jq '.[] | {name, target}' then lists a ruleset with target tag; if GitHub does not accept the App as a bypass actor, record that and restrict only update and deletion.
    • Pending a person: set Static Analysis, Tests & Coverage and Release Gate as required checks of the main ruleset with the strict policy on. devops gh api repos/dan-petty/devops-cli/rulesets/21466414 --jq '.rules[] | select(.type=="required_status_checks")' then lists the three checks.
    • Pending a person: after the machinery-deletion step merges, delete the release ruleset and the remote release/v0.2.* and chore/open-* branches. devops gh api repos/dan-petty/devops-cli/rulesets --jq '.[].name' then lists no release, and git ls-remote --heads origin 'release/*' prints nothing.
    • Pending a person: keep or change the immutable releases setting and the Pages source, which ADR 0011 leaves off and legacy from main:/docs. devops gh api repos/dan-petty/devops-cli/immutable-releases and devops gh api repos/dan-petty/devops-cli/pages show what is set.
    • Pending a person: dispatch prepare-release.yml for v0.2.40 when its milestone is empty, merge the release pull request, flip the Argo CD applications bootstrap and cluster to >=0.2.0 after argocd app diff shows no change, and record the wall time, the number of actions and the failed steps beside the v0.2.36 and v0.2.37 figures.
  7. added a commit that references this issue on Oct 22, 2026
    289053f
  8. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1843, merged into release/v0.2.39 as bf5f8a9.

    Cause: Releases run through a release/vX.Y.Z branch, a hand-made cut pull request, a release pull request of 188 to 990 files and a publish on the push to main. That costs 75 minutes on v0.2.36 and 107 on v0.2.37, and the release path is 3,190 lines of source, 4,446 of tests, 403 of workflow and a share of the 540 readiness lines. A title search on 2026-10-22 finds 94 issues and 138 merged pull requests that name a release, changelog, cut or fragment. #1751 asks which release model is right, and nothing records the decision.

    Change: ADR 0011 decides that releases come from trunk. Item pull requests target main, towncrier assembles the changelog from typed fragments, uv version sets the version, one dispatched workflow opens the release pull request, merging it publishes and creates the tag as its last write, and Argo CD follows the semver tags. The ADR answers the issue's five questions, measures two releases, compares four options, names what stays custom with the open tool considered for each, decides the ten points that needed the owner under Decisions Taken, and orders the nine migration steps. It adds the task file and the changelog fragment. It changes no code, workflow or setting, and the settings only a person can change are listed as Pending a person bullets.

    Existing tool considered: towncrier is chosen for the changelog and release notes, uv for the version, and the dispatched workflow plus the publish workflow for the rest. git-cliff, commitizen and python-seman…

    3 file(s) changed.

    How it was verified

    Check runs at 7960ff9:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • bandit: pass
    • devops-cli: pass
    • CodeQL: pass
    • Analyze (actions): pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Static Analysis: pass
    • Changed-Test Independence: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Check: pass
    • Dependency Freshness: skipping
    • Service Image: skipping
    • DevContainer Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1751-release-model-adr.md:

    • The cost of a release is measured on two releases: v0.2.36 took 75 minutes and v0.2.37 took 107 minutes from the cut pull request's creation to the end of the publish run, with release pull requests of 188 and 990 files (ADR 0011, Evidence).
    • Each option is compared on owner steps, failure modes and the deploy path: the four options in "Considered Options", with the nine defect clusters of the old model in Evidence.
    • The ADR states the decision, answers the five questions of the issue, and lists the nine steps that migrate to it in delivery order (ADR 0011, "Cutover and Sequence").
    • The ADR records no point as open: the ten points that needed the owner are under "Decisions Taken", each confirmed by merging the ADR and reversible by a later ADR.
    • Every figure in the ADR was re-counted against the tree and GitHub on 2026-10-22, and the ones that could not be reproduced were replaced by figures that can (the pull request and issue counts by scope, the changelog section sizes and the title and fragment lengths).
    • Pending a person: create the release GitHub App for this repository only and set RELEASE_APP_CLIENT_ID and RELEASE_APP_PRIVATE_KEY in an environment named release. devops gh api repos/dan-petty/devops-cli/environments --jq '.environments[].name' then lists release.
    • Pending a person: create the tag ruleset on refs/tags/v* with the App as bypass actor before the Argo CD tag-following step merges. devops gh api repos/dan-petty/devops-cli/rulesets --jq '.[] | {name, target}' then lists a ruleset with target tag; if GitHub does not accept the App as a bypass actor, record that and restrict only update and deletion.
    • Pending a person: set Static Analysis, Tests & Coverage and Release Gate as required checks of the main ruleset with the strict policy on. devops gh api repos/dan-petty/devops-cli/rulesets/21466414 --jq '.rules[] | select(.type=="required_status_checks")' then lists the three checks.
    • Pending a person: after the machinery-deletion step merges, delete the release ruleset and the remote release/v0.2.* and chore/open-* branches. devops gh api repos/dan-petty/devops-cli/rulesets --jq '.[].name' then lists no release, and git ls-remote --heads origin 'release/*' prints nothing.
    • Pending a person: keep or change the immutable releases setting and the Pages source, which ADR 0011 leaves off and legacy from main:/docs. devops gh api repos/dan-petty/devops-cli/immutable-releases and devops gh api repos/dan-petty/devops-cli/pages show what is set.
    • Pending a person: dispatch prepare-release.yml for v0.2.40 when its milestone is empty, merge the release pull request, flip the Argo CD applications bootstrap and cluster to >=0.2.0 after argocd app diff shows no change, and record the wall time, the number of actions and the failed steps beside the v0.2.36 and v0.2.37 figures.
  9. added a commit that references this issue on Oct 23, 2026
    f209f6c
  10. removed
    status/in-progress
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/docs

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions