Repository navigation
Closed as not planned
Labels
scope/releaseThe release-please workflow, the changelog and the published artifactssource/agentFiled by an agenttype/bugType bug: the code does not do what it must
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)." Under it, this item is built, tested offline and merged while the Service stays at 0 replicas. Only its live check waits for the Service.
- The title drops "the Service's". With the Service at 0 replicas, a person runs
devops roadmap close --confirmanddevops roadmap run --confirmfrom their own account (AGENTS.md:150), so the body's "In production no one runs the CLI" no longer holds.run --confirmcalls the samerun_due_jobsand_run_close_adapter, so both gaps reach the CLI: in a data directory with no close stamp it never runs close, and once close is due it swallows unread check runs. - The close row's
first_run_due=Truecomes first. Without it, a repository with no close stamp runs close only on a pull_request-closed webhook, so neither "the next round retries" nor the CLI's own "The next run retries" holds for polling. - A close round that fails on unread check runs still passes the closings it applied to reprioritize's cross-job trigger, and it records no close success. Otherwise those closings never trigger reprioritize before its daily run, because the next round's change read drops the session's own writes.
- The shipped-items gauge is labelled by repository and release, and each close round rewrites that repository's series. The Service manages several repositories, and a release whose items are closed later must read 0, not its last count.
- The silent reprioritize round from the 2026-10-09 comment is folded in. It comes from the same comment and the same file, and the fix is one log line.
Scope, in this order:
- The close row in
RELEASE_LANE_ROWSgetsfirst_run_due=True. A repository with no close stamp then runs close in its first round, and in every round until close first succeeds. _run_close_adapterapplies the closings it could plan, then fails the job and names eachplan.unreadline, asdevops roadmap closedoes._run_close_adapterlogs the open and reopened items of eachClosePlan.shippedentry under its release, and exports their count per repository and release as a gauge._run_reprioritize_adapterlogs the plan's unshipped or behind notice at INFO when the round starts nothing.
- Stays elsewhere: setting
Change.releaseon the close adapter's changes belongs to refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416.
Delivery
- One pull request (M) that fixes 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.
Acceptance criteria
-
tests/test_roadmap_run.py: the default table's close row hasfirst_run_dueTrue, and a repository with no close stamp runs close in its first poll round. -
tests/test_roadmap_run.py: a checks reader returnsunread_reasonfor one pull request. The job applies the other closings and fails naming that pull request,schedule.jsongets no close stamp, and the next poll round runs close again. -
tests/test_roadmap_run.py: in that failing round, a closing applied in the current release still makes reprioritize due through_reprioritize_cross_job. -
tests/test_roadmap_run.py: a closed Release holds one item that no pull request delivers and one that a person reopened. The job logs both under that release, and the gauge reads 2 for that repository and release. -
tests/test_roadmap_run.py: with no such Release, the job logs nothing more and the gauge reads 0. Once a later round finds that release with no open item, its gauge reads 0, and another repository's series is unchanged. -
tests/test_roadmap_run.py: a reprioritize round whose plan hasunshippedorbehindset and starts nothing logs that notice at INFO. - The failure is a
DevOpsCLIErrorsubclass. Every GitHub-sourced string in its details and in the new log lines (unread reason, item title) is capped at 256 characters. - The gauge's name is a constant beside the
CONST_SERVICE_METRIC_*names insrc/devops_cli/config/constants.py. - Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses. -
changelog.d/1414.mdexists, under### Fixed. - Pending a person: once the Service runs again, the gauge shows on its
/metricsdashboard, and an unread round shows in the Service log and indevops_cli_service_jobs_total{result="error"}.
Current references (main 3dd7fa6)
src/devops_cli/roadmap/run.py:658-664: the close row has nofirst_run_due, and the field defaults to False (run.py:152).src/devops_cli/roadmap/run.py:740-750:_is_interval_duereturnsrow.first_run_duewhen there is no stamp (:746-747).src/devops_cli/config/constants.py:2293-2295: close's only batch key is the pull_request-closed webhook.src/devops_cli/roadmap/run.py:483-543:_run_close_adapterignoresplan.unreadandplan.shipped.src/devops_cli/roadmap/run.py:546-577:_run_reprioritize_adapterlogs nothing when its plan starts nothing.src/devops_cli/roadmap/reprioritize.py:2713-2716: the unshipped and behind notices, in_headline_text(:2701-2717).src/devops_cli/roadmap/run.py:891-908:_execute_due_rowsrecords an outcome and stamps success only when the runner returns.src/devops_cli/roadmap/run.py:403-421:_reprioritize_cross_jobreadsoutcomes["close"].src/devops_cli/roadmap/run.py:807: a round's change read drops the current actor's writes.src/devops_cli/roadmap/close.py:116-125(ShippedClosure) and:129-146(ClosePlan, withunreadandshipped).src/devops_cli/lang/en/messages.py:1651-1654:close_unread, which promises "The next run retries."src/devops_cli/commands/roadmap.py:497-499: the CLI exits 1 on unread.:557-583:run_cmdcallsrun_due_jobswith a poll batch only (:577).src/devops_cli/config/constants.py:1058-1065: the Service metric names.src/devops_cli/telemetry/metrics.py:102-115:set_gauge.:160-167:clear_metric, which drops the whole metric, every repository's series with it.src/devops_cli/exceptions/roadmap.py:19:RoadmapRunError.
Dependencies and order
- chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 is closed (completed), and the account is still suspended. Under D1 it no longer blocks building.
k8s/devops/roadmap-service/deployment.yaml:12stays atreplicas: 0, pinned bytests/test_k8s_roadmap_service.py:49. chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's task file names 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 among the blocked items, though the same line keeps fixes to jobs the CLI also runs open for work (docs/agent/tasks/task-1562-suspend-roadmap-service.md:19). D1 is what lifts the block. status/blockedstays for now, becauseAGENTS.md:151still holds items labelled for chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562. Under the plan's label step, it comes off once D1 is taken and the docs(agents) block-scope item lands. D1 is taken; the block-scope item is P0, drafted for v0.2.38 and not yet filed.- fix(roadmap): closure closes the items delivered into a release whose milestone has already closed #1362, fix(roadmap): a shipped release starts the next one without a person: the poll reports the ship, and close and reprioritize run before a capped intake batch #1360 and fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400 are closed (completed) in v0.2.29. The fields this item reads exist.
- refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416 is open, has no milestone and is
status/blockedon chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562. It lands after this item and rebases onto it, because both edit_run_close_adapter. A 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 on refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416 records the order. - Placement: no milestone. The unblocking plan leaves it to reprioritize, run by a person. The blocker rule raises nothing, because refactor(roadmap): roadmap run decides whether closure made reprioritize due from the milestones closure read, with no board or issue read #1416 has no priority.
Problem
devops roadmap close exits 1 when a merged pull request's check runs can't be read: plan.unread is non-empty (src/devops_cli/commands/roadmap.py:477-479). Its text also names, under each closed Release that still holds an open issue, the items no merged pull request delivers and the items a person reopened (ClosePlan.shipped, #1362). The Service's close adapter, _run_close_adapter (src/devops_cli/roadmap/run.py:349-408), uses neither. It returns only the numbers it closed.
- Unread check runs. Such a pull request closes nothing, the round succeeds, and no log line or metric reports it. The next run retries without anyone seeing the failure. Since fix(roadmap): closure closes the items delivered into a release whose milestone has already closed #1362 this also covers a shipped release's pull requests, whose items stay open until a run can read their checks.
- A shipped release's open items. An item a closed milestone still holds, whether no pull request delivers it or a person reopened it, is named only in the CLI's text. In production no one runs the CLI. So a release that ships with an item left open by mistake stays that way, as v0.2.28's four items did on 2026-10-07 until a person closed them by hand.
Proposed remedy
- When
plan.unreadis non-empty, the adapter applies the closings it could plan and then fails the job, naming each unread line, as the CLI does. The round's failure then shows in the Service log andservice_jobs_total. - The adapter logs each
ClosePlan.shippedsection's open and reopened items under its release. It exports their count per release as a gauge on/metrics, so a shipped release that still holds an item shows on the dashboard.
Acceptance criteria
tests/test_roadmap_run.py: with a checks reader that returnsunread_reasonfor one pull request, the job applies the other closings and fails naming that pull request, and the next round retries.tests/test_roadmap_run.py: with a closed Release that holds one item no pull request delivers and one a person reopened, the job logs both under that release and the gauge reads 2 for it. With no such Release, the job logs nothing more and the gauge reads 0.- Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses.
Found while delivering #1362 (skeptic and adversarial reviews). Related: #1362, #1360, #1400.
Metadata
Metadata
Assignees
Labels
scope/releaseThe release-please workflow, the changelog and the published artifactssource/agentFiled by an agenttype/bugType bug: the code does not do what it must
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 caused a real production gap (v0.2.28 items left open until manual closure) but the system still closes what it can, so it is an observability failure rather than a total outage.Without this fix, shipped releases can silently hold open items and unread check runs go unreported, requiring manual intervention to notice and resolve.Requires modifying the adapter to handle unread check runs, adding per-release logging, exporting a new metrics gauge, and writing offline tests for both scenarios.dan-petty commentedon Oct 9, 2026
Finding: v0.2.29 Service gap assessment (2026-10-09)
Two small Service gaps that fit this item's scope:
run.py_run_reprioritize_adapterignoresplan.unshippedandplan.behindand logs nothing, so the v0.2.29 ship that read as "closed, not shipped" (release PR without its milestone, see fix(release): a release pull request rehearses the cut and the release job read-only, so a green pull request means the release job passes on merge #1425) left no trace beyond the clone's "tracks main" line. Proposed: log the plan's notice at INFO when the round starts nothing.DEFAULT_DUE_TABLEhas nofirst_run_due, and_is_interval_duereturnsrow.first_run_duewhenlast_runis None. Every managed repository onboarded since 2026-10-08 has run about 30 rounds with noclosekey inschedule.json; only a pull_request-closed webhook would ever start it. Proposed:first_run_due=Trueon the close row, with a test that a repository with no close stamp runs close in its first round.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
[-]fix(roadmap): the Service's close job fails on unreadable check runs and reports the items a shipped release leaves open[/-][+]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[/+]dan-petty commentedon Oct 23, 2026
Not planned: the close job is deleted with devops roadmap close in #1952. GitHub closes issues natively when a pull request merges into main.