Repository navigation
Description
Problem
Refine marks items as "waits on a person" when no person decision is needed. On 2026-11-05 at about 14:00Z, 56 New items in dan-petty/devops-cli were in this group. No reply had come on any of them. Their last refine comment holds:
- 21 items: only
(missing verified source)questions, such as "Which module holds the readiness checks" on fix(pr): Require a replay score in stage-change PRs #3398. A tool that reads the repository can answer such a question. This was read on two samples only, so the count that a tool can answer is not known. - 16 items: a validator text, "The proposal has no problem statement", on items such as fix(roadmap): the stage plan cites an open change's proposal as evidence #3465, feat(roadmap): the stage eval records the constants that a plan cites #3390, feat(roadmap): Stage items whose draft plan fails the check #3387, feat(roadmap): audit command lists and checks test registry declarations #3332 and fix(roadmap): Use spec requirement names in staged criteria #3326. The model reply failed a form check, and a person cannot act on this.
- 13 items: a question marked
(a person decides). These are real waits. - 6 items: other text.
The investigation failure Exceeded maximum output retries (2) came 8 times in the 14 hours to 14:07Z, and it keeps the open questions of the item. So a failed model reply can become a person wait.
The owner asked on 2026-11-05 that routine tasks run with no person.
Expected
Only a real decision makes a person wait. A validator failure is a job failure: refine retries the item in a later round, with a limit on tries, and then reports the failure as a job problem and not as a question. Refine answers a source question with its read tools before it asks. If a tool cannot find the source, refine says what it searched.
Acceptance criteria
- A test: a proposal that fails a form check gives no person wait. The item gets another try in a later round, and the record counts the tries.
- A test: after the limit of tries, the inbox lists the item as a job failure with the check that failed.
- A test: a
(missing verified source)question whose answer a read tool finds does not stop the item. - A test: a
(a person decides)question still makes a person wait. - A run shows the count of the 56 items that go on without a person.
Existing tool considered
Existing project code: the read tools of the refine investigation, and pydantic-ai output retries. No new tool.
Related
Proposed design
Problem statement
Refine marks items as waiting on a person when the wait is a form-check failure or a source lookup that a read tool can do. Exhausted model output retries also become open person questions. This change makes only (a person decides) questions create a person wait. It retries form-check and model-output failures with a limit, then reports them as job failures. It answers source questions with read tools and records the paths that it searched when no tool finds the source.
Acceptance criteria
Requirement: Form check failure is not a person wait
A refine proposal that fails a form check SHALL NOT set the item to a person-wait state.
Scenario: Validator failure
- WHEN refine validates a proposal and the form check fails
- THEN the item has no person-wait state and its job record increments the form-check failure count
Requirement: Form check retry is bounded
Refine SHALL retry an item whose proposal fails a form check in a later round until the configured try limit is reached.
Scenario: Retry below limit
- WHEN a proposal fails a form check and the job record count is below the configured try limit
- THEN the item is due in a later refine round and the job record shows the incremented try count
Requirement: Try limit reports a job failure
At the configured try limit, the roadmap inbox SHALL list the item as a job failure with the failed form check name.
Scenario: Try limit reached
- WHEN a proposal fails the same form check at the configured try limit
- THEN the inbox row shows a job failure, the form check name, and the final try count, and it shows no person-wait question
Requirement: Model output retry exhaustion is a job failure
A refine job that exhausts model output retries SHALL record a job failure and SHALL NOT preserve open questions as person waits.
Scenario: Output retries exhausted
- WHEN the model returns
Exceeded maximum output retries (2) - THEN the job record shows the output-retry failure and the item has no person-wait state
Requirement: Read tool answers a source question
Refine SHALL answer a (missing verified source) question with its read tools before it asks a person.
Scenario: Source found
- WHEN a missing-source question names a module and a read tool finds the module path
- THEN refine records the path as the answer and the item continues without a person-wait state
Requirement: Failed source search is reported
When read tools cannot find a source, refine SHALL record the searched paths and SHALL NOT create a person-wait question.
Scenario: Source not found
- WHEN read tools search the named source and find no match
- THEN the job record lists the searched paths and the item has no person-wait state
Requirement: Person decision still waits
An open question marked (a person decides) SHALL set the item to a person-wait state.
Scenario: Person decision question
- WHEN refine finds an open question marked
(a person decides) - THEN the item has the person-wait state and the roadmap inbox lists the question
Requirement: Run report counts items without a person
The refine run report SHALL show the number of items that continue without a person-wait state.
Scenario: Count on the 56-item fixture
- WHEN refine runs on the 2026-11-05 fixture of 56 New items
- THEN the report shows the count of items that continue without a person-wait state and lists each counted item
Existing Tool Considered
No alternatives check has run, and no new external tool is needed. The existing refine investigation read tools list files, read files, search, show git history, inspect symbols and callers, read the repository map, and read a base spec. The pydantic-ai output retry feature retries failed model output. These tools do not classify a form-check failure as a job failure, count tries, or list a job failure in the inbox. The change extends this code. The written cost is about 30k tokens to build, 10k tokens to keep and 8k tokens to fix, with about 2 days elapsed.
Key questions
- Should a proposal that fails a form check make the item wait for a person?: No. The failure is a job failure. Refine retries the item in a later round with a bounded try count. Then the roadmap inbox lists the item as a job failure with the failed check name. (best practice) [sources: CONTEXT.md, docs/ROADMAP_WORKFLOW.md]
- Rejected: Person-wait question. A person cannot fix a validator failure, so this hides a job defect.
- Chosen: Bounded retry then job failure. This keeps transient failures recoverable and stops after a fixed limit.
- Rejected: Immediate job failure. A transient model or validator failure gets no second chance.
- What try limit should refine use for a repeated form-check failure?: Use a configurable limit with a default of 3 refine tries for the same failure class. A test can set the limit lower. (best practice) [sources: docs/ROADMAP_WORKFLOW.md]
- Rejected: One try. A transient failure stops the item.
- Chosen: Three tries. Two retries cover transient failures and keep the work bounded.
- Rejected: Unlimited tries. The item can loop and hide a permanent defect.
- How should refine handle a
(missing verified source)question?: Refine runs its read tools first. If a tool finds the source, refine records the path as the answer. If no tool finds it, refine records the searched paths and does not create a person wait. After the try limit, the item becomes a job failure. (best practice) [sources: CONTEXT.md, docs/ROADMAP_WORKFLOW.md]- Rejected: Ask a person at once. A read tool can answer a repository fact, and a person is not needed.
- Chosen: Read tools first, then job failure after the limit. This uses the existing read tools and keeps a source lookup out of the person queue.
- Rejected: Keep the question open with no status. The item can wait forever with no record of the failed search.
- Should a
(a person decides)question still make the item wait?: Yes. This is a real decision outside the roadmap, so the item keeps the person-wait state. (best practice) [sources: CONTEXT.md]- Chosen: Keep the person wait. The project defines a person's decision as a block outside the roadmap.
- Rejected: Remove all person waits. This removes the one case that needs a person.
- Where should refine record tries and job failures?: Record them in the issue body's job record. Do not add a label or a separate store. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, CONTEXT.md]
- Chosen: Issue body job record. The ADR says the issue body holds the job record, and labels hold only Status, Priority, Value and Effort.
- Rejected: A new label. The label families hold roadmap fields, not job failure details.
- Rejected: A separate database. This adds a store outside GitHub and breaks the source-of-truth rule.
- What should the roadmap inbox show for a job failure?: Show one row for the item with the failed check name, the try count, and the last error. Show no person-wait question. (best practice) [sources: docs/ROADMAP_WORKFLOW.md]
- Chosen: Job failure row with check and try count. A person can see the job defect and the retry history.
- Rejected: Person-wait question. A validator failure is not a person decision.
- Rejected: Silent retry with no inbox row. A permanent failure stays hidden.
- Should exhausted model output retries preserve the item's open questions as person waits?: No. The job records the output-retry failure and the item has no person-wait state. (best practice) [sources: CONTEXT.md, docs/ROADMAP_WORKFLOW.md]
- Chosen: Record a job failure and do not promote the open questions. A failed model reply is a job failure, not a person decision.
- Rejected: Keep the open questions as person waits. The body records this as the defect that puts items in the person queue.
- Rejected: Retry forever. The item can loop and hide a permanent failure.
- Which read tools does the refine investigation have?: It has read-only tools: list files, read a file, search, git log and show, file symbols, symbol callers, a repository map, and a base spec. [sources: CONTEXT.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty 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.56 items are stuck and the owner explicitly requested routine tasks run with no person.Unblocks 56 stuck items and prevents future accumulation of false person-waits.Requires changing wait-creation logic, adding retry with a limit, and wiring read tools to answer source questions, plus four tests.Both work on the person-wait mechanism in refine; #3077 defines the ask-and-wait flow, the candidate restricts what triggers it.devops-cli-service commentedon Nov 5, 2026
Status set to Ready at cfcbd3d (see proposed design in issue body).
chore(main): release 0.72.0 (#3835)
devops-cli-service commentedon Nov 6, 2026
Released in v0.72.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.72.0
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 19:47 UTC
fix(roadmap): refine looks again at a wait that older rules set
fix(roadmap): refine looks again at a wait that older rules set (#4919)