Repository navigation
Description
Problem
The implement Job and the fix-checks Job run the agent shell in the runner container, next to the App private key (#2695). The parent item chose a sequential split. The phases prepare, agent and publish run one after the other, and only prepare and publish hold the App key. The job code has no phases yet, so the template cannot split a run.
Expected
devops roadmap implement and devops roadmap step fix-checks take --phase prepare|agent|publish|all. #3700 then runs each phase in its own container. all runs the three phases in one process, so the current one-container template keeps working until #3700 changes it.
prepare(App key): it reads the item and the plan from GitHub, runs_require_unclaimed, claims the item and sets the status In Progress. It makes the anonymous clone and runs the sync. It writes a state file to a folder that the agent does not mount. The state file holds the base SHA, the branch, the mode, the lease SHA, the title, the labels and theworkflowsflag.preparewrites the issue text for the prompt to the work folder.agent(model key only): stockCoderwith the scoped checks and pre-commit. It writesout/agent.patch,summary.jsonandoutcome.json.publish(App key): it reads the state file and the agent outputs as data. It applies the patch, commits, pushes, and opens or updates a draft PR.
Acceptance criteria
Phases
-
--phase prepare|agent|publish|allexists ondevops roadmap implementand ondevops roadmap step fix-checks. A test shows thatallkeeps the one-container template working. - Each phase calls
deny_environment_readsas its first step, before it reads a file or starts a child. A test checks this order in each phase. -
prepareruns only git calls and GitHub API calls: nouv, no pre-commit, no tier 1 of fix-checks and no docs step._install_hooks, tier 1 and the docs step move to the agent phase. A test runsprepareon a branch with a hostile hatch build hook and shows that no child other than git starts. -
preparemakes a plain full clone in a folder that is new to the run, before any code of the pull request runs, and switches to the issue branch. It records the tip of the default branch and the lease: the tip of the pushed branch, or empty for a new branch. It pushes nothing. The base of the patches is the lease when the lease is not empty and the run makes no rebase (--no-rebase); in every other case, a new branch too, it is the tip of the default branch, which is on GitHub.
Agent phase
- The agent phase holds no GitHub credential and makes no GitHub call. It may use anonymous HTTPS to github.com and the package index for
uvand pre-commit. The prompt gives the agent the phase contract: no push, no PR and nodevops ghcall. The output files are the result. - The agent phase rebases onto the base and settles each stop as a developer does:
git rebase --skipfor the archive commit of the item (the commit that moves its change folder intoopenspec/changes/archive/),git checkout --oursand a new generation for the generated documents anduv.lock. Another conflict aborts the rebase and stops the item with the classconflict. The implement job no longer callsfix_rebase_conflict. - Before it writes the outputs, the agent phase ends the leftover processes once (
end_leftover_processes). It writes each patch withgit diff --binary --full-index --no-color --no-ext-diff --no-textconv --src-prefix=a/ --dst-prefix=b/and checks the exit status of git, so no diff setting of the clone or of the home folder changes the patch. The implement patches go from commit to commit:work.patchup to the commit before the archive commit, andarchive.patchfrom there, so the archive stays its own commit. - PID 1 of the agent phase prints the token counts and the result counts as one line on stdout. feat(roadmap): add the three-container runner Job, policy and log reads #3700 makes the Service read that line from the container
agent. - The agent phase writes the PR body candidate, with the model rewrite of the body.
publishgets no model key.
Publish phase
-
publishreads the state file from its own folder. It checks each parent folder of the agent outputs withlstat, and opens each file withO_NOFOLLOW|O_NONBLOCK. It refuses a file that is not a regular file, and it checks the size withfstatbefore it reads. -
publishtakes only numbers and enum values fromsummary.jsonandoutcome.json. It fences and masks all text from these files. -
publishmakes a new repository, asactions/checkoutdoes: it fetches the base, and the lease when it is another commit, at depth 1, and checks out the base. It applies each patch withgit apply --indexand commits it as the bot. Until feat(roadmap): add the three-container runner Job, policy and log reads #3700, its git calls setGIT_CONFIG_GLOBAL=/dev/nullandGIT_CONFIG_NOSYSTEM=1and get the credential helper from-cvalues, after oneend_leftover_processes, because the home folder is shared in--phase all. -
publishrefuses a new or changed symlink (mode 120000), a new or changed gitlink (mode 160000) and each change to.gitmodules, fromgit diff --cached --raw --no-renamesof each patch. The four tracked links under.claude/skills/stay allowed while they do not change. After feat(roadmap): add the three-container runner Job, policy and log reads #3700, this check replaces the symlink stop ofimplement_step.py. -
publishsets the branch from the state file. It sets the author to the bot login<slug>[bot](GitHubApp.bot_login), so that a later take-over accepts the commit. -
publishchecks the PR body candidate withbuild_body,title_problems,closing_keyword_inandsafe_text. It readsproposal.mdand the archive folder name from the git objects of the new tree, never throughPath.read_textor a glob. - After feat(roadmap): add the three-container runner Job, policy and log reads #3700, the publish container mints its token with
contents,pull_requestsandissueswrite, and addsworkflows: writeonly when the merged plan names a workflow file. Until then, one process keeps the in-process mint and renewal of the token, andpublishrefuses each workflow file that the merged plan on the default branch does not name. - When the plan names no workflow file and the patch changes one,
publishstops the item with a clear reason before it pushes. -
publishpushesHEAD:refs/heads/<branch>from its new repository with--force-with-lease=refs/heads/<branch>:<lease>, the lease of the state file, or an empty lease for a new branch. For fix-checks, that SHA is the judged head. When the lease refuses the push,publishstops the item with the reason. -
publishkeeps thechecked_shaandpublished_shamarks, so a second run does not push or comment twice. -
publishopens or updates a draft PR, posts the comment and sets the status: In Review, or Blocked with the reason fromoutcome.json. It never marks the PR ready, never merges it and never turns on auto-merge. - A test gives
publishhostile input. The input has a.gitpath, a link to/proc/self/environ, a new gitlink, a forged author and a FIFO in place of the patch file.
Waits for key question 1 of #2695
The split phases make no WIP push and run no in-Job loop, because the agent container has no App key. These criteria wait for the answer of the owner on where the implement Job ends:
- Delete the WIP pushes (
implement_wip.py) and the in-Job loop (_checks,_watch,_fixand_ready). The Service watch row and the fix-checks unit take over. - Link the READY of the watch row to the implement attempt, or record a new baseline for the implement grade. Change
job_result.py,docs/roadmap/job-success.mdand the spec to match. - List the check classes that lose their repair. The watch row starts fix-checks only for
test,lint,typesandplan_defect.
If no answer exists when the build starts, --phase all keeps the current flow, and the builder files these three criteria as a new item.
Documents
- The spec
roadmap-implement-runnerand the docstring ofimplement_run.pystate the phases. - An ADR, or an addendum to ADR 0015, records the three trust zones and the reasons.
Existing tool considered
- Stock
CoderandLocalWorkspaceofpydantic-ai-harnessrun the agent, as the gh-aw engine of pydantic does. - Git plumbing applies the patch. A patch is better than a git bundle here: a bundle carries refs, tags, history and authors, so it needs more checks.
OriginGit,open_or_updateandGitHubApp.permissionsexist. This item uses them again.
Dependencies
None.
Related
- feat(roadmap): run the implement agent shell in a real sandbox #2695 is the parent. It holds the design, the key questions and the cost.
- feat(roadmap): add the three-container runner Job, policy and log reads #3700 runs the phases in three containers. It comes after this item.
- refactor(roadmap): run implement on stock Coder with a real shell #6527 runs implement on stock
Coderwith a real shell. - refactor(roadmap): run stage on Coder in the runner image #6528 runs stage on
Coderand uses the samepublishstep.
Source: #2695
Alternatives check of 2026-11-18: in-use.
The repository already uses this tool.
Tool: pydantic-ai-harness (https://pypi.org/project/pydantic-ai-harness), MIT, last activity 2026-11-17, maintained.
Reason: The workspace docs show that the harness routes every shell command to the run's workspace backend, which is the routing the issue needs, but the library ends no process groups in another container and imports no worktree into the job checkout.
Covers:
- Shell, Coder and FileSystem tools run in the run's workspace
- ctx.workspace.run returns exit code, stdout and stderr
- A backend swap changes where commands run, not the tools
Lacks:
- No end of a step's process groups in another container
- No import of the shell worktree into the job checkout
- No shipped backend for a second container of the same pod
- No --no-config or hooksPath hardening for the job's own git and uv
Proposed design
Problem statement
The implement job and the fix-checks job run the agent shell in the runner container. The App private key is in that container. The job code has no phases, so the template cannot split a run. This change adds prepare, agent and publish phases. Only prepare and publish hold the App key.
Acceptance criteria
Requirement: Phase selector
devops roadmap implement and devops roadmap step fix-checks SHALL accept --phase prepare|agent|publish|all.
Scenario: All runs the three phases in order
- WHEN a test runs the command with
--phase alland a fake phase runner - THEN the fake runner records prepare, then agent, then publish, and the process runs them in one process
Requirement: Environment reads denied first
Each phase SHALL call deny_environment_reads before it reads a file or starts a child process.
Scenario: First call in each phase
- WHEN a test runs each phase with fakes for file reads and child starts
- THEN the recorded call order starts with
deny_environment_readsin each phase
Requirement: Prepare claim and clone
The prepare phase SHALL read the item and the plan from GitHub, run _require_unclaimed, claim the item, set the status In Progress, make the anonymous clone and run the sync.
Scenario: Prepare claim order
- WHEN a test runs
preparewith fakes for GitHub and git - THEN the recorded order is read, require-unclaimed, claim, status, clone, sync
Requirement: Prepare runs no build child
The prepare phase MUST run only git commands and GitHub API calls and MUST NOT run uv, pre-commit, fix-checks tier 1 or the docs step.
Scenario: Hostile hatch build hook does not run
- WHEN a test runs
prepareon a branch with a hostile hatch build hook - THEN no child process other than git starts, and the hook does not run
Requirement: Prepare state file
The prepare phase SHALL write a state file in a folder that the agent does not mount, with the base SHA, branch, mode, lease SHA, title, labels and workflows flag, and SHALL write the issue text for the prompt to the work folder.
Scenario: State file fields
- WHEN a test runs
preparewith a fake item and plan - THEN the state file holds each field, and the work folder holds the issue text
Requirement: Staged base is pushed
For a Staged item, the prepare phase SHALL push the rebased branch with a lease and SHALL record the pushed SHA as the base in the state file.
Scenario: Staged item records pushed base
- WHEN a test runs
preparefor a Staged item with a fakeOriginGitthat accepts the lease - THEN the state file holds the pushed SHA as the base, and the push uses the lease SHA
Requirement: Agent uses stock Coder
The agent phase SHALL run stock Coder with the scoped checks and pre-commit.
Scenario: Coder runs with scoped checks
- WHEN a test runs the
agentphase with a fakeCoder - THEN the fake
Coderrecords the scoped checks and pre-commit, and the phase starts no other agent shell
Requirement: Agent makes no GitHub call
The agent phase MUST make no GitHub API call and MUST give the agent a prompt with the phase contract that forbids push, PR and devops gh.
Scenario: Agent prompt contract
- WHEN a test runs the
agentphase with a fake GitHub client and a fake model - THEN the fake client records no call, and the prompt contains the no-push, no-PR and no-
devops ghrules
Requirement: Agent patch in isolation
Before it writes outputs, the agent phase SHALL call end_leftover_processes and SHALL create the patch in the isolated git folder of git_isolation.py after git add -A.
Scenario: Patch includes new files
- WHEN a test runs the
agentphase with a new file and a fake process end - THEN the patch includes the new file, and the process end is recorded before the patch write
Requirement: Agent result line
PID 1 of the agent phase SHALL print the token counts and the result counts as one line on stdout.
Scenario: Agent result line
- WHEN a test runs the
agentphase with fake token and result counts - THEN stdout holds one line with those counts
Requirement: Agent PR body candidate
The agent phase SHALL write the PR body candidate with the model rewrite of the body.
Scenario: PR body candidate from agent
- WHEN a test runs the
agentphase with a fake model rewrite - THEN the output file holds the rewritten body, and
publishreceives no model key
Requirement: Publish safe file reads
The publish phase SHALL read the state file from its own folder, SHALL check each parent folder of the agent outputs with lstat, and SHALL open each file with O_NOFOLLOW|O_NONBLOCK.
Scenario: FIFO and symlink are refused
- WHEN a test gives
publisha FIFO in place of the patch file and a symlink in place of an output - THEN
publishrefuses each file before it reads, and it checks the size withfstat
Requirement: Publish takes typed JSON values
The publish phase MUST take only numbers and enum values from summary.json and outcome.json and MUST fence and mask all text from these files.
Scenario: Hostile text is fenced
- WHEN a test gives
summary.jsonandoutcome.jsontext with a secret and a Markdown fence - THEN the PR body and comment contain the masked fenced text, and no raw secret
Requirement: Publish bare fetch and plumbing
The publish phase SHALL fetch the base at depth 1 into a new bare repository with GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_NOSYSTEM=1 and SHALL apply the patch with git read-tree, git apply --cached, git write-tree and git commit-tree.
Scenario: No working tree
- WHEN a test runs
publishwith a fake git runner - THEN the recorded commands are the bare fetch and the four plumbing commands, and no checkout command runs
Requirement: Publish refuses link changes
The publish phase MUST refuse a new or changed symlink, a new or changed gitlink and each change to .gitmodules from git diff-tree -r --raw, while the four tracked links under .claude/skills/ stay allowed when they do not change.
Scenario: Hostile mode changes
- WHEN a test gives
publisha raw diff with mode 120000, mode 160000 and a.gitmoduleschange - THEN
publishrefuses each change and names the path
Requirement: Publish bot author
The publish phase SHALL set the branch from the state file and SHALL set the author to the bot login <slug>[bot] from GitHubApp.bot_login.
Scenario: Bot author
- WHEN a test runs
publishwith a state file and a fakeGitHubApp - THEN the commit uses the branch from the state file and the author
<slug>[bot]
Requirement: Publish body checks from objects
The publish phase SHALL check the PR body candidate with build_body, title_problems, closing_keyword_in and safe_text, and SHALL read proposal.md and the archive folder name from the git objects of the new tree.
Scenario: No path read
- WHEN a test runs
publishwith a fake tree object and a fakePath.read_textthat fails - THEN the body check uses the object text, and no
Path.read_textor glob runs
Requirement: Publish token permissions
The publish phase SHALL mint the token just before the push with contents, pull_requests and issues write, and SHALL add workflows: write only when the state file records that the merged plan names a workflow file.
Scenario: Workflow permission only with flag
- WHEN a test runs
publishwith the workflow flag false and then true - THEN the first token has no
workflows: write, and the second token has it
Requirement: Unplanned workflow change stops
When the plan names no workflow file and the patch changes one, the publish phase MUST stop the item with a clear reason before it pushes.
Scenario: Unplanned workflow change stops
- WHEN a test runs
publishwith no workflow in the plan and a patch that changes.github/workflows/ci.yml - THEN
publishstops before the push and reports the workflow path
Requirement: Publish lease push
The publish phase SHALL push one explicit refspec <sha>:refs/heads/<branch> through OriginGit with a lease on the lease SHA from the state file, and MUST stop the item with the reason when the lease refuses the push.
Scenario: Lease refusal
- WHEN a test runs
publishwith a fakeOriginGitthat refuses the lease - THEN
publishsends no second push and stops with the refusal reason
Requirement: Publish keeps marks
The publish phase SHALL keep the checked_sha and published_sha marks so that a second run does not push or comment twice.
Scenario: Second run does nothing
- WHEN a test runs
publishtwice with the same state and marks - THEN the second run sends no push and posts no second comment
Requirement: Publish draft status
The publish phase SHALL open or update a draft PR, post the comment and set the status to In Review or Blocked with the reason from outcome.json, and it MUST NOT mark the PR ready, merge it or turn on auto-merge.
Scenario: Blocked outcome
- WHEN a test runs
publishwith anoutcome.jsonthat holds a reason - THEN the PR stays draft, the status is Blocked with that reason, and no ready, merge or auto-merge call runs
Requirement: Hostile publish input
The publish phase MUST refuse hostile input that holds a .git path, a link to /proc/self/environ, a new gitlink, a forged author and a FIFO in place of the patch file.
Scenario: Hostile input
- WHEN a test gives
publishthat input - THEN
publishrefuses each item before a push, and it reports each reason
Requirement: Spec and docstring state phases
The spec roadmap-implement-runner and the docstring of implement_run.py SHALL state the prepare, agent and publish phases.
Scenario: Spec and docstring
- WHEN a test reads the spec requirement text and the docstring
- THEN each names the three phases and the trust zone of each phase
Requirement: ADR records trust zones
An ADR, or an addendum to ADR 0015, MUST record the three trust zones and the reasons.
Scenario: ADR text
- WHEN a test reads the ADR or addendum
- THEN it names prepare, agent and publish, and it gives the App key rule for prepare and publish and the model-key-only rule for agent
Existing Tool Considered
pydantic-ai-harness is in use. The alternatives check of 2026-11-18 in the issue body gives the verdict and the lists of what the tool covers and lacks. The proposal uses its workspace routing for the agent phase. The proposal adds the phase runner and the publish checks that the issue needs, and it builds the parts that the check lists as lacking. The written cost for the added code is about 6,000 tokens to build, 2,000 to keep and fix, and 4 hours.
Key questions
- How do the phases share state without giving the agent the App key?:
preparewrites a state file in a folder that the agent does not mount. Theagentphase writes only the patch and the JSON outputs.publishreads the state file and the outputs as data. The agent gets only the model key. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/roadmap/implement/implement_step.py, src/devops_cli/core/process_hardening.py, k8s/README.md]- Chosen: State file in an agent-unmounted folder. It keeps the App key in prepare and publish and gives the agent no secret.
- Rejected: Environment variables. The agent container would read the App key and the values are harder to audit.
- Rejected: Database record. It adds a dependency and a second source of truth for one run.
- What does
--phase alldo?: It runsprepare,agentandpublishin one process in that order. The current one-container template keeps working. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/roadmap/implement/implement_step.py]- Chosen: All runs the three phases in one process. It keeps the current template working until feat(roadmap): add the three-container runner Job, policy and log reads #3700 changes it.
- Rejected: All runs only prepare. The current template would stop after prepare and open no PR.
- Rejected: No default phase. Each current caller would need a new argument before it runs.
- How does the agent phase produce the patch?: After
end_leftover_processes, it runsgit add -Aand creates the patch in the isolated git folder ofgit_isolation.py. It writesout/agent.patch,summary.jsonandoutcome.json. (best practice) [sources: src/devops_cli/roadmap/implement/git_isolation.py, src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/core/process_hardening.py]- Chosen: Patch in the isolated git folder. It includes new files and runs no clean filter or fsmonitor of the clone.
- Rejected: Working tree diff. A clean filter or fsmonitor can change the diff.
- Rejected: Git bundle. A bundle carries refs, tags, history and authors, so it needs more checks.
- How does publish apply the patch without a working tree?: It fetches the base at depth 1 into a new bare repository with global and system git config off. It then uses
git read-tree,git apply --cached,git write-treeandgit commit-tree. (best practice) [sources: src/devops_cli/roadmap/implement/git_isolation.py, src/devops_cli/roadmap/implement/implement_run.py]- Chosen: Bare repository plumbing. It writes no working tree and runs no hook or filter of the clone.
- Rejected: Checkout and apply. A working tree can run a hook or a filter with the token.
- Rejected: Git bundle. The bundle adds refs, tags, history and authors that publish must check.
- How does publish refuse hostile files and diffs?: It uses
lstaton each parent, opens withO_NOFOLLOW|O_NONBLOCK, checks the size withfstatand rejects non-regular files. It rejects new or changed symlinks, gitlinks and.gitmodulesfromgit diff-tree -r --raw. Unchanged links under.claude/skills/stay allowed. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/roadmap/implement/implement_step.py, k8s/README.md]- Chosen: Safe open and raw diff checks. It stops a
.gitpath, a/proclink, a gitlink and a FIFO before a push. - Rejected: Path.read_text and glob. They follow links and read files that are not regular.
- Rejected: Trust the agent outputs. The agent container holds no App key, but its output is still untrusted data.
- Chosen: Safe open and raw diff checks. It stops a
- How does publish mint and use the token?: It mints the token just before the push with
contents,pull_requestsandissueswrite. It addsworkflows: writeonly when the state flag says the plan names a workflow file. It pushes one explicit refspec throughOriginGitwith a lease and stops on a lease refusal. (best practice) [sources: src/devops_cli/roadmap/implement/git_isolation.py, src/devops_cli/roadmap/implement/implement_run.py, src/devops_cli/roadmap/steps/fix_checks_repair.py]- Chosen: Mint just before the push. The token has the least time and the least permissions.
- Rejected: Mint at prepare. The token would live through the agent phase.
- Rejected: Use a long-lived token. It gives more time and more permissions than the push needs.
- How does publish keep a second run idempotent?: It keeps the
checked_shaandpublished_shamarks. A second run with the same marks pushes nothing and posts no second comment. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py, docs/roadmap/job-success.md]- Chosen: Keep marks in the state file. The marks give a local check before any GitHub call.
- Rejected: Rely on GitHub state only. A comment and a push are not one atomic call.
- Rejected: No guard. A retry can push and comment twice.
- Which documents record the phases and trust zones?: The spec
roadmap-implement-runner, the docstring ofimplement_run.pyand an ADR or addendum to ADR 0015 record the three phases and their trust zones. (best practice) [sources: openspec/specs/roadmap-implement-runner/spec.md, src/devops_cli/roadmap/implement/implement_run.py, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md]- Chosen: Spec, docstring and ADR. The spec gives the requirement, the docstring gives the code contract and the ADR gives the reason.
- Rejected: Only code comments. A comment is not a project decision that a test can hold.
- Rejected: Only the ADR. The spec and the docstring are the texts that a builder reads first.
Fit
Fits in one pull request.
Suspected block
None.
The item is in a dependency cycle: #3702 → #3700 → #3702. A person removes one edge of the cycle, so that its items no longer wait on each other.
Dependencies
None.
Activity
dan-petty commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It closes a known security gap in the implement Job but depends on prior items and has open design points.It removes a class of token-exfiltration attacks from the implement Job and gives the project a real process boundary.It requires wiring the command server, handling leftover processes, updating two documents, and adding process-edge tests across two containers.Both concern the implement agent's tool access, but the candidate establishes the two-container boundary while #3041 expands the tool allowlist within that boundary.devops-cli-service commentedon Nov 7, 2026
Refine cannot set this item to Ready at 72c52c6 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 8, 2026
Alternatives check: in-use
Reason: The workspace docs show that pydantic-ai and
pydantic-ai-harnessalready carry the routing of an agent's shell command and file tools to a pluggable workspace backend, and the issue says the project pins both, so the command-routing half of the item needs no code path of its own. The library still ends no process group of a step in the other container and imports no worktree into the job's checkout, which are the two parts the item must build, so it covers only a part of the need.The item already names this tool.
Tool: pydantic-ai-harness (https://pypi.org/project/pydantic-ai-harness)
Covers:
ctx.workspace.run, withCoder,ShellandFileSystemcapabilities), so a step's shell command can be sent to the command server of the shell container instead of run by the jobLacks:
gitorghgit(core.hooksPath=/dev/null) oruv(--no-config), and no guarantee textTools considered:
Searches run:
Sources:
Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.
[-]feat(roadmap): route implement steps through the shell backend[/-][+]feat(roadmap): run implement and fix-checks as prepare/agent/publish phases[/+]devops-cli-service commentedon Nov 20, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 20, 2026
Owner decisions (2026-11-20, direct answers) after the builder scoped this item:
main, none stacked: A ends the implement Job at "draft PR opened" (delete the WIP pushes and the in-Job CI watch, fix and ready loop; link the grade to the forge outcome); B adds the phase module and runs fix-checks on phases as the pilot, with the sharedpublishmodule that refactor(roadmap): run stage on Coder in the runner image #6528 reuses; C runs implement on phases. feat(roadmap): add the three-container runner Job, policy and log reads #3700 follows C.mainanonymously, rebases and runs the conflict fix; the recorded base becomes themainSHA;publishwrites one commit and pushes with a lease on the old tip of the branch.outcome.json;publishmakes the GitHub writes for that outcome (draft PR and In Review, return to New, the question comment and the wait, Blocked). The claim check runs inprepareand again inpublishright before the push.7 remaining items
dan-petty commentedon Nov 21, 2026
Owner decisions (2026-11-21, direct answers) after an audit of the git use of the roadmap Jobs. The owner asked for a plain issue-branch flow: "let's make sure we aren't doing weird things with git, it should be relatively straight forward to work an issue branch".
Plain flow for part C. The phases work a branch as a developer does:
prepare(token, no pull request code) makes a full clone in a folder that is new to the run, switches to the branch, and records the main SHA and the lease.agent(no GitHub credential) rebases, does the work and writes the patch with fixed format flags.publish(token, no pull request code) applies the patch withgit apply --indexin a new repository, refuses links, gitlinks and.gitmodules, commits as the bot, pushes with--force-with-leaseand opens the draft PR through the API.The archive stays its own commit. fix-checks and fix-conflict move onto the same flow later. Add no new git hardening before feat(roadmap): add the three-container runner Job, policy and log reads #3700.
Conflicts. The agent phase rebases onto main and settles conflicts as a developer does:
git rebase --skipfor a commit that changes only archive paths;git checkout --oursand regeneration for the generated docs anduv.lock;Implement stops calling
fix_rebase_conflict(feat(roadmap): a fix-conflict step settles merge conflicts #5019, fix(roadmap): Keep passed groups when a rebase conflicts #5709). fix-checks rebases in place of the main-skew stop (fix(roadmap): Fix-checks repairs failures its plan causes #6116).check_settingsgoes now, in refactor(roadmap): delete the git settings scan check_settings #6638.refactor(roadmap): publish applies the agent patch with plain git (#6658
feat(roadmap): run implement as prepare, agent and publish phases
feat(roadmap): run implement as prepare, agent and publish phases
chore(main): release 0.189.0 (#6686)
devops-cli-service commentedon Nov 21, 2026
Released in v0.189.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.189.0
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 21:03 UTC