Skip to content

fix(roadmap): the implement step tells the agent to keep scratch files out of the checkout #3006

Description

@dan-petty

What happened

The implement step of the runner tells the agent nothing about where to put scratch files. The agent wrote test_get_ollama_semaphore.py in the repository root while it worked on #2175 (PR #3000). mypy --strict ran on that file and failed, and the step stopped at group 2 with the work done and the tasks not ticked. The step also runs git add -A (src/devops_cli/roadmap/implement_step.py and implement_run.py), so a scratch file in the checkout can go into the commit of the pull request.

AGENTS.md rule 12 says "Put agent files under .data/agent/ and scratch scripts under .data/agent/scratch/". The prompt src/devops_cli/ai/tasks/roadmap_implement_step.md does not repeat it, and the runner agent does not read AGENTS.md.

What should happen

  • The prompt of each agent that changes code in a checkout tells the agent to put every scratch file (a probe script, a note, a copy of a file) under .data/agent/scratch/, which git ignores, to make that directory with uv run python -c (the tool write_file does not make one), to put nothing else in the repository root, and to run no check on a scratch file.
  • A test fails if the prompt of a code-changing agent has no such rule.

Acceptance criteria

  • roadmap_implement_step.md holds the rule and names .data/agent/scratch/.
  • A test reads the prompts of the agents that change code and fails if one lacks the rule.
  • docs/ROADMAP_WORKFLOW.md or the implement documents state the rule if they list the prompt's rules.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 1, 2026
  2. dan-petty commented on Nov 1, 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/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. A failed step and a risk of committing scratch files, but one reported instance so far.
    • Value: Medium. Prevents a repeat class of failures where scratch files break checks or enter commits.
    • Effort: Low. Add one rule to a prompt file and write a test that reads the prompt text.
    • Related: feat(roadmap): devops roadmap implement runs one task group of a staged change in one 128k context with the pydantic-ai-harness Coder #2664, which asks for a different change. Both concern the implement step created by #2664, but the candidate fixes the prompt rule while #2664 delivers the step itself.
  3. added
    priority/p2-medium
    status/in-progress
    and removed
    status/new
    on Nov 1, 2026
  4. removed
    status/in-progress
    on Nov 1, 2026
  5. added a commit that references this issue on Nov 1, 2026
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/lowpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions