Repository navigation
Description
Problem
Two jobs accept placeholder text from a model as a real result. Stage reads any non-blank premise_failed as proof of a false premise, returns the item to New and drops the rest of the reply. Refine stores x as the problem statement and asks a person to state a problem that the body already states.
- Stage: 33 of 36 return comments on open items, on 32 of 35 items, hold filler: placeholder, x, none, probe,
__PROBE__, or "Not yet: I need to inspect the repository first." (feat(roadmap): Export eval fixtures as Harbor tasks with N trials #3104). - The return path has almost no real use. b05e678 (feat(roadmap): the stage job probes the premise #3176) added
premise_failedat 2026-11-02T14:02Z. The first return is at 14:55:04Z on feat(roadmap): cost and token budgets per item and per day #3066, with the evidenceplaceholder. feat(roadmap): size the runner Job resources from the plan #3193 and docs(roadmap): Compare safe-outputs with the implement Job write path #3109 state that the premise holds, and so does fix(roadmap): the plan form gates miss a bare filename task and a repeated word in the title #3255, which is now closed. Only feat(roadmap): Add a test-first manifest kind to the stage plan #3251 on an open item states a false premise. - Code under
src/devops_cli/roadmap/:stage_change.py:423,:455andstage.py:741accept any non-blank text.src/devops_cli/ai/tasks/roadmap_stage_change.md:29says "When it is a string, no other key is needed", and line 44 refuses a placeholder in plan text only. - Refine:
refine.py:237hasproblem_statement: str, andrefine.py:1174givesNextStep.PERSON. 21 New items hold x, y or placeholder in the problem statement or the existing-tool answer, for example feat(roadmap): every step repairs before it gives up, in bounded rounds #3053, feat(roadmap): an agent that needs a decision asks on the issue and waits #3077, feat(roadmap): Add requirement text to the stage context #3246, fix(roadmap): stage verifies command paths in CLI tree #3299 and fix(roadmap): the implement job takes a branch a person updated #3392. These waits date from 2026-11-02T05:18Z to 2026-11-04T01:28Z. is_placeholder(pull_form.py:118) alone is not enough. Its set holds noprobeory, and it cannot catch "Not yet: ...".
Hypothesis, unverified: {"premise_failed": "x"} is the smallest valid stage reply, and the sampled refine stubs hold x in the 2 required keys. Correlation only: the first filler return is 4 minutes before the first zero-tool plan run (#3076, 14:59Z).
Expected
One validated text type holds each free-text field of a model reply in refine and stage. A placeholder reply is a failed reply: the job retries once, records a failure, changes no label and asks no person. The stage return path goes away, or a typed form gates it. The issue fix(roadmap): refine looks again when the cause of a wait ends (#3483) depends on the repair pass of this issue.
Acceptance criteria
- The pull request removes the
premise_failedreturn path, or it gates the path with a typed form that holds the false claim and a quote of a probe answer or a tool answer. A test holds the choice. - A reply with
premise_failedset to each ofplaceholder,x,none,probe,__PROBE__and the text of feat(roadmap): Export eval fixtures as Harbor tasks with N trials #3104 does not return the item. - A reply with the texts of feat(roadmap): size the runner Job resources from the plan #3193, docs(roadmap): Compare safe-outputs with the implement Job write path #3109 or fix(roadmap): the plan form gates miss a bare filename task and a repeated word in the title #3255 does not return the item. docs(roadmap): Compare safe-outputs with the implement Job write path #3109 quotes a probe line, so a quote check alone fails this test.
- The stage schema refuses
{"premise_failed": "x"}. The refine schema refusesxin both required keys with empty criteria. - A refine reply with a placeholder problem statement or existing-tool answer retries once, then fails with no question to a person and no status change.
- A failed reply does not suspend the row by itself (
FailureLedgerinroadmap/run.py). - A dry-run pass lists the items that a filler return or a stub refine block stalled. With
--confirmit clears those blocks and sets the items back. It does not touch an item that a person set.
Existing tool considered
Pydantic validators (Annotated with AfterValidator) and the existing is_placeholder for the word class. No new tool.
Related
Related: #3394, #3395, #3297, #3207, #3301, #3416, #2754
Proposed design
Problem statement
Stage and refine accept placeholder model text as a valid result. A filler premise_failed returns an item to New. A stub refine blocks an item with a person question. The change adds one validated text type, removes the stage return path, retries a failed reply once, and adds a repair pass for stalled items.
Acceptance criteria
Requirement: Shared validated text type
Refine and stage MUST use one validated text type for every free-text field of a model reply.
Scenario: Placeholder in a free-text field
- WHEN A model reply sets a free-text field to
x,probe,y,none,__PROBE__,placeholderorNot yet: I need to inspect the repository first. - THEN The reply fails schema validation with a placeholder violation.
Requirement: Stage return path removed
The stage reply schema MUST NOT accept the premise_failed return path.
Scenario: Stage reply with only premise_failed
- WHEN A stage reply is
{"premise_failed": "x"} - THEN Schema validation fails and the item stays in its current status.
Requirement: Filler premise texts do not return
A stage reply MUST NOT return an item when premise_failed holds filler text.
Scenario: Filler values in premise_failed
- WHEN A stage reply sets
premise_failedtoplaceholder,x,none,probe,__PROBE__or the text of feat(roadmap): Export eval fixtures as Harbor tasks with N trials #3104 - THEN The item does not return to New.
Requirement: Real-looking premise texts do not return
A stage reply MUST NOT return an item when premise_failed holds the premise text of #3193, #3109 or #3255.
Scenario: Quoted probe line in premise text
- WHEN A stage reply sets
premise_failedto the text of docs(roadmap): Compare safe-outputs with the implement Job write path #3109, which quotes a probe line - THEN The item does not return to New and a quote check alone does not pass the reply.
Requirement: Refine placeholder fields fail
The refine schema MUST reject a reply whose problem statement or existing-tool answer is a placeholder.
Scenario: x in both required refine fields
- WHEN A refine reply sets
problem_statementandexisting_tooltoxand has empty acceptance criteria - THEN Schema validation fails with a placeholder violation.
Requirement: Placeholder reply retry and failure
A reply that fails placeholder validation MUST retry once, then fail without a person question or status change.
Scenario: Placeholder refine reply after retry
- WHEN A refine reply keeps
xinproblem_statementorexisting_toolafter one correction - THEN The job records a failure, changes no label and opens no person question.
Requirement: Failure ledger not suspended
A placeholder reply MUST NOT suspend its row in FailureLedger by itself.
Scenario: One placeholder failure
- WHEN A row records one placeholder failure and no other failure
- THEN
FailureLedgerdoes not mark the row as suspended.
Requirement: Repair pass dry run
The repair pass MUST list every item that a filler return or a stub refine blocked in a dry run.
Scenario: Dry run lists stalled items
- WHEN A dry-run repair pass reads the job records
- THEN The output lists each stalled item and changes no label.
Requirement: Repair pass confirm
The repair pass with --confirm MUST clear the recorded block and restore the item status.
Scenario: Confirm clears a filler block
- WHEN A repair pass runs with
--confirmon an item blocked by a filler return - THEN The item's recorded block is cleared and its status is restored.
Requirement: Repair pass leaves person changes
The repair pass MUST NOT change an item whose status or claim a person set.
Scenario: Person-set item
- WHEN A stalled item has a status or claim set by a person
- THEN The repair pass leaves that status and claim unchanged.
Existing Tool Considered
No alternatives check has run. Pydantic Annotated with AfterValidator is the open, maintained library that covers schema validation. It lacks placeholder detection. The existing is_placeholder rule fills that gap. It lacks probe, y and the Not yet: ... phrase, so extend it. This uses no new dependency and no separate tool build.
Key questions
- Should the stage job keep the
premise_failedreturn path behind a typed form, or remove it?: Remove thepremise_failedreturn path. The path has one true use and many filler uses. A typed form still trusts model text, and a quoted probe line does not prove a false premise. (best practice) [sources: src/devops_cli/roadmap/stage_change.py:423, src/devops_cli/roadmap/stage_change.py:455, src/devops_cli/roadmap/stage.py:741, src/devops_cli/ai/tasks/roadmap_stage_change.md:29, src/devops_cli/ai/tasks/roadmap_stage_change.md:44]- Chosen: Remove the return path. It makes filler text impossible and removes the weak return path.
- Rejected: Gate with a typed form. It still trusts model text and needs a quote check that docs(roadmap): Compare safe-outputs with the implement Job write path #3109 defeats.
- Rejected: Keep the current untyped string. It accepts
xas proof of a false premise.
- How should a free-text model reply reject a placeholder?: Use one shared Pydantic
Annotated[str, AfterValidator(...)]type. Extend the existingis_placeholderrules withprobe,yand theNot yet:prefix. Apply the type to every free-text field in refine and stage. (best practice) [sources: src/devops_cli/roadmap/pull_form.py:118, src/devops_cli/roadmap/refine.py:237, openspec/changes/3394-the-plan-check-refuses-a-placeholder/design.md, openspec/changes/archive/2026-10-30-2772-stage-group-files/proposal.md:41]- Chosen: Shared Pydantic validator. It reuses the
chat_structuredretry and one placeholder rule set. - Rejected: Separate checks in refine and stage. Two rule sets drift and leave gaps.
- Rejected: New placeholder library. No maintained library covers this project-specific reply shape.
- Chosen: Shared Pydantic validator. It reuses the
- What should happen after a placeholder reply fails validation?: Retry once through
chat_structured, then record a failure. Change no label and ask no person. Do not suspend the row inFailureLedger. (best practice) [sources: openspec/changes/archive/2026-10-30-2772-stage-group-files/proposal.md:41, src/devops_cli/roadmap/refine.py:1174, src/devops_cli/roadmap/run.py]- Chosen: Retry once, then fail. It matches the existing
max_retries=1correction and keeps the item in place. - Rejected: Ask a person. A placeholder is not a decision for a person.
- Rejected: Suspend the row. One bad model reply must not stop later items.
- Chosen: Retry once, then fail. It matches the existing
- How should the repair pass find and clear items that a filler reply stalled?: Read the job record in the issue body. A dry run lists each item with a recorded placeholder block.
--confirmclears only that record and restores the status. Leave any status or claim that a person set unchanged. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, CONTEXT.md, src/devops_cli/roadmap/run.py]- Chosen: Read the job record. The issue body holds the authoritative job record.
- Rejected: Reset every New item. It would touch items that no filler blocked and items a person set.
- Rejected: Scan comments only. Comments do not hold the authoritative job record.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 4, 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.It causes wrong state changes and wasted person attention on 33 of 36 replies but does not block the pipeline.The regression commit b05e678 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.It stops incorrect item returns and prevents persons from being asked to restate problems the body already states.It touches stage and refine schemas, adds a retry-and-fail path, removes or gates a code path, and adds a dry-run repair pass.#3011 added the premise_failed return path; the candidate removes or gates that same path and adds a typed-form gate.dan-petty commentedon Nov 4, 2026
The owner asked for this priority change on 2026-11-04. No written rule sets this priority. The reason is its effect: 33 of 36 plan return comments in the window hold filler text, and a filler reply moves an item back to New with no evidence.
devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 67d3f47 (see proposed design in issue body).
devops-cli-service commentedon Nov 5, 2026
Released in v0.57.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.57.2
devops-cli-service commentedon Nov 5, 2026
Live since 2026-11-05 01:03 UTC
fix(roadmap): refine looks again when a wait ends (#3555)