Skip to content

feat(roadmap): run implement and fix-checks as prepare/agent/publish phases #3702

Closed
6 of 7 issues completed

Description

@dan-petty

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 the workflows flag. prepare writes the issue text for the prompt to the work folder.
  • agent (model key only): stock Coder with the scoped checks and pre-commit. It writes out/agent.patch, summary.json and outcome.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|all exists on devops roadmap implement and on devops roadmap step fix-checks. A test shows that all keeps the one-container template working.
  • Each phase calls deny_environment_reads as its first step, before it reads a file or starts a child. A test checks this order in each phase.
  • prepare runs only git calls and GitHub API calls: no uv, 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 runs prepare on a branch with a hostile hatch build hook and shows that no child other than git starts.
  • prepare makes 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 uv and pre-commit. The prompt gives the agent the phase contract: no push, no PR and no devops gh call. The output files are the result.
  • The agent phase rebases onto the base and settles each stop as a developer does: git rebase --skip for the archive commit of the item (the commit that moves its change folder into openspec/changes/archive/), git checkout --ours and a new generation for the generated documents and uv.lock. Another conflict aborts the rebase and stops the item with the class conflict. The implement job no longer calls fix_rebase_conflict.
  • Before it writes the outputs, the agent phase ends the leftover processes once (end_leftover_processes). It writes each patch with git 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.patch up to the commit before the archive commit, and archive.patch from 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. publish gets no model key.

Publish phase

  • publish reads the state file from its own folder. It checks each parent folder of the agent outputs with lstat, and opens each file with O_NOFOLLOW|O_NONBLOCK. It refuses a file that is not a regular file, and it checks the size with fstat before it reads.
  • publish takes only numbers and enum values from summary.json and outcome.json. It fences and masks all text from these files.
  • publish makes a new repository, as actions/checkout does: it fetches the base, and the lease when it is another commit, at depth 1, and checks out the base. It applies each patch with git apply --index and commits it as the bot. Until feat(roadmap): add the three-container runner Job, policy and log reads #3700, its git calls set GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_NOSYSTEM=1 and get the credential helper from -c values, after one end_leftover_processes, because the home folder is shared in --phase all.
  • publish refuses a new or changed symlink (mode 120000), a new or changed gitlink (mode 160000) and each change to .gitmodules, from git diff --cached --raw --no-renames of 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 of implement_step.py.
  • publish sets 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.
  • publish checks the PR body candidate with build_body, title_problems, closing_keyword_in and safe_text. It reads proposal.md and the archive folder name from the git objects of the new tree, never through Path.read_text or 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_requests and issues write, and adds workflows: write only when the merged plan names a workflow file. Until then, one process keeps the in-process mint and renewal of the token, and publish refuses 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, publish stops the item with a clear reason before it pushes.
  • publish pushes HEAD: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, publish stops the item with the reason.
  • publish keeps the checked_sha and published_sha marks, so a second run does not push or comment twice.
  • publish opens or updates a draft PR, posts the comment and sets the status: In Review, or Blocked with the reason from outcome.json. It never marks the PR ready, never merges it and never turns on auto-merge.
  • A test gives publish hostile input. The input has a .git path, 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, _fix and _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.md and the spec to match.
  • List the check classes that lose their repair. The watch row starts fix-checks only for test, lint, types and plan_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-runner and the docstring of implement_run.py state the phases.
  • An ADR, or an addendum to ADR 0015, records the three trust zones and the reasons.

Existing tool considered

  • Stock Coder and LocalWorkspace of pydantic-ai-harness run 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_update and GitHubApp.permissions exist. This item uses them again.

Dependencies

None.

Related

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 all and 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_reads in 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 prepare with 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 prepare on 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 prepare with 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 prepare for a Staged item with a fake OriginGit that 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 agent phase with a fake Coder
  • THEN the fake Coder records 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 agent phase 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 gh rules

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 agent phase 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 agent phase 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 agent phase with a fake model rewrite
  • THEN the output file holds the rewritten body, and publish receives 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 publish a FIFO in place of the patch file and a symlink in place of an output
  • THEN publish refuses each file before it reads, and it checks the size with fstat

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.json and outcome.json text 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 publish with 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 publish a raw diff with mode 120000, mode 160000 and a .gitmodules change
  • THEN publish refuses 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 publish with a state file and a fake GitHubApp
  • 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 publish with a fake tree object and a fake Path.read_text that fails
  • THEN the body check uses the object text, and no Path.read_text or 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 publish with 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 publish with no workflow in the plan and a patch that changes .github/workflows/ci.yml
  • THEN publish stops 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 publish with a fake OriginGit that refuses the lease
  • THEN publish sends 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 publish twice 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 publish with an outcome.json that 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 publish that input
  • THEN publish refuses 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?: prepare writes a state file in a folder that the agent does not mount. The agent phase writes only the patch and the JSON outputs. publish reads 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 all do?: It runs prepare, agent and publish in 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]
  • How does the agent phase produce the patch?: After end_leftover_processes, it runs git add -A and creates the patch in the isolated git folder of git_isolation.py. It writes out/agent.patch, summary.json and outcome.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-tree and git 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 lstat on each parent, opens with O_NOFOLLOW|O_NONBLOCK, checks the size with fstat and rejects non-regular files. It rejects new or changed symlinks, gitlinks and .gitmodules from git 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 .git path, a /proc link, 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.
  • How does publish mint and use the token?: It mints the token just before the push with contents, pull_requests and issues write. It adds workflows: write only when the state flag says the plan names a workflow file. It pushes one explicit refspec through OriginGit with 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_sha and published_sha marks. 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 of implement_run.py and 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.

Sub-issues

Sub-issues

6 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. added
    source/agent
    on Nov 5, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/high
    on Nov 5, 2026
  3. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It closes a known security gap in the implement Job but depends on prior items and has open design points.
    • Value: High. It removes a class of token-exfiltration attacks from the implement Job and gives the project a real process boundary.
    • Effort: High. It requires wiring the command server, handling leftover processes, updating two documents, and adding process-edge tests across two containers.
    • Related: feat(roadmap): the implement agent can use the project's development tools #3041, which asks for a different change. 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.
  4. added
    priority/p2-medium
    on Nov 5, 2026
  5. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    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.

  6. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The workspace docs show that pydantic-ai and pydantic-ai-harness already 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)

    • License: MIT
    • Last activity: 2026-11-04
    • Maintained: yes

    Covers:

    • Routes a command and the file tools of an agent through a workspace backend (ctx.workspace.run, with Coder, Shell and FileSystem capabilities), so a step's shell command can be sent to the command server of the shell container instead of run by the job
    • The workspace is provider-agnostic: the same tools run in a local directory, a cloud sandbox or a self-hosted workspace, so a custom backend for the second container needs no shell runner of its own
    • A command timeout and workspace error types are part of the workspace API, so a stuck or failing command is a normal result the agent can see

    Lacks:

    • Ends no process group of a step in another container; it gives no sweep or report that the job can wait on before running git or gh
    • Imports no worktree files from the shell container into the job's own checkout
    • Gives no job-side hardening of git (core.hooksPath=/dev/null) or uv (--no-config), and no guarantee text
    • Keeps the allowlist of programs in the job process, which the change has to keep outside the backend

    Tools considered:

    Searches run:

    • pydantic-ai workspace WorkspaceBackend Coder capability docs, results: 5
    • pydantic-ai-harness coder workspace backend pypi, results: 5
    • "pydantic-ai" workspace concept shell backend, results: 5
    • pydantic-ai harness capabilities Coder Shell custom workspace backend, results: 5
    • pydantic.dev docs ai harness Coder Shell FileSystem capabilities, results: 5

    Sources:

    Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.

  7. changed the title [-]feat(roadmap): route implement steps through the shell backend[/-] [+]feat(roadmap): run implement and fix-checks as prepare/agent/publish phases[/+] on Nov 20, 2026
  8. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. added
    owner/agent
    on Nov 20, 2026
  10. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Owner decisions (2026-11-20, direct answers) after the builder scoped this item:

    1. Split into three pull requests, built in order from 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 shared publish module 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.
    2. Rebase conflict fix: the agent phase (no App key) fetches main anonymously, rebases and runs the conflict fix; the recorded base becomes the main SHA; publish writes one commit and pushes with a lease on the old tip of the branch.
    3. Mid-run GitHub writes: the agent phase records an outcome (done, returned with its reason, question, stopped) and its marks in outcome.json; publish makes 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 in prepare and again in publish right before the push.
  11. 7 remaining items

  12. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    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".

    1. 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 with git apply --index in a new repository, refuses links, gitlinks and .gitmodules, commits as the bot, pushes with --force-with-lease and 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.

    2. Conflicts. The agent phase rebases onto main and settles conflicts as a developer does:

      • git rebase --skip for a commit that changes only archive paths;
      • git checkout --ours and regeneration for the generated docs and uv.lock;
      • the model for the rest.

      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).

    3. check_settings goes now, in refactor(roadmap): delete the git settings scan check_settings #6638.

  13. removed
    status/in-progress
    owner/agent
    on Nov 21, 2026
  14. added a commit that references this issue on Nov 21, 2026
  15. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor
  16. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 21:03 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions