Repository navigation
Description
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." This item needs no running Service:
_reprioritize_cross_jobalso runs in a person'sdevops roadmap run --confirm, and its acceptance is offline tests only. status/blockedstays until the block-scope docs item ("docs(agents): the roadmap service's suspension holds its deployment, not its development, so service items are built and tested while it stays at 0 replicas", not yet filed) rewritesAGENTS.md:151, and a person then removes it, because that line still keeps every item labelled for chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 blocked, anddocs/agent/tasks/task-1562-suspend-roadmap-service.md:19still lists refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416 among the 15 blocked items.Change.releasecomes from each closed issue's own milestone, carried onClosingfrom closure's singlestore.issues()read, never from a closing's position afterClosePlan.shipped:_closingscloses any open issue that a pull request merged into the current branch names, including one with no milestone or in a later release, so position would make reprioritize due for an issue outside the current release.- The body's alternative remedy (a
JobOutcomenaming the current release's closings) is dropped: it would need the same per-issue milestone, andChange.releasealready carries it. JobOutcome.closed_itemsis deleted with its loop, because the predicate is its only reader and the codebase keeps no unused fields.- Retitled without "the Service", because the predicate also runs in a person's
devops roadmap run --confirm. - Out of scope: when fix(roadmap): the close job runs in a repository's first round, fails on unreadable check runs and reports the items a shipped release leaves open #1414's close job fails on an unread check run after applying its other closings,
_execute_due_rowsrecords no outcome for it (run.py:891-907), so those closings reach reprioritize only through its once-a-day stall check (_reprioritize_due,run.py:386-389;reprioritize.py:2935-2937) instead of this predicate; changing that touches every row's failure path.
Scope
Closinggainsrelease: str | None, set in_closingsfrom the issue'sIssueRecord.releaseasplan_closeread it._run_close_adapterbuilds eachChangefromplan.closingswithrelease=closing.release._reprioritize_cross_jobis due only when aCLOSEDchange'sreleaseis in the current release; it reads nothing from the store and keeps the shared predicate signature, ignoring the store as_refine_cross_jobdoes (run.py:424-425).- The adapter's per-change
_current_actor(store)call (run.py:538) stays as it is; whether it fails closed is fix(roadmap): the job clone and the change filter fail closed when the session login lookup fails, instead of falling back to a made-up devops-cli identity #1409's change, not this item's.
Delivery
- One PR, size S, on the active release branch after fix(roadmap): the close job runs in a repository's first round, fails on unreadable check runs and reports the items a shipped release leaves open #1414 merges, rebased onto it; it closes refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416.
Acceptance criteria
-
tests/test_roadmap_run.py: a round whose closure closes one shipped item and one current item makes reprioritize due, and one that closes only a shipped item does not; neither reads the store after closure (a store whoseitem()raises, or a count of reads at the process edge). -
tests/test_roadmap_run.py: a round whose closure closes an issue with no milestone, or one in a later release, named by a pull request merged into the current release branch, does not make reprioritize due. -
tests/test_roadmap_close.py: eachClosingin a plan carries the milestone title its issue had in thestore.issues()read, for shipped, current and no-milestone issues. -
JobOutcome.closed_itemsno longer exists;test_due_table_scenariosandtest_order_and_cross_job_triggersstub closure withChange(kind=ChangeKind.CLOSED, release=...)instead. - Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses. - A
changelog.d/1416.mdfragment exists under### Changed.
Current references (verified at 3dd7fa6; unchanged at the release/v0.2.37 head 4ee3e01)
_reprioritize_cross_job:src/devops_cli/roadmap/run.py:403-421, withstore.itemreads at:411and:418; registered as the reprioritize row'scross_job_predicateat:670and evaluated at:878-879(dry run:821-822)._run_close_adapter:run.py:483-543; a localclosed_itemstaken fromplan.closingsat:501; eachChangebuilt with noreleaseat:534-542.JobOutcome.closed_items: declared atrun.py:121, read only at:410and set only at:543(from the adapter's local of the same name,:501and:541).GitHubRoadmapStore.item:src/devops_cli/roadmap/github_store.py:1462-1468(board read:1464, REST issue read:1467).Closing:src/devops_cli/roadmap/close.py:93-99, built only at:310inside_closings(:274-313), which is called for shipped releases at:376and for the current release at:452.plan_closereads every issue once atclose.py:411and hands every issue a shipped release did not close to the current release's_closings(:431-432,:452).Change.release:src/devops_cli/roadmap/store.py:311;IssueRecord.release:store.py:335;in_release:store.py:538-540.- Person-run path:
src/devops_cli/commands/roadmap.py:577callsrun_due_jobs(run.py:919). - Tests that stub
closed_itemstoday:tests/test_roadmap_run.py:299-300and:329(test_due_table_scenarios,:232), and:463(test_order_and_cross_job_triggers,:422). - chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's exemption for jobs the CLI also runs:
docs/agent/tasks/task-1562-suspend-roadmap-service.md:19(the same line lists refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416 as blocked); the rule still in force:AGENTS.md:151.
Dependencies and order
- fix(roadmap): the close job runs in a repository's first round, fails on unreadable check runs and reports the items a shipped release leaves open #1414 (open, no milestone,
status/blockedon chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562; the unblocking plan refreshes it under D1): lands first, since both rewrite_run_close_adapter; the native "blocked by fix(roadmap): the close job runs in a repository's first round, fails on unreadable check runs and reports the items a shipped release leaves open #1414" link is in place. - fix(roadmap): the job clone and the change filter fail closed when the session login lookup fails, instead of falling back to a made-up devops-cli identity #1409 (open, v0.2.38, not blocked): makes
_current_actor's callers fail closed, and the adapter calls it atrun.py:538; no order is needed, and whichever lands second rebases. - The block-scope docs item (not yet filed): once it merges, a person removes
status/blockedhere. - fix(roadmap): closure closes the items delivered into a release whose milestone has already closed #1362 and fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400: closed (completed) in v0.2.29;
ClosePlan.shippedis atclose.py:140. - chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562: closed (completed); D1 limits its hold to the deployment.
- Milestone: none. refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416 blocks nothing, so the owner's blocker rule leaves its priority unchanged.
Problem
_reprioritize_cross_job (src/devops_cli/roadmap/run.py:282-300) decides whether closure made reprioritization due by asking the store, for each number closure closed, whether that item is in the current release. It calls store.item(num) in its closed_items loop, and again in its changes loop, because _run_close_adapter builds each Change with no release (run.py:399-407). On GitHubRoadmapStore, item() (src/devops_cli/roadmap/github_store.py:1334-1340) reads the board listing the first time the store needs it, a GraphQL read with its budget probe. It also makes one REST issues/{n} read on every call.
Since #1362, closed_items lists first the closings of a closed release that still held an open item. Those are never in the current release, so each costs two issue reads before the loop reaches a current item. A round that closes only such items reads the board and every closed issue just to learn that reprioritize is not due. Closure already knew the answer: it read each issue's milestone, and ClosePlan.shipped separates those closings from the current release's.
Proposed remedy
_run_close_adapter sets each Change.release from the issue closure read, or its JobOutcome names the current release's closings on their own. _reprioritize_cross_job decides from that alone, with no store read, and its closed_items loop goes.
Acceptance criteria
tests/test_roadmap_run.py: a round whose closure closes one shipped item and one current item makes reprioritize due, and one that closes only a shipped item does not. Neither reads the store after closure (a store whoseitem()raises, or a count of reads at the process edge).- Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 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.
It removes unnecessary board and issue API reads that add latency and API cost to every close round, but the current behavior is correct so it is not urgent.Eliminating a board GraphQL read plus per-issue REST reads on every close round meaningfully reduces API usage and round latency for all users of the roadmap service.The change is confined to setting Change.release in _run_close_adapter and simplifying the _reprioritize_cross_job loop, with a clear acceptance test described.dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code
[-]refactor(roadmap): the Service decides whether closure made reprioritize due from what closure read, with no board or issue read[/-][+]refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read[/+]dan-petty commentedon Oct 23, 2026
Not planned: closure and reprioritize are both deleted by #1952.