Skip to content

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

Description

@dan-petty

Problem

The fix-checks Job runs the agent shell in the runner container, next to the App private key (#2695). Part B of #3702 adds the phases prepare, agent and publish, and runs fix-checks on them as the pilot. Part A (#6559) ended the implement Job at the draft. Part C runs implement on the phases.

Expected

devops roadmap step fix-checks takes --phase prepare|agent|publish|all. all runs the three phases in sequence in one container, so the current template keeps working until #3700.

  • prepare (App key, no agent code): the GitHub reads, the claim check, the failed log and an anonymous clone at the judged head. It writes a state file to a folder that the agent does not read.
  • agent (model key only, stock Coder): tier 1, the scope check and the model fix. It makes no GitHub call, and writes agent.patch, summary.json and outcome.json.
  • publish (App key): a shared module, which refactor(roadmap): run stage on Coder in the runner image #6528 uses later. It applies the patch as data with git apply --cached into a fresh clone, writes one commit, checks the claim again, pushes with a lease on the old tip, and makes the GitHub writes of the outcome.

Acceptance criteria

  • --phase prepare|agent|publish|all exists on devops roadmap step fix-checks, and all keeps the current Job working.
  • Each phase calls deny_environment_reads first.
  • prepare starts no child other than git.
  • publish reads the agent outputs as data (lstat, O_NOFOLLOW, fstat), refuses a new or changed symlink, gitlink or .gitmodules, and refuses a workflow file that the plan does not name.
  • publish pushes one commit with a lease on the judged head, and writes the fix-checks record and comment for the outcome.
  • The hand-off rules of part A stay as they are.

Related

Source

Source: #3702

Activity

  1. added
    type/refactor
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/high
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 21, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
  5. added a commit that references this issue on Nov 21, 2026
  6. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 13:09 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/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions