Repository navigation
Description
Problem
Two small form defects pass the gates today. Both were found in the plan fixes of 2026-11-02.
form_problemsaccepts a behavior group whose first task is a bare filename, so a task that says nothing passes (docs(openspec): plan #2916 One function decides draft readiness #3170, found by its fix agent).- A title with a repeated word, such as
plan #2950 plan alternatives coverage telemetry, passestitle_problems(docs(openspec): plan #2950 Add alternatives coverage metrics and alert #3173 and the pre-fix docs(openspec): plan #2919 stuck-item age metrics and alert #3171 title).
Also, a plan that the Service wrote with a single group titled placeholder was marked ready by the job, so the ready mark has no content check (#3174; the step that took it out of draft was not verified). That belongs to the content gate (#3200) and the draft-readiness plan (#3170); this issue lists it so the check is not lost.
Proposed change
- Refuse a task that is only a path, or only a word, in
form_problems: a task must hold a verb and an object, and a first task of a behavior group must name a test and the behavior it fails on. - Refuse a title whose summary starts with the word that precedes it (
plan #N plan), or that repeats the wordplanor the issue number. - In feat(roadmap): refuse a plan with placeholder or cut text #3200, add: the ready mark of a plan refuses an artifact that holds a placeholder group.
Acceptance criteria
- A test shows that a task of one bare filename is refused with a message that names the group.
- A test shows that
plan #2950 plan ...is refused andplan #2950 Add alternatives ...passes. - A comment on feat(roadmap): refuse a plan with placeholder or cut text #3200 carries item 3.
Related: #3189, #3200, #3213, #3249.
Proposed design
Problem statement
The plan form gates accept two bad texts. A behavior-group first task can be only a bare filename. A plan title can repeat a word. The change makes form_problems and title_problems refuse these texts. It adds offline tests for both gates. The ready-mark placeholder check moves to a separate issue because #3200 and #3170 own it.
Acceptance criteria
Requirement: Refuse a bare filename first task
form_problems SHALL refuse a behavior-group first task that is only a path and does not name a test and the behavior it fails on.
Scenario: Bare filename first task
- WHEN A behavior group's first task is
src/devops_cli/roadmap/stage_form.py. - THEN
form_problemsreturns a problem text that names the group.
Requirement: Refuse a single-word first task
form_problems SHALL refuse a behavior-group first task that is only one word and does not name a test and the behavior it fails on.
Scenario: Single-word first task
- WHEN A behavior group's first task is
Refactor. - THEN
form_problemsreturns a problem text that names the group.
Requirement: Accept a first task with a test and behavior
form_problems SHALL accept a behavior-group first task that names a test and the behavior that the test fails on.
Scenario: Well-formed first task
- WHEN A behavior group's first task is
Add a test in tests/roadmap/test_roadmap_stage_text_lines.py for a bare filename task. - THEN
form_problemsreturns no problem for the task.
Requirement: Refuse a repeated leading word in a plan title
title_problems SHALL refuse a plan title whose summary starts with the word that precedes the summary.
Scenario: Repeated leading word
- WHEN The title is
plan #2950 plan alternatives coverage telemetry. - THEN
title_problemsreturns a problem text.
Requirement: Accept a plan title with a new leading word
title_problems SHALL accept a plan title whose summary starts with a word that does not repeat the word before it.
Scenario: Valid plan title
- WHEN The title is
plan #2950 Add alternatives coverage telemetry. - THEN
title_problemsreturns no problem.
Requirement: Refuse a repeated issue number
title_problems SHALL refuse a plan title that repeats the issue number in the summary.
Scenario: Repeated issue number
- WHEN The title is
plan #2950 Add coverage for #2950. - THEN
title_problemsreturns a problem text.
Requirement: Refuse a repeated plan word
title_problems SHALL refuse a plan title that repeats the word plan after the prefix.
Scenario: Repeated plan word
- WHEN The title is
plan #2950 Add plan coverage. - THEN
title_problemsreturns a problem text.
Existing Tool Considered
No alternatives check has run. No open, maintained tool covers these repository-specific plan-form gates. The change extends existing Python code and tests. Written cost: about 8,000 tokens to build, about 4,000 tokens to keep and fix, and about 3 hours.
Key questions
- How should
form_problemsdetect a task with no action?: Add a narrow rule instage_form.form_problems. Strip the task. Refuse it when it has no whitespace or when it is a path. For a behavior group, require a test name and the failed behavior. Return one problem that names the group. (best practice) [sources: src/devops_cli/roadmap/stage_form.py, tests/roadmap/test_roadmap_stage_text_lines.py, tests/roadmap/test_roadmap_stage_eval_gates.py]- Chosen: Narrow rule in stage_form. It uses the existing gate and returns the group name.
- Rejected: Full grammar parser. It is larger and refuses valid task text.
- Rejected: External task linter. No maintained tool knows this plan form.
- How should
title_problemsdetect a repeated word?: Add an explicit rule inpull_form.title_problems. Split the title into the prefix and the summary. Refuse the title when the first summary word equals the word before the summary. Also refuse a summary that repeatsplanor the issue number. (best practice) [sources: src/devops_cli/roadmap/pull_form.py, tests/roadmap/test_roadmap_pull_form.py, tests/roadmap/test_roadmap_stage_title.py]- Chosen: Explicit leading-word and repeated-token rule. It catches the reported titles and keeps other repeated words valid.
- Rejected: Refuse every duplicate word. It refuses valid titles that repeat a noun.
- Rejected: Model review of the title. It is not deterministic and has no offline test.
- Where should the new tests go?: Add the task case to
tests/roadmap/test_roadmap_stage_text_lines.py. Add the title cases totests/roadmap/test_roadmap_pull_form.py. (best practice) [sources: tests/roadmap/test_roadmap_stage_text_lines.py, tests/roadmap/test_roadmap_pull_form.py]- Chosen: Extend the existing form test modules. They already exercise
form_problemsandtitle_problems. - Rejected: Add a new test module. It adds a file and no new coverage.
- Chosen: Extend the existing form test modules. They already exercise
- Should a task with a verb and an object always pass?: Yes. Keep the gate narrow. Refuse only a single token, a path-only task, or a behavior-group first task with no test and no behavior. Do not parse grammar. (best practice) [sources: src/devops_cli/roadmap/stage_form.py, tests/roadmap/test_roadmap_stage_eval_gates.py]
- Chosen: Narrow refusal. It fixes the defect and does not refuse valid plans.
- Rejected: Strict verb-object parser. It is brittle and needs a large word list.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 2, 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.Two small validation gaps that let bad plans pass gates and cost a review round, but no data loss or security risk.Prevents invalid plans from reaching review, saving a person a review round per bad plan.Two small validation rules in existing functions plus a comment on another issue.Both enforce plan content quality gates; the candidate adds form and title validation while #3200 handles placeholder and cut text.devops-cli-service commentedon Nov 2, 2026
Status set to Ready at d428c7f (see proposed design in issue body).
Moved to new items: #3297.
devops-cli-service commentedon Nov 2, 2026
The stage job returned the item to New. The premise of the issue does not hold at the staging commit, so the job planned no change and opened no pull request.
Evidence:
The premise is not false:
form_problemsis defined at src/devops_cli/roadmap/stage_form.py:85 andtitle_problemsis imported by tests/roadmap/test_roadmap_pull_form.py, so both gates exist and can be tightened.devops-cli-service commentedon Nov 3, 2026
Released in v0.51.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.51.0
devops-cli-service commentedon Nov 3, 2026
Live since 2026-11-03 17:30 UTC
fix(roadmap): check the plan title in the stage job (#3360)
fix(roadmap): a placeholder reply of a model moves no item (#3542)