Skip to content

fix(roadmap): the job owns tasks.md in an implement step - #2792

Merged
dan-petty merged 8 commits into
mainfrom
fix/2790-tasks-md-job-owned
Oct 30, 2026
Merged

dan-petty merged 8 commits into
mainfrom
fix/2790-tasks-md-job-owned

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The job now owns the tasks.md file of a change during an implement step.

Before this change, the step stopped when the model edited tasks.md beyond the ticks of its own group. A stop threw away the work of the model for an edit that had no effect on the result.

Now the step writes the file back after each turn. The text is the text from before the run. Only the ticks of the own group that the model set are kept. The verification commands come from the text before the run, so no edit of the file changes what judges the work. A missing file, a file that is not UTF-8 text, a link and a directory at the path are all replaced by the file. The step prints one line that names the change when the file differed. The prompt of the agent tells it that the job writes the file back. The spec, the help and the generated docs match.

Closes #2790

…2790)

A link to a file with the wanted text passed the early return and reached the commit. A directory made the unlink raise. Remove both before the write.
The requirement that a step makes the only commit still said that a missing or garbled tasks.md counts as a change. The job writes the file back, so no stop remains. Add the link and directory case.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Oct 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review.

Full uv run devops ci: all 19 checks pass. The test check took 2m 59s (179 s). Total 3m 7s.

Fail-to-pass: uv run devops ci fail-to-pass --base origin/main reports 33 tests that fail on the base and pass on this branch. The two tests added in the last fix round (a link to a file with the wanted text, and a directory at the path) fail on the commit before the fix (f3b76687): the link reached the commit as mode 120000, and the directory made unlink raise IsADirectoryError.

Review findings fixed:

  • minor, directory at tasks.md made the step crash: the restore now removes a directory first. Test added.
  • minor and major (same cause), link to a file with the wanted text reached the commit: the early return no longer applies to a link, so the link is replaced by the file. Test added; it checks the git mode 100644.
  • major, living spec kept the removed stop in "A step makes the only commit": the sentence is gone from the living spec and from the archived delta (new MODIFIED entry). A scenario for the link and the directory is added. devops openspec check passes.

Findings not fixed: none.

A step with a directory at tasks.md ends with the stop for the unticked tasks, as a missing file does. This is the existing behavior of the spec, not a crash.

@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 18:09
…-owned

# Conflicts:
#	openspec/specs/roadmap-implement-step/spec.md
@dan-petty
dan-petty merged commit 2e9552f into main Oct 30, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2790-tasks-md-job-owned branch October 30, 2026 18:19
dan-petty pushed a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.22.6](v0.22.5...v0.22.6)
(2026-10-30)


### Bug Fixes

* **roadmap:** format changed Python files in the job
([#2791](#2791))
([18a6e2b](18a6e2b)),
closes [#2789](#2789)
* **roadmap:** the job owns tasks.md in an implement step
([#2792](#2792))
([2e9552f](2e9552f)),
closes [#2790](#2790)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): an implement step stops when it edits tasks.md, a file the job owns

1 participant