Skip to content

feat(roadmap): devops roadmap implement runs every group of a staged change, archives it, fixes a failed check once and marks the pull request ready #2665

Description

@dan-petty

Problem or Motivation

Parent: #2661. Sub-issue 1 (#2664) runs one group. Nothing runs the groups of a staged change in order, archives the change, or moves the pull request to ready when its checks pass.

Proposed Solution & Architectural Design

devops roadmap implement [--repo] [--item N | --filter family=value]... [--limit 1] [--dry-run | --plan | --confirm].

Selection: a Staged item (stage.pr in its record, the branch on origin, the draft open) that the filter names, with no implement.stopped, a trusted author, and every commit past the default branch by the App. The default filter is status=ready priority=p0-critical priority=p1-high type=bug effort=low. --limit defaults to 1.

Per item:

  1. Set status/in-progress. Fetch, and rebase the staged branch onto origin/<default>. A conflict stops the item with a comment.
  2. Run each unticked group of tasks.md in order as one step (sub-issue 1), each in a fresh context. The only state between steps is the branch and the ticks.
  3. After the last group: uv run devops docs generate --sync-readme, then uv run devops openspec archive <change>, one commit each. Push.
  4. Rewrite the pull request body: Closes #N, the what and why of the proposal, and the trailers the squash takes, because the body is the squash commit message. Comment the step outcomes on the pull request, not in the body.
  5. devops pr monitor <pr>. A failed required check runs one fix step: a step whose group is "make check <name> pass", with the failed log, cut to CONST_ROADMAP_IMPLEMENT_LOG_CHARS, as its input. When it passes locally, the job pushes and monitors again. A second failure stops the item. The fix step runs at most once per item.
  6. Checks green and no unresolved thread: devops pr ready <pr>, status/in-review, and one comment on the issue with the pull request and the spend.

Stopped: the item's comment names the step, the reason and the agent's last message. implement.stopped records the group. The Status goes back to Ready. The branch keeps the App's commits, which worktrees add takes over (the sibling item of the parent). The job never retries a stopped item. A person edits the item, the change or the branch, and clears the record with a comment implement: retry.

The job record keeps implement.group, implement.sha, implement.pr, implement.stopped and implement.spend. The marker devops roadmap implement heads its comments. --dry-run makes no request.

Target Subsystem

src/devops_cli/roadmap/implement.py, src/devops_cli/commands/roadmap.py, src/devops_cli/github/ (the pull request body and ready calls through the store), CONTEXT.md.

Existing Tool Considered

devops pr monitor, devops pr ready, devops openspec archive, devops docs generate, and the step of sub-issue 1. The job builds the selection, the loop, the writes and the records, in refine's shape. Estimated cost: about 1,000 lines of code and tests, around 300k tokens of agent work and one and a half days of elapsed time.

Key questions

  • Why one fix step and not a loop? A second fix on a fix is what AGENTS.md rule 2 stops on. One fix with the log as evidence, then a person.
  • Who merges? A person. The job stops at ready.
  • What if main moved during the run? The job rebases before the push of step 3 and again before each push after a fix. A conflict stops the item.

Acceptance criteria

  • With GitHub, git and the model faked, a Staged low-effort P1 bug with two groups ends with two step commits, the docs and archive commits, a pushed branch, a body that starts with Closes #N, a ready pull request and Status In Review.
  • A failed check runs one fix step. A second failure stops the item with Status Ready, a comment and implement.stopped.
  • A conflict on rebase stops the item before any step.
  • An item that is not Staged, has implement.stopped, or has a commit by another author is left out, and the plan says why.
  • uv run devops ci passes, and devops docs generate --sync-readme is run.

Depends on: #2654, #2664.

Source: #2661

Activity

  1. added
    source/agent
    type/feature
    status/new
    value/high
    effort/high
    on Oct 29, 2026
  2. dan-petty commented on Oct 29, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The candidate adds a new 'devops roadmap implement' command that does not exist today.
    • Priority: P2-Medium. It completes the automated pipeline but no user is blocked by its absence today.
    • Value: High. It removes the manual step of running staged groups, archiving, fixing one check, and marking the PR ready.
    • Effort: High. The body estimates about 1,000 lines of code and tests plus 300k tokens of agent work.
    • Related: feat(roadmap): devops roadmap stage writes the change of a Ready item in context-sized task groups and opens its draft pull request #2654, which asks for a different change. Both items are steps in the same roadmap pipeline, but 2654 creates the staged change while the candidate runs and closes it.
  3. added
    priority/p2-medium
    on Oct 29, 2026
  4. removed
    status/new
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions