Skip to content

docs(adr): one roadmap-state record supersedes ADR 0001 and ADR 0016 #5235

Done

Description

@dan-petty

Problem or Motivation

Child 2 of the ADR modernization (#5233). Consolidation. It restates the decisions in force (owner, 2026-10-28, #2399; the never-revert rule of 0002; the planner deletion of 2026-10-23 from 0013:20) and corrects one premise (issue fields are deferred until a spike). The owner merges it, and it has no open question.

The review of each record that this item changes:

  • ADR 0001 (supersede (merge with 0016 into the roadmap-state record)): The core holds (store.py:1-9). Three body facts are false: board fields hold status, milestones are releases, and docs/ROADMAP.md is rendered (feat(release): release-please makes every release from main #1952 deleted it). The alternatives check leaves it out today.
  • ADR 0002 (retire (stays superseded by 0015, frozen)): The account was suspended (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562). The live never-revert rule and its 25 code citations move to the roadmap-state record. The note added after supersession (line 5) stays as history.
  • ADR 0016 (supersede (merge with 0001 into the roadmap-state record)): Labels and the single PATCH hold. The issue-field rejection has been false since 2026-11-11, so it becomes 'deferred until a spike'. The lock in one process does not cover all writers (cite 0021 rules 2-4). The board commands wait for owner decision 5.
  • 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.

Proposed Solution & Architectural Design

A new record of 1,000 words or fewer. Its Considered Options: Markdown as the source and a YAML or TOML file (rejected), board fields (rejected), issue types and issue fields (deferred until the spike). It names the gap of the full label list in the single PATCH and cites the rules 2-4 of 0021. The front matter of 0001 and 0016 becomes superseded. 73 citation lines (25 of ADR 0002, 48 of ADR 0016) in src/, tests/ and .github/ move to the new record. File the issue-field spike.

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 0016, one PATCH for a label family and its job record: with two requests, a field can lose its record, and the guard then reads the job's own write as a person's change.
  • ADR 0002/0016, a job never reverts a person's change: 9 guard stops in 7 days. The rule moves to the roadmap-state record and stays in force.
  • 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

docs/adr/; citation lines in src/, tests/ and .github/.

Existing Tool Considered

MADR 4 and the rules of docs/adr/README.md (#5225). No new tool.

Acceptance Criteria

Dependencies

The records merge one at a time in the planned order, and this one needs the front matter and the index of #5225.

Related

Source: #5233

Owner decision 2026-11-13

D4 (approved, tracker #5482): no new label. "Waits for a person" and "possible duplicate" stay derived in devops roadmap inbox from typed record causes. The new roadmap-state record states this rule, and that the labels that nothing writes are removed. A needs-owner label comes only if a GitHub filter is shown to be necessary (D4 option b).

The record also names each writer of the priority/* labels: intake, and the inherit step of #5510.

The label delete and the label sync change are in #5503, not in this record. This record changes no code.

Alternatives check of 2026-11-16: not-applicable.
Class: docs, no search.
Tool: none found.

Proposed design

Problem statement

ADR 0001 and ADR 0016 disagree with the code on three facts: labels, not board fields, hold the Item fields; milestones are planning buckets, not releases; and no command renders docs/ROADMAP.md (#1952 deleted it). Add one roadmap-state record that restates the rules in force, mark ADR 0001 and ADR 0016 superseded, move the 73 citations of ADR 0002 and ADR 0016, and keep the ADR, citation, index and budget checks green. The owner merges the pull request. The issue-field spike is filed as its own issue.

Acceptance criteria

Requirement: Roadmap-state record supersedes ADR 0001 and ADR 0016

The new roadmap-state record SHALL set status: accepted and supersedes: ["0001", "0016"].

Scenario: New record front matter

  • WHEN uv run devops ci test tests/invariants/test_adr_records.py runs
  • THEN the test passes with no problem for the new record's front matter or links.

Requirement: Old records point back to the new record

ADR 0001 and ADR 0016 SHALL each set status: superseded and superseded-by to the new record.

Scenario: Bidirectional supersession links

  • WHEN uv run devops ci test tests/invariants/test_adr_records.py runs
  • THEN the test passes with no one-way supersession link.

Requirement: ADR 0002 stays frozen

ADR 0002 SHALL stay superseded by ADR 0015 and its body SHALL NOT change.

Scenario: ADR 0002 body hash

  • WHEN uv run devops ci test tests/invariants/test_adr_records.py runs
  • THEN the test passes with no body-hash change for ADR 0002.

Requirement: Record length and title limits

The new record SHALL have a body of 1,000 words or fewer, a title of 10 words or fewer and a slug of 60 characters or fewer.

Scenario: ADR length limits

  • WHEN uv run devops ci test tests/invariants/test_adr_records.py runs
  • THEN the test passes with no length problem for the new record.

Requirement: One Considered Options section

The new record SHALL have one Considered Options section and each option bullet SHALL end with chosen., rejected, because <reason>. or deferred until <condition>.

Scenario: Option bullet endings

  • WHEN rg -n '^(## Considered Options|- \*\*)' docs/adr/0029-*.md runs
  • THEN the output shows one ## Considered Options section and each option bullet ends with one of the three forms.

Requirement: Rejected roadmap-state options

The new record SHALL reject Markdown as the source with a sync to GitHub, a YAML or TOML file, and board fields in its Considered Options section.

Scenario: Rejected options

  • WHEN rg -n 'Markdown|YAML|TOML|board fields' docs/adr/0029-*.md runs
  • THEN the output shows rejected, because for Markdown, YAML or TOML, and board fields.

Requirement: Issue-field option is deferred

The new record SHALL state issue types and issue fields as deferred until the spike and SHALL NOT state them as rejected.

Scenario: Issue-field option

  • WHEN rg -n 'issue (types|fields)' docs/adr/0029-*.md runs
  • THEN the output shows deferred until the spike and no rejected for issue types or issue fields.

Requirement: Restated rules and single PATCH gap

The new record SHALL restate the never-revert rule of ADR 0002, the planner deletion of 2026-10-23, the gap of the full label list in the single PATCH, and rules 2-4 of ADR 0021.

Scenario: Restated rules

  • WHEN rg -n 'never revert|planner deletion|single PATCH|rules 2-4' docs/adr/0029-*.md runs
  • THEN the output shows the four statements in the new record.

Requirement: Owner decision D4 label rule

The new record SHALL state that devops roadmap inbox derives 'waits for a person' and 'possible duplicate' from typed record causes, that labels nothing writes are removed, and that intake and the inherit step of #5510 write priority/*.

Scenario: D4 label rule

  • WHEN rg -n 'waits for a person|possible duplicate|priority' docs/adr/0029-*.md and rg -n 'needs-owner' docs/adr/ src/ .github/ run
  • THEN the first output shows the D4 rule in the new record and the second exits 1 with no needs-owner label.

Requirement: Citations name the record in force

The 73 citation lines in src/, tests/ and .github/ that cite ADR 0002 or ADR 0016 SHALL name the new record.

Scenario: Superseded citation sweep

  • WHEN uv run devops ci test tests/invariants/test_adr_superseded_citations.py runs
  • THEN the test passes with no citation of a superseded record.

Requirement: ADR index is current

The ADR index in docs/adr/README.md SHALL show ADR 0001 and ADR 0016 as superseded by the new record.

Scenario: ADR index check

  • WHEN uv run devops docs check runs
  • THEN the command exits 0 and prints All documentation files are up to date.

Requirement: Alternatives token budget

The new record SHALL fit in the tokens that ADR 0001 and ADR 0016 free under CONST_ROADMAP_ALTERNATIVES_MAX_ADR_TOKENS.

Scenario: Alternatives token budget

  • WHEN uv run devops ci test tests/roadmap/test_roadmap_alternatives.py runs
  • THEN the test passes and the decisions text stays within 8,192 tokens.

Requirement: Confirmation section

The new record SHALL have a Confirmation section that names its test, CI row or metric.

Scenario: Confirmation section

  • WHEN rg -n '^### Confirmation$' docs/adr/0029-*.md runs
  • THEN the output shows one ### Confirmation section.

Existing Tool Considered

MADR 4 (https://adr.github.io/madr/) is the open, maintained template that the project uses. It covers the record form but lacks the project-specific supersession-link, citation and token-budget checks, which docs/adr/README.md and the ADR tests provide. No open tool covers the whole need, and the change builds no code.

Key questions

  • Which records does the new record supersede?: ADR 0001 and ADR 0016. ADR 0002 stays superseded by ADR 0015 and frozen; its never-revert rule and its 25 citations move to the new record. ADR 0013 is the release record and waits for owner decision 1, so this issue does not supersede it. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md:1-7, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md:6, docs/adr/0016-labels-hold-the-roadmap-items-fields.md]
    • Chosen: Supersede ADR 0001 and ADR 0016 only. The title and acceptance criteria name these two records. ADR 0002 is frozen, and ADR 0013 waits for owner decision 1.
    • Rejected: Also supersede ADR 0013. ADR 0013 is the release record and waits for owner decision 1.
  • Which form does the record use for issue types and issue fields?: Use deferred until the spike. The old rejection has been false since 2026-11-11. The alternatives check reads rejected as a refused tool, and deferred does not match the rejected regex. (best practice) [sources: docs/adr/README.md:81-87, src/devops_cli/roadmap/adr.py:59]
    • Chosen: Use deferred until the spike. The premise changed, and the check must stop refusing on it.
    • Rejected: Keep rejected. The issue-field rejection is false, and the check would refuse a tool on a changed premise.
  • How does the change handle the issue-field spike?: File the spike as a separate issue. It needs an App write and read-back, a webhook event and a board view on a user repository. This docs pull request does not build it. (best practice) [sources: docs/adr/README.md:73-77, docs/adr/0016-labels-hold-the-roadmap-items-fields.md:27]
    • Chosen: File a separate spike issue. The spike needs an outside GitHub App and a user repository. The record must stay under 1,000 words.
    • Rejected: Put the spike in the record. A spike is research, not a decision record, and it would break the length limit.
  • Does this change add a needs-owner label or change label code?: No. Owner decision D4 keeps 'waits for a person' and 'possible duplicate' derived in devops roadmap inbox from typed record causes. The record states that labels nothing writes are removed. A needs-owner label comes only if a GitHub filter is shown necessary. The record names intake and the inherit step of feat(roadmap): a blocker inherits the priority of what it blocks #5510 as writers of priority/*. The label delete and label sync change stay in chore(github): delete the labels that nothing writes #5503, and this record changes no code. (best practice) [sources: src/devops_cli/roadmap/inbox_kind.py:11-28, src/devops_cli/roadmap/workflow_labels.py:56-155, docs/roadmap/inbox.md:3, docs/roadmap/intake.md:62, docs/SDLC.md:76]
  • Does the superseding pull request move the citations of ADR 0002 and ADR 0016?: Yes. The same pull request moves the 73 citation lines in src/, tests/ and .github/. Archived OpenSpec changes and CHANGELOG.md keep their citations as history. (best practice) [sources: docs/adr/README.md:70, tests/invariants/test_adr_superseded_citations.py:17-27, tests/invariants/test_adr_superseded_citations.py:62-63]
    • Chosen: Move the citations in the same pull request. The ADR rules require the superseding pull request to move citations of the old record.
    • Rejected: Move the citations in a later pull request. A later pull request would leave citations of a superseded record and fail the citation test.
  • How does the new record keep the alternatives token budget?: The new record must fit in the tokens that ADR 0001 and ADR 0016 free. Use short option bullets and the 1,000-word cap. Keep the fix(roadmap): the ADRs in force fill the alternatives ADR budget #5049 budget test. Put designs, tables and measurements in OpenSpec, a setting or a document under More Information. (best practice) [sources: docs/adr/README.md:73-77, src/devops_cli/config/constants.py:3587, src/devops_cli/roadmap/alternatives.py:1025-1027, src/devops_cli/roadmap/alternatives.py:1338]
    • Chosen: Use short option bullets and the 1,000-word cap. Options are 6,883 of 8,464 tokens today. Short bullets keep the budget.
    • Rejected: Move details into the record. Designs, tables and measurements go to OpenSpec, settings or docs under More Information.
  • Does the new record restate the rules and rejected options of the records that it supersedes?: Yes. The alternatives check does not read a superseded record. The new record restates each rule and each rejected option that still holds. It restates the never-revert rule of ADR 0002, the planner deletion of 2026-10-23, the gap of the full label list in the single PATCH, and rules 2-4 of ADR 0021. (best practice) [sources: docs/adr/README.md:67, docs/adr/0002-roadmap-jobs-act-as-a-machine-account.md:12, docs/adr/0013-releases-use-release-please-as-it-ships-and-agents-stay-out.md:27, docs/adr/0016-labels-hold-the-roadmap-items-fields.md:18-20, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:122-131]
    • Chosen: Restate the rules and rejected options. The alternatives check drops a superseded record, so its rules would otherwise leave the check.
    • Rejected: Link to the old records only. The check does not read a superseded record.
  • Which roadmap-state options does the record reject?: Reject Markdown as the source with a sync to GitHub, a YAML or TOML file, and board fields. Defer issue types and issue fields until the spike. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md:15-16, docs/adr/0016-labels-hold-the-roadmap-items-fields.md:25-27]
    • Chosen: Reject Markdown, YAML/TOML and board fields; defer issue fields. ADR 0001 and ADR 0016 already rejected these options, and the issue-field premise changed.
    • Rejected: Reopen board fields. ADR 0016 holds that no roadmap job reads or writes a project board.
    • Rejected: Reopen Markdown or YAML/TOML. ADR 0001 rejected both for commit churn and fragile sync.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#5225

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/docs
    status/new
    value/medium
    effort/medium
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.
    • Related: docs(adr): add MADR front matter, a Status History and the ADR rules #5225, which asks for a different change. Both items are part of the ADR modernization; #5225 adds the structural rules and front matter, while this candidate creates one specific record that supersedes two existing ADRs.
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: docs. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.

  6. added
    status/ready
    and removed
    status/new
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 4d085f1 (see proposed design in issue body).

    Moved to new items: #6160.

  8. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 29, 2026
  9. removed
    status/in-review
    on Nov 29, 2026
  10. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-29 16:17 UTC

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

    effort/mediumpriority/p2-mediumsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions