Skip to content

feat(roadmap): the Service sets the status label and adds Planned - #2931

Merged
dan-petty merged 12 commits into
mainfrom
feat/2920-status-planned-and-status-writer
Oct 31, 2026
Merged

dan-petty merged 12 commits into
mainfrom
feat/2920-status-planned-and-status-writer

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

What

The Service now sets the Status label of a roadmap item from the job record. A new label, status/planned, marks an item whose plan is on the default branch.

  • The Status family has six labels: new, ready, planned, in-progress, in-review, blocked. .github/labels.yml and ADR 0016 list them.
  • One function, derive_status in roadmap/status_sync.py, maps the facts of an item to Ready, Planned or In Progress. The rows stage, implement and stage_ready call it, so the label and the record cannot drift. The next round repairs a drift.
  • The Service writes only an open item that holds Ready or Planned, and only when the label is the value that a job last recorded. A label that a person set stays. The sweep reads the issue again before it writes, so an old view cannot overwrite a newer change or label a closed issue.
  • The implement job takes a Planned item. The default filter adds status=planned.
  • The workflow clear-status reads the labels of the closed issue when it runs.

Why

An item showed status/ready while it was planned or while a Job ran. A person could not tell the states apart from the issue list. ADR 0016 says a job never reverts a person's change. This change keeps that rule.

Not done

Closes #2920

The sweep works from a list that is minutes old. A write from that list
could turn In Progress back to Planned, fail the stage job for a race
between two lanes, or label a closed issue. The sweep now reads the issue
again and skips an item that changed or closed. The workflow clear-status
reads the labels of the closed issue when it runs.

The Service derives no In Review and no Blocked: no round can reach them.
Drop the facts and the pull request read that served them. Add the checks
that a test could not fail before: a person's label change, and the
failed items of the sweep.
The runner Job sets In Review and the stop path of #2912 sets Blocked.
Say so in ADR 0016 and in the Planned entry of CONTEXT.md.
… Service sets (#2920)

Reword the requirements, the design and the proposal to what the code
does, add the cost of the new module, and add the review fixes as a task
group. The change stays archived.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Oct 31, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

Review findings fixed

  • Major, Blocked and In Review not set by the Service: the unreachable facts (blocked, the delivery pull request read) are removed. A mutation test showed no replay could reach them: a Job that dies leaves the item In Progress, and _report sets it Ready with a stop. ADR 0016, CONTEXT.md and the spec now say what the code does: the runner Job and devops pr ready set In Review, and feat(roadmap): a stop sets status/blocked and a new runner image clears it once #2912 sets Blocked.
  • Minor, person tests could not fail: they now assert failed == (). Mutation proof: with the record rule removed from owns_status, test_a_label_that_a_person_set_is_not_reverted fails. The replay now moves Planned back to Ready.
  • Minor, closed issue could keep a label, and minor, two lanes raced: sync_status reads the issue again before the write and skips an item that changed or closed. Three tests cover a person's change, a write of another lane, and a close. clear-status reads the current labels.
  • Minor, cost missing in the proposal: added token and time cost, and the corrected line count.
  • Minor, truthiness checks: is not None in run.py and implement.py.

Review findings declined

  • The review asked for a replay where the Service sets In Review. I removed that path instead (see above), so no replay applies. The Job-written In Review step stays in the round replay.

Merge notes

Merged origin/main twice. #2906 had set the default filter to status=ready, effort=low. This change adds status=planned and keeps the other additions of both sides.

@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 21:32
@dan-petty
dan-petty merged commit 8605473 into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/2920-status-planned-and-status-writer branch October 31, 2026 21:32
dan-petty pushed a commit that referenced this pull request Oct 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.34.0](v0.33.1...v0.34.0)
(2026-10-31)


### Features

* **cloudflare:** preview requests in dry run for cloudflare commands
([#2928](#2928))
([3113ecf](3113ecf)),
closes [#2252](#2252)
* **roadmap:** the Service sets the status label and adds Planned
([#2931](#2931))
([8605473](8605473)),
closes [#2920](#2920)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): add status/planned and let the Service set the status label from its job record

1 participant