Skip to content

feat(roadmap): add devops roadmap stage for Ready items - #2686

Merged
dan-petty merged 15 commits into
mainfrom
feat/2654-roadmap-stage
Oct 29, 2026
Merged

dan-petty merged 15 commits into
mainfrom
feat/2654-roadmap-stage

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops roadmap stage makes a Ready item Staged. For each item that a label filter names, the job makes the branch <type>/<issue>-<slug> at the fetched default branch. It writes the OpenSpec change of the item in task groups that each fit a token budget (roadmap.stage.step_tokens, default 40000). It makes one commit as the identity of the session, pushes it, and opens a draft pull request whose body starts with Plans #<issue>. The Status of the item stays Ready.

Why: a later implementation step can be too big for the context window of a model when an agent writes the task groups by habit. This job measures each group with tiktoken and the context packer. It sends a group over the budget back to the model once. A group still over the budget stops the item and a person decides.

The job selects only Ready items, whatever the filter says. It validates each change with openspec validate --strict --json against the base specs. It reconciles the staged branch of a closed item when only the identity of the session wrote to it. The Service row for the job is #2659.

Closes #2654

Plans #2654.

The change folder holds the proposal, the spec delta for the new
capability roadmap-stage, the design with its rejected alternatives, and
the tasks in five groups.
Plans #2654.

The stage job takes the open items that a label filter names, by default
the Ready P0 and P1 bugs. It leaves out a started item, an item to
split, an item of an author with no write access, an item with an open
dependency, a held item and an item whose text looks like a secret, and
it says why. Adds the setting roadmap.stage.step_tokens and the job
record keys of the stage job.
…task groups

Plans #2654.

The stage job asks the model for the change of an item in one
structured reply, measures each task group with tiktoken and the context
packer, asks once for a split of a group over the step budget, and
validates the change with openspec in a scratch directory. A failed
validation goes back to the model once. A reply with a closing keyword or
a secret stops the item.
…ll request

Plans #2654.

The stage job makes the branch on a worktree of the clone, writes the
change folder, makes one commit as the identity of the session, pushes
the branch and opens a draft pull request through the GitHub session. It
posts one comment, records the branch, the pull request, the commit and
the task groups, and leaves the Status alone. A group over the budget
gets a comment and a record. A pull request that cannot open leaves no
remote branch.
…e App wrote to

Plans #2654.

Each run looks at the staged branch of each closed item. When every
commit past the default branch has the identity of the clone as its
author, the job closes the draft and deletes the branch. It keeps both
when another author wrote to them, and it clears the record of a branch
that is gone.
Plans #2654.

The command takes --filter, --item, --limit, --step-tokens, --source and
one of --dry-run, --plan and --confirm. The report lists the items to
stage with their task groups, the items stopped on the budget, the items
left out with a reason, the items that failed, and the staged branches to
remove or to keep. A failed item makes the command exit 1 after the
others are staged. Adds the terms Staged and Step to CONTEXT.md.
… suppression ceiling

Plans #2654.

The command writes a branch, so the MCP server does not expose it. The
git helper of the stage tests carries no suppression comment.
…s add does

Plans #2654.

The reconcile of staged branches compares the author name of each commit
with the user name of the clone, the read that devops repos worktrees add
makes when it takes a staged branch over. The change folder follows main,
where that take-over is delivered.
# Conflicts:
#	src/devops_cli/commands/roadmap.py
#	src/devops_cli/lang/en/help.py
#	src/devops_cli/lang/en/messages.py
@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 17:18
@dan-petty
dan-petty merged commit abd016d into main Oct 29, 2026
17 checks passed
@dan-petty
dan-petty deleted the feat/2654-roadmap-stage branch October 29, 2026 17:18
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results: the full devops ci passed on the rebased tree (all 19 checks). The PR checks passed.

History: the review of the first version found nine items. They are fixed in this branch:

  • The job stages Ready items only, also when a filter names no status.
  • The model splits the task groups once for each item, so an item costs three model calls at most.
  • The validation runs with the base specs and --json, and every issue goes back to the model once. A MODIFIED requirement that the base spec lacks is now found before the push.
  • A timeout of the validation skips its item. A failed comment or record of a stopped item no longer stops the other writes.
  • The draft pull request uses GitHubClient.create_draft_pull, not devops pr create, and the proposal and the design say why. The capabilities come from the openspec/specs/ directory, and the design says why.
  • CONTEXT.md has its blank line.

The branch merged origin/main once after the first push, because a rebase would need a force push.

dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.18.0](v0.17.0...v0.18.0)
(2026-10-29)


### Features

* **roadmap:** add devops roadmap stage for Ready items
([#2686](#2686))
([abd016d](abd016d)),
closes [#2654](#2654)
* **roadmap:** add the devops roadmap implement command
([#2684](#2684))
([11b7cb5](11b7cb5)),
closes [#2664](#2664)

---
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): devops roadmap stage writes the change of a Ready item in context-sized task groups and opens its draft pull request

1 participant