Skip to content

refactor(roadmap): stage runs on the phases #6704

Description

@dan-petty

Problem

The stage Job pushes the plan with plain git from the agent tree (stage.py _worktree, _commit_and_push, _push). implement, fix-checks and fix-conflict now run on prepare, agent and publish, with the shared code in roadmap/phases/. The owner decided that stage gets a real shell only when publish pushes (#6528 comment 7053539044).

Change

  • Stage runs on the three phases with its current planner and no shell. prepare clones plainly. The agent phase writes the change folder. publish applies it as one bot commit and pushes with a lease (phases/publish.py).
  • The phases run in sequence inside the stage round, in one process. The separate --phase and --work calls come with refactor(roadmap): the stage agent is stock Coder #6705, when the agent output is the patch and a small outcome.
  • The stage code that pushes from the agent tree goes.
  • When the orphan cleanup keeps the App-only branch of a Ready item, it keeps stage.pending (fix(roadmap): the stage orphan cleanup strands a kept branch #6668).

Acceptance criteria

  • The agent tree of stage pushes nothing.
  • A test with the real git stage_repo fixture: after the orphan cleanup keeps the App-only branch of a Ready item, the next round resumes on it and stages the item.

Related

Source

Source: #6528

Activity

  1. added
    type/refactor
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    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 22, 2026
  5. added a commit that references this issue on Nov 22, 2026
  6. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-22 02:54 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/mediumpriority/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