Repository navigation
Description
Problem Description
A "Make check Plan Check pass" step of the Service changed files that the plan does not name. On #3808 (the fix for #3536, a change to classify_scanner_files), the step edited src/devops_cli/roadmap/plan_check.py, docs/roadmap/plan-check.md and openspec/specs/roadmap-plan-check/spec.md (commit 5d86fc8). The next step then added a test for those lines to pass the changed-line coverage check (commit 4b6c21e). The change made plan_check judge only pull requests with a plan title or a Plans # line, so a plan pull request with a wrong title and no Plans # line passed. The edit was an exemption that made a check pass, and it was outside the plan, and the pull request body did not name it. One failed check led to two more edits outside the plan.
Reproduction Steps
- Read
git diff origin/main...origin/fix/3536-limit-lockfile-bucket-to-const-lockfileat head 4b6c21e (before the removal in ad96a4b). - Compare the paths with the
Changes:line of group 1 inopenspec/changes/archive/2026-11-06-3536-limit-lockfile-bucket-to-const-lockfile/tasks.md:src/devops_cli/ai/review/pipeline.pyandtests/security/test_review_pipeline_go.py.
Expected vs Actual Behavior
Expected: a fix step edits only the paths that the plan names under changes. When a check fails and its cause lies in another path, the job stops, writes the failing check and the cause in the comment, and leaves the item for a person (AGENTS.md rule 2: stop and re-scope, write no compensating code; the owner decision "skip checks, do not build escapes").
Actual: the fix step edited three unplanned paths, and a second fix step covered them with a new test.
Environment Diagnostics
devops-cli 0.70.0, Service implement job, 2026-11-06.
Proposed Solution & Architectural Design
- In the implement job, compare the changed paths of each "fix" step with the
changesandreadsof the plan groups. Refuse a step that edits another path. - On refusal, stop the item, write the check name, the log excerpt and the path the model wanted to edit in the comment, and set the item back to
Newwithdevops roadmap return-style evidence. - Test it offline: a fix step that edits an unnamed path is refused, and one that edits a named path passes.
Existing Tool Considered
No open tool covers a plan-scoped path guard in this job. The change extends the check of changed paths that the job already runs. It builds about 60 lines and a test.
Activity
dan-petty commentedon Nov 6, 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.It prevents unauthorized file edits in an automated job, but it is a guardrail rather than a user-facing defect.It stops a class of out-of-scope edits that weaken checks, but it does not change user-visible output.The body states the change is about 60 lines plus one test, extending an existing path check.Both validate paths in the roadmap workflow, but #3010 checks that plan-named paths exist at stage time, while the candidate refuses fix steps that edit paths the plan does not name.devops-cli-service commentedon Nov 7, 2026
Released in v0.78.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.78.0
devops-cli-service commentedon Nov 7, 2026
Live since 2026-11-07 12:09 UTC