Repository navigation
refactor(roadmap): run fix-checks as prepare, agent and publish phases - #6609
Merged
Merged
Conversation
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.
dan-petty
force-pushed
the
refactor/6601-fix-checks-phases
branch
from
November 21, 2026 07:22
474e5a4 to
cd6dcc4
Compare
17 tasks
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
force-pushed
the
refactor/6601-fix-checks-phases
branch
from
November 21, 2026 08:07
7202bf6 to
9fae3d6
Compare
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
marked this pull request as ready for review
November 21, 2026 08:45
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fix-checks repair now runs on three phases, apart from the App key (ADR 0030).
devops roadmap step fix-checks --confirmtakes--phase prepare|agent|publish|alland--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.preparejudges the round with no agent code, and clones with no credential.agentruns tier 1, the scope check and the model fix with no GitHub call, and starts only with no App key and no GitHub token.publishreads 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 withgit apply --cachedas one commit of the bot, checks the claim before the push, and pushes with a lease.roadmap/phasesholds the shared parts, for stage later (#6528). Part B of #3702.Closes #6601
Change:
openspec/changes/archive/2026-11-21-6601-fix-checks-phases/