Repository navigation
Description
Friction
The planner still treats a milestone as a release. It names the next patch version with _patch_bump (reprioritize.py:1589). It runs a state machine of five states: PLANNED, STARTED, CUT, MERGED and SHIPPED. The next milestone starts only on the SHIPPED event. To find that event, the Service reads release pull requests and GitHub Releases. At each start, the planner also creates a release/vX.Y.Z branch.
ADR 0012 retires these rules. A milestone is a planning bucket. Its number identifies it and its due date orders it. Nothing releases when it empties. release-please derives each version from the Conventional Commit titles on main. No release/* branch exists.
Evidence
Counts come from the tip of release/v0.2.39 (commit f3b17488). A path without a directory is in src/devops_cli/roadmap/. Every other path starts at the repository root.
- State machine:
ReleaseState(reprioritize.py:242-251) has five members.TRANSITIONS(:416-461) has rows forCUT(:425,:426) andMERGED(:429), and oneSTART_NEXTrow onSHIPPED(:447).INHERITS(:463) gives aCUTorMERGEDmilestone the rows of the state before it. - State input:
release_state(reprioritize.py:711-726) reads the release pull requests of the milestone and the GitHub Release of its tag. - Version arithmetic:
_patch_bump(reprioritize.py:1589) has three callers. They are_next_release(:1622),_planned_titles(:2025) and_ensure_planned_release_with_room(:2281). - Branch writes:
_branch_writes(reprioritize.py:2032) creates the release branch at each start._select_tracked_branch(run.py:271) makes the Service clone track that branch (fix(roadmap): the job clone tracks the current release's branch while origin has it and the default branch otherwise, so close, refine and metrics run between a ship and the next release's start #1366). - Poll:
changes_since(github_store.py:1506) reads three listings: issue events, pull requests and GitHub Releases._ships_since(github_store.py:2446) reads the third. - Names: the first command under Acceptance criteria prints 164 lines in 18 files today. One line is in
close.py, which refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 deletes. - Prose: the second command under Acceptance criteria prints 41 lines in 6 files today. Four lines are in
close.py, and 15 are inreprioritize.py. - Tests: 32 test functions and helpers in 6 test files name a symbol that this item deletes or reworks. Their bodies hold 557 lines. The lifecycle machine models the old states with the rules
cut,uncut,ship_pull_request,publishedandship(tests/test_roadmap_lifecycle_properties.py:842-900). - The Service is suspended (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562). Nothing runs against these changes until a person reinstates it.
Existing tool considered
GitHub milestones keep the number, the title, the due date, the state and the counts of open and closed issues. The store already reads all of them (Release, store.py:232-249). The planner builds nothing for them. No open tool plans scope. release-please, towncrier, git-cliff and python-semantic-release derive versions and notes only (ADR 0012, What Stays Custom). So the admission engine stays: the cap (default 12), the slots (default 4) and the P0 and P1 placement.
Cost of the build. ADR 0012 gives about 150 net lines for the whole planner change. Three planner items share that figure: this item and two items named under Order and dependencies. The ADR gives no figure for tokens or for elapsed time. This item states its estimate of tokens to implement, maintain and fix, and of elapsed time, before work starts. Until it does, the build is a proposal.
Change
State and table (reprioritize.py):
ReleaseStatekeepsPLANNEDandSTARTED.DELIVEREDtakes the place ofSHIPPED.CUTandMERGEDgo.TRANSITIONSloses theCUTandMERGEDrows.INHERITSand the inheritance step ofdecidego.- The
START_NEXTrow fires onDELIVERED. OneDELIVEREDrow sends a critical fix to the next milestone. It replaces theMERGEDrow, which intake reads today (intake.py:607-612). Event.SHIPPED,Reason.CUT,Reason.MERGEDandReason.SHIPPEDgo, with their rows inREASON_GROWTH_GROUPSand_SILENT_REASONS, and their texts inMESSAGES.roadmap.reasons. The item names the new members.release_statereadsRelease.open_issuesandRelease.closed_issues(store.py:242-243). It reads no pull request, tag or GitHub Release.- A milestone is delivered when it has no open issue and at least one closed issue. A milestone with no issue is not delivered. The count includes pull requests, as the label at
src/devops_cli/commands/gh.py:346says. calculate_milestone_progress(src/devops_cli/github/milestones.py:23-44) already gives this rule for an open milestone throughis_complete. The planner reuses it and adds no second rule.
The next bucket comes from the number item. That item adds _next_bucket, bucket_days and DEFAULT_ROADMAP_BUCKET_DAYS, and it calls _next_bucket from _next_release, _planned_titles and _ensure_planned_release_with_room. This item adds none of them. The number item is:
- "refactor(roadmap): a milestone is identified by its number and ordered by its due date, and its title is never parsed as a version"
When a milestone is delivered, the run starts the next one with the ISO date title and the due date that _next_bucket gives. A milestone without a due date does not stop the planner, because _next_bucket then counts from the run date.
Close and start (reprioritize.py):
- The run closes each delivered milestone as its last write.
_close_releasekeepslast=Trueand closes by milestone number, the identity that the same item sets. - The start logic stays. It clears New and Blocked items and fills or trims to the cap and the limit. It records the admitted set and writes the
Sizemark last. Only its trigger changes. Priorities, caps, slots and critical-fix placement do not change. _plan_unshippedand_plan_behindkeep their present rules with delivered wording. A milestone closed by hand with open issues starts nothing. ADR 0012 does not cover these two cases.- The plan fields
shippedandunshipped, and their messages (reprioritize.py:3042-3053), get delivered wording. is_due(reprioritize.py:3257) loses the ship, cut and un-cut triggers. The close of the last open issue of the current milestone is already a trigger (ChangeKind.CLOSED).
Branches, pull requests and GitHub Releases:
- Delete
_branch_writes,_is_cutand its use in_fill_or_trim, and_select_tracked_branch.ensure_checkoutloses itscurrent_relparameter. The clone tracks the default branch of origin. - Delete
CONST_RELEASE_BRANCH_PREFIX(config/constants.py:3764). Its readers are_branch_writes,_select_tracked_branchand the readiness rules that feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 removes. The constantCONST_RELEASE_BRANCH_REis built from it. If the Copilot item has not merged, leave the prefix to that item, which deletesCONST_RELEASE_BRANCH_RE. - Delete
release_pull_requests,release_published,branchandcreate_branchfrom the store protocol and from both adapters. Deletepublish_releaseandseed_branchfrom the memory store. - Delete
is_release_pull_request,cuts_its_release, theChangeKindmembersRELEASE_CUT,RELEASE_UNCUTandRELEASE_SHIPPED, andRELEASE_CHANGE_KINDS. - In the GitHub adapter, delete
_ListedReleasePayload,_UpdatedPullRequestPayload,_GitHubReleasePayloadand_ships_since.changes_sincereads the issue events only. - Intake (
intake.py:607-612,intake_requests.py:155-171) and the dry-run request list (request_plan.py:538-553) stop reading pull requests and GitHub Releases.
Texts:
- Rewrite the module docstring of
reprioritize.pyand theChangeKinddocstring. Rewrite each docstring that names a release pull request, a branch or a ship. - Rewrite the help text of
devops roadmap reprioritize(src/devops_cli/lang/en/help.py:1128-1134andsrc/devops_cli/commands/roadmap.py:258). It says "branch the next one" today. - In
src/devops_cli/lang/en/messages.py, deletereprioritize_create_branchand the request textsrelease_publishedandcreate_branch(:1812,:1829,:2170,:2204). Delete each other text that nothing reads. - Regenerate
README.md,docs/CLI_REFERENCE.mdanddocs/MCP_TOOLS.mdwithdevops docs generate --sync-readme.
What it deletes
Counts are function and class spans from the Python AST at the tip.
- Whole functions and classes: 288 lines in six files.
store.pyhas 32,github_store.py148,memory_store.py32,request_plan.py12,run.py48 andreprioritize.py16. - Enum members, one set and table rows: about 20 lines. They are three
ChangeKindmembers andRELEASE_CHANGE_KINDS(store.py:127-138), theCUTandMERGEDrows (reprioritize.py:423-429) andINHERITS. - Reworked, not deleted:
release_state(16 lines),_next_release(7),_planned_titles(15),_ensure_planned_release_with_room(21),_plan_start(66),_plan_first_run(34) and_plan_close(30). - Poll requests:
changes_sincereads one listing instead of three. The reprioritize dry run lists four fewer requests, and the intake dry run lists two fewer. - Tests: the 32 functions and helpers named in Evidence. Some stay with a new body. Seven checkout tests in
tests/test_roadmap_run.py(:713-1064) passcurrent_rel. Two of them (:829-889) test only the release branch and go. Five drop the argument.
Tests
Line numbers in this section are in tests/test_roadmap_lifecycle_properties.py.
- Rewrite the lifecycle machine. One rule closes the last open issue of the current milestone. It replaces the five rules
cut,uncut,ship_pull_request,publishedandship. - Delete the invariant
a_cut_start_pulls_nothing_in_and_no_fix_joins_once_merged(:962-989). Reworda_shipped_release_gives_way_to_the_next(:992-1007). Update the count of 19 invariants. - Start each invariant message with a term that
CONTEXT.mddefines:Current milestone,Milestone growthorDelivered. Delete the termsCurrent release,Release growth,CutandShipfromCONTEXT.mdin the same pull request. - Delete
test_the_machine_fails_without_the_merged_release_lock_row(:1323-1366),test_a_merged_release_pull_request_locks_the_release_until_it_is_published(:1638-1651) andtest_a_fix_filed_while_the_release_pull_request_is_open_joins_and_ships_where_it_is(:1654-1678). - Add tests for each item under Acceptance criteria that names a test.
- The tests use the in-memory store as the one shared fake (ADR 0007). They make no GitHub request.
Order and dependencies
- This item starts after the old pipeline publishes v0.2.39. Nothing of the new plan merges before that, except ADR 0012. The pull request targets
main, and its body saysCloses #<this issue>. - This item is part of step 12 of the Cutover and Sequence in ADR 0012. It follows feat(release): release-please opens the release pull request, topic pull requests target main, and its merge publishes #1861 (the swap) and refactor(release)!: delete the bespoke release machinery, the roadmap close command and the changelog fragment code #1863 (the deletion of the release machinery, which removes
roadmap/close.py). - It needs the number item.
_next_bucketand_close_releaseuse its order and its identity. - That item removes
Release.versionand replaces_patch_bumpwith_next_bucket. This item calls_next_bucketand adds no naming rule. - Glossary:
test_each_invariant_message_starts_with_a_term_context_md_defines(:1300-1303) needs each invariant message to start with a term thatCONTEXT.mddefines.- The workflow documentation item keeps four old terms:
Current release,Release growth,CutandShip. It adds the termsCurrent milestone,Milestone growthandDelivered. - This item deletes the invariants that start with
Cut:andShip:. It moves the other invariants to the new terms. It deletes the four old terms fromCONTEXT.md. - The workflow documentation item is step 9, so it merges before this item. Its title is:
- "docs(workflow): the instructions describe trunk, derived versions and the release pull request"
- The workflow documentation item keeps four old terms:
- Three items edit the same files and rebase on each other. The second to land rebases. They are:
- "refactor(github): closing pull requests come from GitHub's closingIssuesReferences and the keyword parser goes" (
_delivered_issues). - "refactor(roadmap): delete the one-time ADR 0001 roadmap migration" (
_require_migrated). - "refactor(pr): delete the Copilot pass budget and the review-thread filing command" (
release_copilot_passesinRoadmapConfig).
- "refactor(github): closing pull requests come from GitHub's closingIssuesReferences and the keyword parser goes" (
- "refactor(roadmap): Release becomes Milestone in the planner, its settings and the board" merges after this item.
- Until this item merges, a mutating run of the planner still creates
release/vX.Y.Zbranches. Only a person runs it, and the Service is suspended (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562).
Acceptance criteria
- This command prints nothing:
git grep -nE "ReleaseState\.(CUT|MERGED|SHIPPED)|Event\.SHIPPED|Reason\.(CUT|MERGED|SHIPPED)|ChangeKind\.RELEASE_(CUT|UNCUT|SHIPPED)|RELEASE_CHANGE_KINDS|release_published|publish_release|is_release_pull_request|cuts_its_release|create_branch|seed_branch|_select_tracked_branch|_branch_writes|reprioritize_create_branch|INHERITS|release_pull_requests" -- src/devops_cli/roadmap src/devops_cli/commands/roadmap.py src/devops_cli/lang tests/test_roadmap_*.py tests/roadmap_*.py. - This command prints nothing:
git grep -niE "release pull request|release branch|GitHub Release|release/v" -- src/devops_cli/roadmap. -
git grep -n "CONST_RELEASE_BRANCH_PREFIX" -- src testsprints nothing. If the Copilot item has not merged, it prints only the two lines ofconfig/constants.pythat define the prefix andCONST_RELEASE_BRANCH_RE. - A test shows that a milestone with no open issue and one closed issue is delivered. The run closes it as its last write and starts the next one.
- A test shows that a milestone with no issue is not delivered.
- A test shows that the run which closes a delivered milestone starts the next one. The new milestone has an ISO 8601 date as title and the due date that
_next_bucketgives. - A test shows that
ReleaseStatehas the membersPLANNED,STARTEDandDELIVEREDonly. - A test shows that the keys of
MESSAGES.roadmap.reasonsequal the members ofReason. - A test shows that
is_dueis true when the last open issue of the current milestone closes. -
CONTEXT.mddefines none ofCut,Ship,Current releaseandRelease growth, andtest_each_invariant_message_starts_with_a_term_context_md_definespasses. - A test shows that
changes_sinceof the GitHub adapter reads one listing, the issue events. - A test shows that the dry-run request list holds no pull-request, GitHub Release or branch request.
- A test shows that
ensure_checkouthas nocurrent_relparameter and tracks the default branch of origin. - 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, and the change has a spec delta for the planner.
-
devops docs checkpasses, anduv run devops cipasses with at least 90 percent coverage.
Pending a person
- Pending a person: rename the open milestones and give each a due date, as group D3 of chore(settings): the release App, the release environment, the squash settings and the required checks are in place #1864 says.
- Pending a person: while the Service stays suspended (chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562), run
devops roadmap reprioritize --confirmonce from a personal account. Check that the new milestone has an ISO date as title and a due datebucket_daysafter the last one.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 2026
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.
The candidate changes internal logic without adding new features or fixing bugs.The change updates how milestones are handled in the roadmap but does not block other work or fix a critical issue.The change improves internal process and aligns with new ADR, affecting roadmap planning and release handling.The refactor touches multiple files and changes core logic for milestone state management.dan-petty commentedon Oct 23, 2026
Not planned: the planner is deleted by #1952. A person closes a planning milestone with devops gh milestones close.