Skip to content

fix(roadmap): the scenario check refuses a data file path #4316

Closed

Description

@dan-petty

Problem

The scenario check refuses a spec scenario that names a data file as a condition, because no test text holds the path of that file.

_scenario_problems in src/devops_cli/roadmap/stage/stage_change.py takes each code span of a scenario that is a repository path or a code identifier. It then needs a behavior group whose test text or verify command holds that string. A scenario that says what a fixture holds, for example ".github/labels.yml declares no scope/floor", names the file as input data. The test builds that data in memory and has no reason to name the path.

Evidence: a live stage run on item #3599 with the live stage model (deepseek-v4.1-flash-1017), 2026-11-10. The last reply was refused with: "Scenario 'A scope that no label declares' names .github/labels.yml with no behavior test." The when of the scenario was: "the title of the issue is fix(floor): the job drops a comment and .github/labels.yml declares no scope/floor". The item failed. The stage job logs of 2026-11-04 to 2026-11-09 hold 8 failures with this sentence, for example docs/ROADMAP_WORKFLOW.md (#3398), src/devops_cli/ai/tasks/roadmap_stage_change.md (#3462) and write_file (#3570).

Expected

  • The check judges the code spans of the then of a scenario, which state the behavior under test, and the paths of the when that a task of a behavior group changes or reads.
  • A path in the when that no group changes, creates or reads is input data and needs no test text.
  • A scenario whose then names code with no behavior test is still refused.

Acceptance criteria

  • A test with the scenario above and a behavior group whose test text does not name .github/labels.yml passes the check. It fails today.
  • A test with a then that names src/x.py and no test text that names it is refused.
  • uv run devops roadmap eval stage --replay keeps its result.

Existing tool considered

No library judges a scenario of a spec delta. The change narrows the spans that _scenario_problems reads. Cost: about 25 000 tokens to build, 3 000 to keep, and 1 hour.

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 10, 2026
  2. dan-petty commented on Nov 10, 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. Eight stage failures in one week block legitimate items, but the items are valid and a person can override the check.
    • Value: Medium. It removes false rejections that stall valid roadmap items from passing the stage gate.
    • Effort: Low. The body states the change narrows which spans _scenario_problems reads, costing about one hour.
    • Related: feat(roadmap): the plan check pairs each new spec scenario with a test task #3423, which asks for a different change. Both concern the scenario-to-test pairing check, but #3423 adds the pairing requirement while the candidate fixes a false positive where data file paths in the when clause are wrongly required to appear in test text.
  3. added
    priority/p2-medium
    owner/agent
    on Nov 10, 2026
  4. removed
    status/new
    owner/agent
    on Nov 10, 2026
  5. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-10 03:32 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