Repository navigation
Labels
effort/mediumEffort Mediumpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Description
What happened
The implement prompt forbids scratch files outside .data/agent/scratch/ (#3007), yet the agent still wrote them in the checkout root, and the step then stopped on its own files:
- fix(telemetry): a devops command run from a deleted working directory gives no FileNotFoundError traceback from the git directory lookup #2531:
uv run ruff check ... test_cwd_issue.py test_deleted_cwd.py test_fix_validation.py ... tmp_test_telemetry.pyfailed onunused-importintmp_test_telemetry.py. - fix(rag): the embedder raises EmbeddingsError, not ZeroDivisionError, when ai.provider is ollama and no ollama URL is set, and the hardening audit can file its finding #2524:
ruff check ... tmp_test_ollama_no_url.pyfailed onunsorted-imports. - fix(k8s): List helm repo and upgrade in deploy-stack dry-run #2469:
ruff check ... test_helm_commands.pyfailed on an undefined name. - refactor(cli): the five functions and properties that nothing calls and that #1910 does not list leave src #2175 (first attempt):
test_get_ollama_semaphore.pyfailedmypy --strict.
That is 4 of the 13 stops of 2026-11-01. A prompt rule does not hold.
What should happen
- Before the step runs its checks, it lists the untracked files of the checkout. A file that is not in the
Changes:paths of the group, not under the change folder, and not a new test file in a mirrored test path of the group, is a stray file. - The step deletes a stray file and tells the agent in its next message, and the trace records the name. It never passes a stray file to ruff, mypy or
git add. - The ruff and mypy runs take only the paths of the group and the files the agent changed that are tracked or in the group.
- The prompt keeps the rule and says that the step deletes a stray file.
Acceptance criteria
- A step whose agent writes
tmp_test_x.pyin the root finishes its checks without that file, and the file is gone from the commit and from the tree. - A new test file in a mirrored path of the group is kept.
- The agent is told which files were removed.
- A replay test with a stub model covers the stray file and a legal new test.
Related: #3027, #3007 (the prompt rule), #3053 (repair rounds).
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 1, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The defect caused 4 of 13 step stops in one day and discards completed work each time.Each occurrence wastes an agent run and delays delivery of the intended change.It needs untracked-file listing, classification against group paths, deletion, agent notification, restricted ruff and mypy invocations, and a replay test.Both address scratch files in the checkout, but #3006 adds a prompt rule while the candidate adds detection, deletion, and path restriction logic in the step.chore(main): release 0.37.3 (#3095)