Skip to content

refactor(roadmap): publish applies the agent patch with plain git #6655

Description

@dan-petty

Problem

The publish phase of #3702 part B applies the agent patch with git plumbing: a new bare git folder, a second stage folder, read-tree, apply --cached, write-tree and commit-tree. Its fetches run through OriginGit, and the agent patch is made in a separate bare folder. The owner asked for a plain issue-branch flow on 2026-11-21 (#3702 comment 7065393209).

Change

  • publish makes a new repository with git init, fetches the base at depth 1, applies the patch with git apply --index, refuses a new or changed link, gitlink or .gitmodules, commits as the bot and pushes with --force-with-lease.
  • The agent phase writes the patch with git add -A and git diff --cached with fixed format flags.
  • fix-checks uses the new publish and a plain clone into the run folder. It keeps its base and lease rules.
  • Delete the plumbing, the stage folder, the bare patch folder, the URL carry and the lease pre-check.

Acceptance criteria

  • fix-checks publishes one bot commit with a lease on the judged head through the new code.
  • The hostile-input tests of part B still pass: a .git path, a link to /proc/self/environ, a new gitlink, a forged author and a FIFO in place of the patch file.

Related

Source

Source: #3702

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
    and removed
    status/new
    on Nov 21, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 21, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
  6. added a commit that references this issue on Nov 21, 2026
  7. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 19:08 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