Skip to content

fix(roadmap): stage writes RENAMED and REMOVED spec deltas #5340

Closed

Description

@dan-petty

Problem

The stage job cannot write a RENAMED or REMOVED spec delta. StageSpec in src/devops_cli/roadmap/stage/stage_change.py (lines 427-433 at 2026-11-13) holds only the fields added and modified. A plan that must rename a requirement keeps the old name above new text. #5336 merged such a spec (the requirement name says the opposite of its text), and the planner wrote a false reason ("a delta refuses a modified name"). OpenSpec 1.17.0 and openspec/config.yaml support RENAMED and REMOVED.

Proposed solution

Add renamed (FROM/TO pairs) and removed (names with a reason) to StageSpec, render them as ## RENAMED Requirements and ## REMOVED Requirements, teach the planner prompt when to use them, and make the stage gates check that a MODIFIED requirement whose meaning changes gets a fitting name.

Acceptance

  • A test plan that renames a requirement renders a RENAMED block that openspec validate accepts.
  • A test plan that removes a requirement renders a REMOVED block with its reason.

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 13, 2026
  4. added
    status/in-review
    and removed
    status/in-progress
    on Nov 13, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 12:38 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/mediumpriority/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