Skip to content

refactor(roadmap): run fix-checks as prepare, agent and publish phases - #6609

Merged
dan-petty merged 4 commits into
mainfrom
refactor/6601-fix-checks-phases
Nov 21, 2026
Merged

dan-petty merged 4 commits into
mainfrom
refactor/6601-fix-checks-phases

Conversation

@dan-petty

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

Copy link
Copy Markdown
Owner

The fix-checks repair now runs on three phases, apart from the App key (ADR 0030). devops roadmap step fix-checks --confirm takes --phase prepare|agent|publish|all and --work. all, the default, runs the three in one process on a run folder in the data folder, so the Job template stays as it is until #3700.

  • prepare judges the round with no agent code, and clones with no credential.
  • agent runs tier 1, the scope check and the model fix with no GitHub call, and starts only with no App key and no GitHub token.
  • publish reads the run files as data and takes its target from GitHub: the head branch, the judged head, the bot and the workflow files of the merged plan. It applies the patch with git apply --cached as one commit of the bot, checks the claim before the push, and pushes with a lease.

roadmap/phases holds the shared parts, for stage later (#6528). Part B of #3702.

Closes #6601
Change: openspec/changes/archive/2026-11-21-6601-fix-checks-phases/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 21, 2026
The fix-checks repair runs on three phases (#3702, ADR 0030). prepare
judges the round with no agent code and clones with no credential in
the run folder. The agent phase runs tier 1, the scope check and the
model fix, makes no GitHub call, and writes its patch from a new git
folder. publish reads the outputs as data, checks the claim, applies
the patch as one commit of the bot, checks the claim again, and pushes
with a lease on the judged head. --phase all runs the three in one
process, so the Job template stays as it is.
publish builds the target of the push from the pull request as GitHub
holds it and from what it reads itself: the head branch, the judged
head, the bot of the App, and the workflow files that the merged plan
names on the default branch. It reads the state file as data and checks
it against the live pull request, and --phase all keeps the state of
prepare in memory. The agent phase starts only with no App key and no
GitHub token. The run folder of --phase all is in the data folder. ADR
0030 gets its Confirmation section.
prepare reads the URL of origin before any agent code runs, and publish
pushes to that URL. A separate publish takes only the URL of the
repository on GitHub, takes the check by the name of a failed check of
the judged head and its count of errors from its log, and gives its own
report for a round that prepare ended. The commit message and the
comment show the name of the check on one line, masked, with each
handle and link in a code span.
@dan-petty
dan-petty force-pushed the refactor/6601-fix-checks-phases branch from 7202bf6 to 9fae3d6 Compare November 21, 2026 08:07
prepare gives the report of a round that it ends, as the Job reads it,
and a separate publish gives no second report. publish refuses a state
that says the round ended while a repair or a ready mark is due.
prepare also refuses a clone, a --source clone too, whose origin is not
the URL of the repository on GitHub.
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 08:45
@dan-petty
dan-petty merged commit 8163782 into main Nov 21, 2026
30 checks passed
@dan-petty
dan-petty deleted the refactor/6601-fix-checks-phases branch November 21, 2026 12:26
dan-petty pushed a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.187.2](v0.187.1...v0.187.2)
(2026-11-21)


### Bug Fixes

* **roadmap:** fix the cause of a refused alternatives check
([#6617](#6617))
([c6395d8](c6395d8))


### Code Refactoring

* **roadmap:** run fix-checks as prepare, agent and publish phases
([#6609](#6609))
([8163782](8163782)),
closes [#6601](#6601)

---
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/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(roadmap): run fix-checks as prepare, agent and publish phases

1 participant