Skip to content

fix(roadmap): a placeholder reply of a model moves no item #3478

Closed

Description

@dan-petty

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.

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

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__, placeholder or Not 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

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

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_statement and existing_tool to x and 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 x in problem_statement or existing_tool after 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 FailureLedger does 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 --confirm on 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_failed return path behind a typed form, or remove it?: Remove the premise_failed return 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]
  • How should a free-text model reply reject a placeholder?: Use one shared Pydantic Annotated[str, AfterValidator(...)] type. Extend the existing is_placeholder rules with probe, y and the Not 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_structured retry 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.
  • 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 in FailureLedger. (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=1 correction 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.
  • 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. --confirm clears 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

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

    @dan-petty
    OwnerAuthor

    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. 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.
    • Value: Medium. It stops incorrect item returns and prevents persons from being asked to restate problems the body already states.
    • Effort: Medium. 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.
    • Related: feat(roadmap): the stage job probes the premise at the staging commit and returns an item whose premise is false #3011, which asks for a different change. #3011 added the premise_failed return path; the candidate removes or gates that same path and adds a typed-form gate.
  3. added
    priority/p2-medium
    priority/p1-high
    and removed
    priority/p2-medium
    on Nov 4, 2026
  4. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    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.

  5. added
    status/ready
    and removed
    status/new
    on Nov 4, 2026
  6. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 67d3f47 (see proposed design in issue body).

  7. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 4, 2026
  8. removed
    status/in-review
    on Nov 5, 2026
  9. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-05 01:03 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/p1-highscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions