Skip to content

refactor(roadmap): Release becomes Milestone in the planner, its settings and the board #1937

Closed

Description

@dan-petty

Friction

ADR 0012 gives the word Release one meaning. A release is what release-please publishes from main. A milestone is a planning bucket and never a version.

The planner still calls its bucket a Release. The class, the settings, the store methods, the model fields and the test builder keep that name. Two meanings of one word invite the old mistake: that a bucket predicts a version. Step 12 of the ADR sequence ends with this rename.

Evidence

All counts come from git grep at commit f3b17488, the tip of release/v0.2.39, on 2026-10-22.

  • Old names. The command in the acceptance criteria finds 299 lines in 34 files.
    • 288 lines in 29 files are in src, tests and .github.
    • 11 lines in 5 files are in docs/TESTING.md and the generated references.
    • The largest source files are reprioritize.py (67 lines), config.py (15), memory_store.py (14), store.py (11) and github_store.py (11). All are in src/devops_cli/roadmap.
    • The largest test files are test_roadmap_store_contract.py (26), test_roadmap_config.py (19) and test_roadmap_reprioritize.py (19).
  • Settings. RoadmapConfig (src/devops_cli/roadmap/config.py:45-68) defines release_cap, release_slots, release_credit_base, release_credit_per_delivered_item and release_item_target. It also defines the property release_limit.
    • .github/roadmap.toml sets four of them and lists release_slots as a commented default.
    • src/devops_cli/config/defaults.py holds the DEFAULT_ROADMAP_RELEASE_* constants.
    • The model refuses unknown keys (extra="forbid"). Every devops roadmap command reads the file through the contents API at --ref (src/devops_cli/commands/roadmap.py:4).
  • Stored state. ItemField.RELEASE (src/devops_cli/roadmap/store.py:66) has the value Release. It is not a board field.
    • BOARD_FIELDS leaves it out. Its docstring says that the board only mirrors the milestone.
    • It is a key in the Job record text field of each card that a job placed. The Pending mark names it too.
    • It appears on 93 lines in src and tests. The attribute release of Item follows from it, because Item.field_value reads the attribute that the lower-cased member name gives.
  • The board. .github/project-template.json defines no field named Release. The view Roadmap Timeline already groups by Milestone (line 65).
    • The word Release stays in four text lines.
      • Line 3 is the board name.
      • Line 25 is the P2 option description.
      • Line 50 is the Job record description.
      • Line 68 is the view description.
    • devops gh project finds the live board by the template name, then by short_name (src/devops_cli/github/projects.py:357). So line 3 must stay.
  • Other places. The quota formula in src/devops_cli/ai/instruction_generator.py:260 names three old settings. src/devops_cli/lang/en/help.py:1129 and :1244 name release_cap and release_slots. The builder make_release (tests/support/builders.py:66) is named in docs/TESTING.md:110.
  • Names that stay. Some names count GitHub Releases, which release-please publishes. Examples are get_release_cadence_metrics and the parameter release_limit in src/devops_cli/github/metrics.py. They keep the word.

Existing tool considered

This item builds no new capability. It renames names that exist.

  • The open tool is ast-grep. It is in the dev group of pyproject.toml as ast-grep-cli==0.51.0 (line 99).
  • It matches Python identifiers by syntax. A read-only run matched release_cap in fields, attributes, parameters and keyword arguments.
  • It reads no strings, comments or generated text. The git grep of the acceptance criteria finds those.
  • mypy and ruff find each identifier that the rewrite misses.
  • rope and libcst rename with scope. Neither is a direct dependency of the project, so using one adds a dependency. This item does not need one.
  • Cost: ADR 0012 (What Stays Custom) gives no tokens or elapsed time for the planner steps. It counts about 150 net lines for the planner as a whole. This item adds no net lines except tests.
  • The item carries its estimate before work starts: tokens to implement, maintain and fix, and elapsed time.

Proposed change

Rename the names below in src, tests, .github and the generated references. Keep no alias. The project is pre-1.0 and keeps no compatibility shim.

Other items delete or change some names before this item merges. This item renames what remains.

The table is a sample. The AST test of the acceptance criteria gives the full list. At f3b17488, 121 distinct names in src/devops_cli/roadmap contain release, in any letter case. This item renames each remaining name by the same rule: release becomes milestone. A name that means a GitHub Release leaves with the planner item that deletes the GitHub Release poll.

Old name New name
Release (src/devops_cli/roadmap/store.py:232) Milestone
ReleaseState, ReleaseWrite, ReleaseGrowth MilestoneState, MilestoneWrite, MilestoneGrowth
in_release, find_release, items_by_release, open_releases, current_release, joined_release The same names, with milestone in place of release
ItemField.RELEASE (value Release) ItemField.MILESTONE (value Milestone)
The attribute release of Item, Candidate, Change and the GitHub payload models milestone
ChangeKind.JOINED_RELEASE, ChangeKind.LEFT_RELEASE JOINED_MILESTONE, LEFT_MILESTONE
The store methods releases, release, create_release, edit_release, close_release, delete_release, release_changes milestones, milestone, create_milestone, edit_milestone, close_milestone, delete_milestone, milestone_changes
release_cap, release_slots, release_credit_base, release_credit_per_delivered_item, release_item_target, release_limit milestone_cap, milestone_slots, milestone_credit_base, milestone_credit_per_delivered_item, milestone_item_target, milestone_limit
quota.release_credit quota.milestone_credit
DEFAULT_ROADMAP_RELEASE_* DEFAULT_ROADMAP_MILESTONE_*
make_release make_milestone

The migration item (see Order and dependencies) removes delete_release from the store protocol and from the GitHub adapter. Only the in-memory store keeps it, so this item renames that one.

The workflow documentation item defines the glossary terms Milestone, Current milestone, Planned milestone, Milestone growth and Delivered. The planner item that creates date-titled milestones deletes the old terms. The names above follow the new terms. docs/TESTING.md says that a builder takes the name of its glossary term.

Change these files as well.

  • .github/roadmap.toml: rename the four set keys and the commented default release_slots. Keep every value, including milestone_cap = 16 and its bridge comment.
  • Reword the comments of .github/roadmap.toml to say milestone. The comment of planning_horizon names four versions today. After this item it names none.
  • .github/project-template.json: change the text of lines 25, 50 and 68 to say milestone. Keep the board name, the view names and group_by.
  • src/devops_cli/lang/en/help.py and src/devops_cli/ai/instruction_generator.py: change each string that names a renamed setting or identifier. The wording of the ship and branch sentences belongs to the planner items in the Order section.
  • docs/TESTING.md:110: change make_release to make_milestone.
  • Run devops docs generate --sync-readme. It rewrites README.md, docs/CLI_REFERENCE.md, docs/MCP_TOOLS.md and docs/commands/roadmap.md.

Stored state: decide before work starts

ADR 0012 does not say what happens to the stored key Release. The key is the value of ItemField.RELEASE. The Pending mark also holds the required field release, and it lists Release in recorded, begun and written.

decode_job_record leaves out a key that it does not know. encode_job_record keeps that key (src/devops_cli/roadmap/github_store.py:908 and :926). After the rename, placed_by_person (src/devops_cli/roadmap/reprioritize.py:534) finds no key Milestone in an old record.

It then counts each item in a milestone as placed by a person. The jobs skip such an item when they place items (reprioritize.py:2007 and :2230). A Pending mark that holds the old names fails validation. _resumed (reprioritize.py:1422) catches the error, so the job does not resume that change.

The proposal is to rename the key and to ship no read shim, as the pre-1.0 rule asks. A person confirms this choice before work starts. The item records the choice in its change. The tests below pin it.

What it deletes

It deletes the old names and nothing else. It deletes no file and adds no alias.

It changes 299 lines in 34 files at f3b17488. This is a rename, so the net change in lines is zero.

Other items delete at least 16 of these lines first.

  • roadmap/close.py: 8 lines.
  • roadmap/migrate.py: 5 lines.
  • tests/test_roadmap_migrate.py: 1 line.
  • commands/pr.py: 2 lines.

The item counts again when work starts.

Tests

Write the tests first. The first two fail on the old names.

  • tests/test_roadmap_config.py: the limit test uses milestone_cap, milestone_slots and milestone_limit. The unknown-key test gains the case release_cap = 12, which fails and names release_cap. The test of the committed file reads milestone_* keys.
  • tests/test_roadmap_github_store.py: a test shows that decode_job_record leaves out the key Release and that encode_job_record keeps it. This pins the choice of no read shim.
  • tests/test_roadmap_store_contract.py: a test shows that each ItemField member names an attribute of Item.
  • tests/test_architectural_invariants.py: an AST test shows that no identifier in src/devops_cli/roadmap contains release, in any letter case. If it finds a name that means a GitHub Release, stop and comment on this issue. Do not add an exemption.
  • tests/test_roadmap_quota.py, tests/test_support_builders.py and the other roadmap tests use the new names.

Order and dependencies

This item is the last of step 12 in the sequence of ADR 0012. The pull request targets main. It says Closes #<issue> for this issue and does not use Part of. Its title is the changelog entry.

Start this item after the old pipeline publishes v0.2.39, its last release. The ADR allows only inert work before then. These items merge first.

  • feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 (step 6): topic pull requests target main from then on.
  • "docs(workflow): the instructions describe trunk, derived versions and the release pull request" (step 9). It writes the glossary terms that the new names follow.
  • "refactor(roadmap): a milestone is identified by its number and ordered by its due date, and its title is never parsed as a version".
  • "refactor(roadmap): the planner creates date-titled milestones and closes a milestone when every issue in it is closed".
  • "refactor(github): closing pull requests come from GitHub's closingIssuesReferences and the keyword parser goes".
  • "refactor(roadmap): delete the one-time ADR 0001 roadmap migration".
  • "refactor(pr): delete the Copilot pass budget and the review-thread filing command".

The ADR sets no order for two more items. This is a choice, not a coupling.

Group D3 of #1864 sets the time of the person-only rename of the open milestones.

Not in this item

  • The setting release_copilot_passes. The Copilot item above deletes it.
  • The setting bucket_days. This item of the Order list adds it:
    • "refactor(roadmap): a milestone is identified by its number and ordered by its due date, and its title is never parsed as a version"
  • The live board title. The template name stays, and a person decides about the live board.
  • The wording of the ship and branch sentences in the help text. The planner items above rewrite it.
  • Names that mean a GitHub Release.

Acceptance criteria

  • git grep -nE 'class (Release|ReleaseState|ReleaseWrite|ReleaseGrowth)\b|ItemField\.RELEASE|\b(in_release|find_release|items_by_release|open_releases|current_release|release_cap|release_slots|release_credit|release_credit_base|release_credit_per_delivered_item|release_item_target|make_release)\b|\.release_limit\b|def release_limit\b|DEFAULT_ROADMAP_RELEASE_' -- . ':!CHANGELOG.md' ':!docs/adr' ':!docs/agent' prints nothing. At f3b17488 it prints 299 lines.
  • git grep -niE 'release' -- .github/roadmap.toml prints nothing. parse_roadmap_config reads the file with milestone_* keys only.
  • A test shows that parse_roadmap_config refuses a file with release_cap = 12 and names the key.
  • A test shows that decode_job_record leaves out the key Release and that encode_job_record keeps it.
  • A test shows that each ItemField member names an attribute of Item.
  • An AST test shows that no identifier in src/devops_cli/roadmap contains release.
  • .github/project-template.json keeps its name, its view names and its group_by values. Lines 25, 50 and 68 say milestone.
  • devops docs generate --sync-readme changes nothing, and devops docs check passes.
  • uv run devops ci passes with at least 90 percent coverage.
  • Until feat(sdlc): an OpenSpec change folder is the record of every item, and readiness checks its archive #1847 merges, the pull request changes the task file of this issue. After it, the pull request archives its change folder as its last commit.
  • devops pr check-readiness passes for the pull request.

The settings file keys and the stored key change names. Under Conventional Commits that is a breaking change. The author decides if the title takes ! and a BREAKING CHANGE: paragraph. With !, the next version raises the minor (ADR 0012, Versioning and Milestones).

Person-only steps

Activity

  1. added
    type/refactor
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 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/refactor. The candidate renames internal names and structures without adding new features.
    • Priority: P2-Medium. This change improves clarity and aligns with ADR 0012 but does not fix a bug or add a feature.
    • Value: Medium. The change improves the project's clarity and maintainability for users who interact with the roadmap.
    • Effort: High. The change affects many files and requires renaming across source, tests, documentation, and configuration.
  3. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Delivered by #1952: roadmap/store.py has class Milestone, and no release name is left in the roadmap config or stores.

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

    type/refactor

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions