Repository navigation
Description
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_problemsreturns 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_problemsreturns 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_readinessreceives aSTAGE_PLANDraftwhosechangeholds a task group titledx. - 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
Draftholds thetasks.mdtext of the head commit inchange.
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
1and its titlex.
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, insrc/devops_cli/roadmap/stage_change.pybesideis_placeholderandPLAN_FIELD_MIN_CHARS.content_problemscalls it on the parsed task groups.draft_readinesscalls it on thetasks.mdtext thatDraft.changeholds. (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_placeholderandPLAN_FIELD_MIN_CHARSalready 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_placeholderaway from its callers and adds a file for one function.
- Chosen: One helper in
- How does
draft_readinessget the group titles and stay a pure function?: Add an optionalchangefield toDraft. The stage ready row readstasks.mdat the head commit of the plan pull request and fills the field.draft_readinessreads 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 theDraft. - Rejected: Let
draft_readinessread the file from GitHub. It puts I/O and a token in a pure function that four callers use.
- Chosen: Carry the text in
- Which rule applies to a group title?: Apply
is_placeholderonly. Do not applyPLAN_FIELD_MIN_CHARSto a group title, because a group title is a short label such asArchive. (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_placeholderonly. A group title is a short label, andArchiveis a valid title. - Rejected:
is_placeholderandPLAN_FIELD_MIN_CHARS. The length floor is for prose fields and refuses a short valid title.
- Chosen:
- Which lines of
tasks.mdcount as a group title?: Each task group heading## <n>. <title>, and no task line.content_problemsreads the parsed group titles of the plan.draft_readinessparses the same headings from thetasks.mdtext. (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
devops-cli-service commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.A placeholder group title lets an empty plan reach ready, but it is a quality gate gap, not a data-loss or security fault.It stops empty plans from consuming a review round, but the case is narrow.It changes group parsing, the ready mark, and needs a Draft.change for STAGE_PLAN.Both target placeholder detection in plans, but #3395 covers the PR summary while the candidate covers the task group title.devops-cli-service commentedon Nov 6, 2026
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_premiseat key_questions[1]: The plan says four callers usedraft_readiness. Neither the issue norfilessupports this count. Evidence: "It puts I/O and a token in a pure function that four callers use."fix(roadmap): refuse a placeholder group title in a plan
devops-cli-service commentedon Nov 17, 2026
Released in v0.171.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.171.0
devops-cli-service commentedon Nov 17, 2026
Live since 2026-11-17 09:25 UTC