Skip to content

fix(roadmap): a fix step edits only the paths that the plan names #3824

Closed

Description

@dan-petty

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

  1. Read git diff origin/main...origin/fix/3536-limit-lockfile-bucket-to-const-lockfile at head 4b6c21e (before the removal in ad96a4b).
  2. Compare the paths with the Changes: line of group 1 in openspec/changes/archive/2026-11-06-3536-limit-lockfile-bucket-to-const-lockfile/tasks.md: src/devops_cli/ai/review/pipeline.py and tests/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

  1. In the implement job, compare the changed paths of each "fix" step with the changes and reads of the plan groups. Refuse a step that edits another path.
  2. 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 New with devops roadmap return-style evidence.
  3. 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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 6, 2026
  2. dan-petty commented on Nov 6, 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. It prevents unauthorized file edits in an automated job, but it is a guardrail rather than a user-facing defect.
    • Value: Medium. It stops a class of out-of-scope edits that weaken checks, but it does not change user-visible output.
    • Effort: Low. The body states the change is about 60 lines plus one test, extending an existing path check.
    • Related: fix(roadmap): the stage job refuses a plan that names a path that does not exist #3010, which asks for a different change. 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.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 6, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 7, 2026
  5. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-07 12:09 UTC

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