Skip to content

fix(roadmap): the stage renders a verify command that the implement step does not read #3262

Closed

Description

@dan-petty

Problem

A staged plan gives the implement step no verification command.

  • The stage job renders each task as {work}, and verify that {verify} passes (messages.py:2990-2991, used at stage_change.py:523-529). The command is a code span inside the first line of the task.
  • The implement step reads verification commands only from lines of a task that come after the first line and start with Verification: (step_files.py:27 and _task_of, which takes lines[1:]). A code span in the first line is a named path, not a verification command.

So for a rendered group, TaskGroup.verification_commands is empty. Found by the fix agent of #3184, who probed it: verification_commands=() for a rendered group and for all 5 groups of the 2175 fixture. I confirmed the two code paths on main.

The step still has other checks (the unticked-task check, the archive check, CI), so the effect is that the group-level verify command from the plan is never run by the step.

Proposed change

Make the renderer and the parser agree. Either render the verify command on a Verification: line under the task (the form the parser reads and the form that openspec/config.yaml documents), or teach the parser to read the code span after "verify that". Prefer the first: one form, the one the docs name.

Acceptance criteria

  1. A test renders a staged group and shows that TaskGroup.verification_commands holds its verify command.
  2. A test on the fixture of an existing staged plan shows a non-empty tuple for each behavior group.
  3. A test fails if the renderer text and the parser disagree (a round trip from StageGroup to TaskGroup).
  4. The change folders already staged are not rewritten by this issue (state this in the proposal).

Related: #3189, #3226, #3254.

Activity

  1. added
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 2, 2026
  2. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    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. A safety net is silently skipped, but other checks (CI, archive, unticked-task) still guard the step.
    • Value: Medium. Users lose one verification layer per group, but the pipeline still has other checks.
    • Effort: Low. The fix changes one render function to emit a Verification: line and adds round-trip tests.
    • Related: fix(roadmap): the stage job requires devops ci test verify commands and mirrored test paths #3015, which asks for a different change. Both concern verify commands in staged plans, but #3015 enforces the command format while this candidate fixes the renderer/parser mismatch that makes the command unreadable.
  3. added a commit that references this issue on Nov 2, 2026
    acaf455
  4. removed
    status/new
    on Nov 2, 2026
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/roadmaptype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions