Skip to content

refactor(roadmap): the stage agent is stock Coder - #6883

Merged
dan-petty merged 11 commits into
mainfrom
refactor/6705-stage-agent-on-stock-coder
Nov 23, 2026
Merged

dan-petty merged 11 commits into
mainfrom
refactor/6705-stage-agent-on-stock-coder

Conversation

@dan-petty

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

Copy link
Copy Markdown
Owner

The stage Job takes --phase prepare|agent|publish|all and --work. all stays the default and runs run_stage_job in one process, so CronJob roadmap-stage does not change until #6814.

  • prepare decides what needs no model, commits the dated scaffold and writes the state, an issue listing and the inputs.
  • agent refuses each GitHub credential and runs stock Coder with RequireVerification and the three checks. It writes the patch, the body candidate and a StageOutcome.
  • publish trusts no end of the agent, allows only plan files, builds the texts with stage_candidate.py, and pushes once with the checks in before_push.
  • plan-recheck takes --base, --candidate and --issues, and a run with a base exits 1 for a folder that is not ok.
  • The checks take 12.7 s, 0.2 s and 17.5 s on a clone of main.

A test with a fixed commit time shows the same push and writes as --phase all for one plan.

Closes #6705

Change: openspec/changes/archive/2026-11-23-6705-stage-agent-stock-coder/

@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 23, 2026
Add --base, --candidate and --issues to devops roadmap plan-recheck, and
the builder of the plan texts from the body candidate (#6705).
prepare reads the round, decides the job-time premise, the false premise
and the blocker of an open plan, and else commits the dated scaffold and
writes the state, the issue listing and the inputs of the agent (#6705).
build_stage_agent gives LocalWorkspace a scratch home and the config of
publish, Coder with no repository context and no delegate_task, and
RequireVerification with the three checks and no exempt path (#6705).
run_stage_agent refuses the App key, a GitHub token and a gh login, runs
the stage agent with no request limit, and writes the patch of the change
folder, the body candidate and a StageOutcome (#6705).
publish reads the outputs of the agent as data, allows only the files of
a plan, builds the texts with stage_candidate, cleans them and fits the
plan-state comment, and runs the three checks in before_push of its one
publish_patch. It trusts no end that the agent reports (#6705).
devops roadmap stage --job-item <n> --confirm takes --phase
prepare|agent|publish|all and --work. A phase other than all hardens the
process and runs its phase; all runs run_stage_job as before (#6705).
docs/roadmap/stage.md describes the three phases and the times of the
three checks; plan-recheck.md the base, the candidate and the listing;
ADR 0030 gets an addendum, and the knowledge base RequireVerification
(#6705).
The body of ADR 0030 holds 998 of its 1000 words, so the addendum of the
stage Job does not fit; task 10.2 stays open (#6705).
The stage agent runs stock Coder in an agent phase with no GitHub
credential, and publish is the check. ADR 0036 amends ADR 0030, whose
body has no room for an addendum (#6705).
Catch specific agent runtime and CLI errors instead of blind Exception to satisfy the swallowed-failures check (#6705).
@dan-petty
dan-petty force-pushed the refactor/6705-stage-agent-on-stock-coder branch from a2b74e8 to 0bbd0b6 Compare November 23, 2026 16:45
@dan-petty
dan-petty marked this pull request as ready for review November 23, 2026 16:53
@dan-petty
dan-petty merged commit 4431302 into main Nov 23, 2026
30 checks passed
@dan-petty
dan-petty deleted the refactor/6705-stage-agent-on-stock-coder branch November 23, 2026 16:56
dan-petty-release Bot added a commit that referenced this pull request Nov 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.201.6](v0.201.5...v0.201.6)
(2026-11-23)


### Code Refactoring

* **roadmap:** the stage agent is stock Coder
([#6883](#6883))
([4431302](4431302))

---
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): the stage agent is stock Coder

1 participant