Skip to content

feat(roadmap): run implement as prepare, agent and publish phases - #6670

Merged
dan-petty merged 5 commits into
mainfrom
feat/3702-implement-phases
Nov 21, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/3702-implement-phases

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

The implement Job now runs on the phases of ADR 0030, with the publish of #6655. devops roadmap implement --confirm takes --phase and --work; all runs the three in one process.

No run pushes before publish, so the checkpoints go; a return to New takes back what earlier Jobs pushed. The symlink stop, the narrow token and the count line wait for #3700. About 1,000 lines move to implement_report.py: review with --color-moved.

Closes #3702
Change: openspec/changes/archive/2026-11-21-3702-implement-phases/

@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 Nov 21, 2026
@dan-petty
dan-petty force-pushed the feat/3702-implement-phases branch from b647f02 to 2dc0200 Compare November 21, 2026 19:07
@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #6670 has merge conflicts with main at commit 2dc02008bf9d. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

The implement Job runs each item on the phases of ADR 0030, on a plain
issue-branch flow (#3702): prepare clones the issue branch into the run folder,
the agent rebases and does the work with no GitHub credential, and publish
pushes the work and the archive as two commits of the bot with a lease.
…commit apart

- The settle of the rebase takes the side of the default branch by the
  stage of the index: `git rm` for a file that the default branch
  deleted. A git error of the settle aborts the rebase and stops the
  item as `conflict`, with nothing to push and the action `wait`.
- The agent writes three patches: the work, the archive commit alone
  and the work after it. `publish` commits each as the bot, so a later
  rebase can skip the archive commit.
- A second `publish` of a run with a result writes nothing, takes the
  draft from `implement.pr`, and deletes a branch only when `prepare`
  found none. A stop push records `implement.published_sha`.
- `prepare` records `implement.base` and `implement.plan_summary` once
  and clears `implement.repair_rounds`. A return to New moves the branch
  back to the base, or deletes a new branch and closes its draft, with a
  lease on the tip that `prepare` found.
- The agent takes the rebase choice of `prepare`. The step, the tool
  names and the return evidence go into code spans or a fence. A plan
  title with a closing keyword gives way to the title of the issue.
- The dry-run plan lists the calls of the three phases. The specs, the
  ADR addendum and the documents state what the phases do now.
@dan-petty
dan-petty force-pushed the feat/3702-implement-phases branch from 2dc0200 to adacda9 Compare November 21, 2026 20:22
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 20:47
@dan-petty
dan-petty merged commit 54de847 into main Nov 21, 2026
32 checks passed
@dan-petty
dan-petty deleted the feat/3702-implement-phases branch November 21, 2026 20:47
dan-petty pushed a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.189.0](v0.188.4...v0.189.0)
(2026-11-21)


### Features

* **roadmap:** run implement as prepare, agent and publish phases
([#6670](#6670))
([54de847](54de847)),
closes [#3702](#3702)


### Bug Fixes

* **git:** a failed token mint fails clearly in App mode
([#6673](#6673))
([fd1b859](fd1b859))
* **roadmap:** fix-conflict settles the version lines of uv.lock
([#6682](#6682))
([82ba605](82ba605)),
closes [#6623](#6623)

---
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>
dan-petty added a commit that referenced this pull request Nov 21, 2026
A `publish` of the implement phases that runs again now writes to the
right draft and the right record (review of #6670).

- `prepare` always writes `implement.pr`, so a new branch takes no
closed draft of an earlier Job.
- `_open_draft` updates an open draft of the App on the branch, so a
`publish` that died before the mark opens no second draft; a pull
request of another account stops the item.
- A withdraw that pushed clears `implement.base` at once, so a `publish`
that runs again returns the item to New.
- An issue title with a closing keyword stops the item before the push;
`closing_keyword_in` counts only an issue reference.
- The dry-run plan lists the delete of a refused draft, the calls of
each withdraw and the fetch of the lease.
- SECURITY.md, three docstrings, a setting and two spec texts describe
the phases.

Closes #6687
Change:
`openspec/changes/archive/2026-11-21-6687-new-branch-run-reuses-closed-draft/`
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): run implement and fix-checks as prepare/agent/publish phases

1 participant