Skip to content

fix(roadmap): refuse a placeholder group title in a plan #3584

Closed

Description

@devops-cli-service

Split from #3395.

Problem: The plan check and the ready mark accept a plan whose task group title is a placeholder word. A plan with no content can reach ready. Evidence: #3174 and the comment on #3200 by dan-petty (2026-11-03T16:24Z). The check must refuse an artifact that holds a placeholder group.nnWhy deferred: This part is a separate rule from the placeholder summary and body of a plan pull request. It changes plan group parsing and the stage ready mark. It also needs Draft.change for a STAGE_PLAN draft. Keep the summary and body fix in one pull request.nnAcceptance criteria:n- The plan check SHALL refuse a plan when any task group title is a placeholder word. Scenario: a group title x; content_problems names the group.n- The ready mark SHALL read tasks.md at the head of a plan pull request and refuse a placeholder group title. Scenario: draft_readiness on a STAGE_PLAN draft with a group title x returns Answer.REFUSE and names the group.n- The check SHALL call is_placeholderon the title only. It SHALL not applyPLAN_FIELD_MIN_CHARSto a group title. Scenario: the titleArchive` gives no length problem.

Proposed design

Problem statement

The plan check and the ready mark accept a plan whose task group title is a placeholder word such as x. A plan with no content can then reach ready. Both paths must refuse a placeholder group title and name the group. A group title is a short label, so the length floor must not apply to it.

Acceptance criteria

Requirement: Placeholder group title in the plan check

content_problems SHALL return a problem that names the task group when a group title is a placeholder word.

Scenario: Group title x

  • WHEN A plan holds a task group with the title x.
  • THEN content_problems returns a problem that names the group and its title.

Requirement: Group title skips the length floor

The group-title rule MUST call is_placeholder on the title and MUST NOT apply PLAN_FIELD_MIN_CHARS to it.

Scenario: Short real title Archive

  • WHEN A plan holds a task group with the title Archive.
  • THEN content_problems returns no problem for that group title.

Requirement: Ready mark refuses a placeholder group title

draft_readiness SHALL return Answer.REFUSE and name the group when a STAGE_PLAN draft holds a placeholder group title.

Scenario: Stage plan draft with group title x

  • WHEN draft_readiness receives a STAGE_PLAN Draft whose change holds a task group titled x.
  • THEN The result is Answer.REFUSE, and its reason names the group.

Requirement: Stage ready reads tasks.md at the head

The stage ready row SHALL read tasks.md at the head commit of a plan pull request and put its text in the change field of the Draft.

Scenario: Draft built for a plan pull request

  • WHEN The stage ready row settles a plan pull request.
  • THEN The Draft holds the tasks.md text of the head commit in change.

Requirement: One rule for both paths

One helper SHALL produce the placeholder group-title problems, and content_problems and draft_readiness MUST both call it.

Scenario: Direct call of the shared helper

  • WHEN A test calls the shared helper with the text ## 1. x.
  • THEN The helper returns one problem that names the group 1 and its title x.

Existing Tool Considered

No alternatives check has run. The project already holds the detector: is_placeholder in src/devops_cli/roadmap/stage_change.py matches a placeholder word, and PLAN_FIELD_MIN_CHARS holds the length floor. No open tool detects a placeholder word in an OpenSpec task group title, so the change reuses is_placeholder and builds no new detector. The new code is the shared group-title rule, the Draft.change field and its plumbing: about 60 lines with tests, about 80k tokens to build, keep and fix, and about one working day.

Key questions

  • Where does the group-title rule live so that the plan check and the ready mark share one rule?: Put one helper, group_title_problems, in src/devops_cli/roadmap/stage_change.py beside is_placeholder and PLAN_FIELD_MIN_CHARS. content_problems calls it on the parsed task groups. draft_readiness calls it on the tasks.md text that Draft.change holds. (best practice) [sources: src/devops_cli/roadmap/stage_change.py, openspec/changes/3394-the-plan-check-refuses-a-placeholder/proposal.md:9, openspec/changes/3343-the-stage-probe-checks-defecttype-membership/design.md:5]
    • Chosen: One helper in stage_change.py. is_placeholder and PLAN_FIELD_MIN_CHARS already live there, and one import serves both paths.
    • Rejected: A second copy in the ready mark. Two copies drift, and one title must give the same answer in both paths.
    • Rejected: A new module for the rule. It moves is_placeholder away from its callers and adds a file for one function.
  • How does draft_readiness get the group titles and stay a pure function?: Add an optional change field to Draft. The stage ready row reads tasks.md at the head commit of the plan pull request and fills the field. draft_readiness reads the group titles from the field and makes no call of its own. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stage_ready.py:100, src/devops_cli/roadmap/implement_pull.py:118]
    • Chosen: Carry the text in Draft.change. The function stays pure, and the stage ready row already builds the Draft.
    • Rejected: Let draft_readiness read the file from GitHub. It puts I/O and a token in a pure function that four callers use.
  • Which rule applies to a group title?: Apply is_placeholder only. Do not apply PLAN_FIELD_MIN_CHARS to a group title, because a group title is a short label such as Archive. (best practice) [sources: openspec/changes/3394-the-plan-check-refuses-a-placeholder/specs/roadmap-stage/spec.md:4, src/devops_cli/roadmap/stage_change.py]
    • Chosen: is_placeholder only. A group title is a short label, and Archive is a valid title.
    • Rejected: is_placeholder and PLAN_FIELD_MIN_CHARS. The length floor is for prose fields and refuses a short valid title.
  • Which lines of tasks.md count as a group title?: Each task group heading ## <n>. <title>, and no task line. content_problems reads the parsed group titles of the plan. draft_readiness parses the same headings from the tasks.md text. (best practice) [sources: openspec/changes/archive/2026-11-03-2916-one-function-decides-when-any-draft/tasks.md:15, src/devops_cli/roadmap/stage_change.py]
    • Chosen: Group headings only. The criterion names the group title, and a task line is already a checked plan text.
    • Rejected: Every line of tasks.md. A task line holds prose, not a group title.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    ContributorAuthor

    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 placeholder group title lets an empty plan reach ready, but it is a quality gate gap, not a data-loss or security fault.
    • Value: Medium. It stops empty plans from consuming a review round, but the case is narrow.
    • Effort: Medium. It changes group parsing, the ready mark, and needs a Draft.change for STAGE_PLAN.
    • Related: fix(roadmap): the stage job refuses a placeholder plan summary #3395, which asks for a different change. Both target placeholder detection in plans, but #3395 covers the PR summary while the candidate covers the task group title.
  3. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at bd65ef6. A bot opened the item, so a review of the issue and of the proposal must approve it first. The review found the defects below. A person edits the body to answer them. The next refine round looks at the item again only after a body edit.

    • false_premise at key_questions[1]: The plan says four callers use draft_readiness. Neither the issue nor files supports this count. Evidence: "It puts I/O and a token in a pure function that four callers use."
  4. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 17, 2026
  5. added a commit that references this issue on Nov 17, 2026
    20aba88
  6. removed
    status/in-progress
    owner/agent
    on Nov 17, 2026
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    ContributorAuthor

    Live since 2026-11-17 09:25 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