Repository navigation
Description
Problem or Motivation
Child 11 of the ADR modernization (#5233). Decision (owner decision 1). It waits for the owner. Agents change the release workflow only through an ordinary PR such as this one.
The review of each record that this item changes:
- ADR 0013 (supersede after owner decision 1 (release record)): It is in force and mostly true, but it has no options (no rejected release tool reaches the check). 'There is no schedule' contradicts its own 6-hour merge, and that merge merged 0 of 20 runs.
- ADR 0011 (retire): It is superseded by 0012 and then by 0013. No towncrier, version milestone, Release Gate or tag deploy exists. It stays frozen as the evidence record of docs(adr): decide the release model: branches and cuts, versioning and changelog, and testing the release tip #1751, and its rejections go into the release record.
- ADR 0012 (retire): It is superseded by 0013, and it got two notes after the supersession. Its live points move: the squash settings and the release-please keys to the release record, the required checks to the merge-gate record, and its Pages note to Status History.
Proposed Solution & Architectural Design
release-merge.yml runs gh pr merge --auto --squash --match-head-commit after the static guards. A required-job step refuses a release-please head that changes a file outside the 4 release files. hold-release turns auto-merge off. Delete the check and mergeable guards and their tests. A contract test checks that the 3 required jobs never skip on pull_request. If the owner turns on immutable releases: set draft and force-tag-creation, add a publish job, then remove the image grace code. A new record supersedes 0013, with Considered Options, Confirmation and a revisit condition (the action bundles release-please 17.6.0). Prove the fix first with devops ci fail-to-pass.
Owner decision 1 of 2026-11-12: Option A, with immutable releases on. At the 6-hour tick, the job checks the static guards and arms GitHub auto-merge with --match-head-commit. release-please makes a draft and its tag, and a last job publishes the release after the assets and images.
Rules of the ADR process (docs/adr/README.md, #5225) that apply:
- Supersession: the new record sets 'supersedes', and the same PR sets status and 'superseded-by' on the old record. The test fails on a link that goes only one way. The new record restates each rule and each rejected option that still holds, because the alternatives check drops superseded records. Never amend a superseded record. After a third amendment, or when a body contradicts the code, the next change is a supersession.
- Length: the body of a new record has 1,000 words or fewer, its title has 10 words or fewer, and its slug has 60 characters or fewer. Designs, catalogues, row tables, cutover plans, caps and measurements go to OpenSpec changes and specs, to settings or to docs, with a link under More Information.
- Use one Considered Options section. Each bullet ends with 'chosen.', 'rejected, because .' or 'deferred until .'. 'Deferred' does not match the rejected regex (adr.py:49), so the check stops refusing on a premise that changed. Each record has a Confirmation section that names its test, CI row or metric, and an optional tracker key.
- Code, tests and workflows cite the record in force. A test fails on a citation of a superseded record in src/, tests/ and .github/ (archived changes and CHANGELOG.md are history). Each superseding PR moves the citations of the records that it supersedes. Rename sweeps do not change docs/adr/.
- Merge ADR changes in batches. Each change of the ADR set changes adr_hash (alternatives.py:634-644, 1006) and makes every checked item due again. So all pure status changes go in docs(adr): add MADR front matter, a Status History and the ADR rules #5225, and the record PRs merge one at a time in the planned order.
- Keep the fix(roadmap): the ADRs in force fill the alternatives ADR budget #5049 budget test. A new record must fit in the tokens that the records it supersedes free. Short option bullets keep the budget, because options are 6,883 of the 8,464 tokens today.
Keep these constraints on purpose. The review found a reason for each one:
- ADR 0013, agents never merge or label the release PR and never edit release files; the tool derives the version; Argo CD tracks main.
The owner merges this pull request.
Target Subsystem
.github/workflows/release-merge.yml, .github/workflows/release.yml, release-please-config.json, docs/adr/.
Existing Tool Considered
GitHub auto-merge (gh pr merge --auto --squash --match-head-commit), the release-please options draft and force-tag-creation (17.6.0) and GitHub immutable releases. No new tool.
Acceptance Criteria
- The pull request cites its
devops ci fail-to-passrun first: the release-merge job refuses a release pull request whose checks still run before the fix, and arms auto-merge after it. -
release-merge.ymlrunsgh pr merge --auto --squash --match-head-commitafter the static guards. The check and mergeable guards and their tests go. - A required-job step refuses a release-please head that changes a file outside the 4 release files. The label
hold-releaseturns auto-merge off. - A contract test checks that the 3 required jobs never skip on
pull_request. - Immutable releases: release-please sets
draftandforce-tag-creation, a last job publishes the release after the assets and images, and then the image grace code goes. The owner turns on immutable releases after the merge (tracker owner step 1). - A new record supersedes ADR 0013, with Considered Options, Confirmation and a revisit condition (the action bundles release-please 17.6.0).
- The index and link tests of docs(adr): add MADR front matter, a Status History and the ADR rules #5225 pass, and the fix(roadmap): the ADRs in force fill the alternatives ADR budget #5049 budget test passes: the alternatives check fits every record in force under its cap.
Dependencies
- docs(adr): job limits are settings with a soft cap and a hard ceiling #5246
- fix(ci): the duration alarm fires at 360 s and files a P0 issue #5247
Owner decision 1 of 2026-11-12 is made. This item and the alarm item both change ci.yml.
Related
- Tracker: docs(adr): track the ADR modernization #5233. Review source:
docs/adr/at e413c40.
Source: #5233
Proposed design
Problem statement
The release pull request must merge on a schedule without redundant guards. The release-merge workflow must arm auto-merge after static guards, refuse a release-please head that changes a file outside the four release files, and honor hold-release. The release workflow must use release-please draft and force-tag-creation with a last publish job for GitHub immutable releases. A new ADR supersedes ADR 0013 and records the decision. The owner setting and image grace code removal are deferred.
Acceptance criteria
Requirement: Release auto-merge after static guards
The release-merge workflow SHALL arm GitHub auto-merge with gh pr merge --auto --squash --match-head-commit only after its static guards pass.
Scenario: Auto-merge waits for static guards
- WHEN
uv run devops ci fail-to-passruns the release-merge job on a release pull request whose checks still run before the fix - THEN The command shows the job refuses the pull request before the fix and arms auto-merge after the fix.
Requirement: Redundant release guards removed
The release-merge workflow MUST remove the check and mergeable guards and their tests.
Scenario: Release merge no longer waits on redundant guards
- WHEN
uv run devops ci fail-to-passruns the release-merge job on a release pull request after the change - THEN The command shows the job arms auto-merge without a check guard or a mergeable guard.
Requirement: Release head file guard
A required-job step SHALL refuse a release-please head that changes a file outside the four release files.
Scenario: Release head changes an extra file
- WHEN
uv run devops ci fail-to-passruns the required-job step on a release-please head that changes a fifth file - THEN The command shows the step refuses the pull request.
Requirement: Hold label disables auto-merge
The release-merge workflow MUST turn auto-merge off when the release pull request has the label hold-release.
Scenario: Hold label applied
- WHEN
uv run devops ci fail-to-passruns the release-merge job on a release pull request withhold-release - THEN The command shows auto-merge is off.
Requirement: Required jobs never skip on pull_request
The three required jobs MUST never skip on a pull_request event.
Scenario: Required jobs run on a pull request
- WHEN
uv run devops ci fail-to-passruns a pull request after the change - THEN The command shows all three required jobs run and none skips.
Requirement: Immutable release draft and publish
The release workflow SHALL set release-please draft and force-tag-creation and publish the release in a last job after the assets and images.
Scenario: Draft release publishes last
- WHEN
uv run devops ci fail-to-passruns the release workflow on a draft release - THEN The command shows release-please creates a draft and its tag, and the last job publishes the release after the assets and images.
Requirement: Release workflow validators
The changed release workflows MUST pass actionlint and zizmor.
Scenario: Workflow validators pass
- WHEN
uv run devops ci --check --only actionlint,zizmorruns on the changed workflows - THEN The command passes.
Requirement: New release record supersedes ADR 0013
A new ADR MUST supersede ADR 0013 and include Considered Options, Confirmation and a revisit condition that names release-please 17.6.0.
Scenario: ADR record tests pass
- WHEN
uv run devops ci test tests/invariants/test_adr_records.pyruns - THEN The tests pass and show the new record sets
supersedes: ["0013"]and has the required sections.
Requirement: ADR index and budget
The ADR index and link tests SHALL pass, and the new record MUST fit in the tokens that the records it supersedes free.
Scenario: ADR docs checks pass
- WHEN
uv run devops docs checkanduv run devops ci test tests/invariants/test_adr_records.pyrun - THEN Both commands pass and the alternatives check fits every record in force under its cap.
Existing Tool Considered
No alternatives check has run. GitHub auto-merge covers the scheduled merge with gh pr merge --auto --squash --match-head-commit. release-please 17.6.0 covers the version and changelog with draft and force-tag-creation. GitHub immutable releases covers release immutability. These tools lack a hold-release control and a required-job file guard, so the workflow adds those controls. No new tool is needed.
Key questions
- Should
release-merge.ymlarm auto-merge after the static guards and remove the check and mergeable guards?: Yes. The workflow arms GitHub auto-merge withgh pr merge --auto --squash --match-head-commitafter the static guards. It deletes the check and mergeable guards and their tests. (best practice) [sources: .github/workflows/release-merge.yml, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md]- Chosen: Arm auto-merge after static guards. The required checks gate the merge, so a second check guard is redundant and can leave a release pull request unmerged.
- Rejected: Keep the check and mergeable guards. They duplicate the required checks and the owner decision removes them.
- Should a required-job step refuse a release-please head that changes a file outside the four release files?: Yes. A required-job step refuses such a head, so a release pull request cannot change code outside the four files that release-please writes. (best practice) [sources: .github/workflows/release-merge.yml, release-please-config.json]
- Chosen: Guard the release file set in a required job. The guard runs before auto-merge and stops a head that changes an extra file.
- Rejected: Trust release-please to change only its files. A head can be edited after release-please opens it, so the workflow must check the file set.
- Should the workflow contract test require that the three required jobs never skip on
pull_request?: Yes. A contract test fails when any of the three required jobs can skip onpull_request, so a required check cannot be skipped by an event condition. (best practice) [sources: tests/invariants/test_workflow_contracts.py, .github/workflows/ci.yml]- Chosen: Add the contract test. It catches a skip condition that would leave a required check absent.
- Rejected: Rely on the ruleset alone. A ruleset cannot see a job that skips before it reports.
- Should immutable releases use release-please
draftandforce-tag-creationwith a last publish job?: Yes. Under owner decision 1, release-please setsdraftandforce-tag-creation, and a last job publishes the release after the assets and images. (best practice) [sources: release-please-config.json, .github/workflows/release.yml]- Chosen: Draft release and publish last. Immutable releases need the assets and images before the release becomes public.
- Rejected: Publish as soon as release-please creates it. It would publish before the assets and images are ready.
- Should a new ADR supersede ADR 0013 instead of amending it?: Yes. A new record supersedes ADR 0013 and restates each rule and rejected option that still holds, with Considered Options, Confirmation and a revisit condition. (best practice) [sources: docs/adr/README.md, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md]
- Chosen: Supersede ADR 0013. The body contradicts the code and ADR 0013 has no options, so the ADR process requires a supersession.
- Rejected: Amend ADR 0013 in place. The ADR process forbids an edit of the body of an accepted record and requires a supersession after a contradiction.
- Should the new record keep the ADR token budget?: Yes. The new record must fit in the tokens that the records it supersedes free, under the 8,192-token cap of the alternatives check. (best practice) [sources: docs/adr/README.md, src/devops_cli/roadmap/alternatives.py:634-644, src/devops_cli/roadmap/alternatives.py:1006]
- Chosen: Keep the budget test. The alternatives check drops records that exceed the cap, so a new record must fit.
- Rejected: Remove the budget test. The check would then drop a record that the project needs in force.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Searches found release-please-action (already used for release PRs, with the draft and force-tag-creation config keys) and a small auto-merge action; neither arms auto-merge behind a four-file guard, honors hold-release, or writes the ADR, and the issue rules out a new tool.
Lacks:
- Auto-merge armed only after static guards
- Refusal of a head outside the four release files
- hold-release label that turns auto-merge off
Activity
dan-petty commentedon Nov 12, 2026
Both automate the 6-hour release PR merge, but the candidate adds auto-merge arming, immutable releases, and the ADR 0013 supersession record that #3921 does not include.devops-cli-service commentedon Nov 17, 2026
Refine cannot set this item to Ready at 8cf9935 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (9)
Tools considered:
Searches run:
Sources: