Skip to content

fix(roadmap): refuse plans that name missing paths - #3036

Merged
dan-petty merged 13 commits into
mainfrom
fix/3010-stage-refuses-missing-paths
Nov 1, 2026
Merged

dan-petty merged 13 commits into
mainfrom
fix/3010-stage-refuses-missing-paths

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage job now checks each path of a plan against the files of the staged commit. A missing path goes back to the model once, with the files that have the same name. A second reply with a missing path stops the item, and the job opens no draft pull request.

The job checks reads, changes, the paths in the code spans of the tasks, and the paths in verify. A path passes when the commit holds it, or when its group or an earlier group lists it in creates. A word with no folder is no path in a task or in verify: it is a search pattern or a fixture that a test writes. The comment on the issue no longer lists missing paths, because a staged plan has none. The stage dry run lists the one read of the tracked files.

Closes #3010

@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 Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results and review findings for this pull request.

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 2 tests failed on base and 2 test files errored on base (the new modules did not exist). Files: test_roadmap_dry_runs.py, test_roadmap_stage_apply.py, test_roadmap_stage_paths.py, test_roadmap_stage_plan.py. 49 other tests passed on base.

Full uv run devops ci on the workstation: 15807 passed, 2 failed, 1 error. The failures are host tools (popeye in the executor contract test, and the install-tools dry run), the class of #2165. They are not from this change. The test check took 389 s on the workstation (6m 29s); the whole run took 6m 44s. The GitHub runner result is the one that counts.

Review findings:

  • Major (integrity): a fixture name in a task code span, for example ruff.toml in a temporary project, counted as a missing path. Fixed. A word with no folder is now no path in a task or in verify. A replay over 55 plan commits gave 123 problems, and 122 were true missing paths.
  • Minor (spec): a bare name used as a search pattern in verify, for example grep step_files.py, counted as a missing path. Fixed by the same rule. reads and changes stay strict. Tests cover all three cases, and the spec of roadmap-stage has a new scenario.

…s-missing-paths

# Conflicts:
#	k8s/README.md
#	openspec/specs/roadmap-stage/spec.md
#	src/devops_cli/ai/tasks/roadmap_stage_split.md
#	src/devops_cli/roadmap/stage.py
@dan-petty
dan-petty merged commit 334f0ea into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/3010-stage-refuses-missing-paths branch November 1, 2026 13:57
dan-petty pushed a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.37.2](v0.37.1...v0.37.2)
(2026-11-01)


### Bug Fixes

* **roadmap:** a stage group has a kind with its own tasks
([#3035](#3035))
([deb2f9e](deb2f9e)),
closes [#3005](#3005)
* **roadmap:** refuse plans that name missing paths
([#3036](#3036))
([334f0ea](334f0ea)),
closes [#3010](#3010)

---
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): the stage job refuses a plan that names a path that does not exist

1 participant