Repository navigation
Labels
Description
Problem Description
devops roadmap intake --title … --body-file … --confirm refused a new candidate on 2026-10-27:
skipped, nothing written: the model's proposal is not valid: type '' is not one of type/feature, type/bug, type/security, type/refactor, type/docs, type/infra, type/test, type/chore; type '' is not one of type/feature, type/bug, …
The same command with the same title and body passed on the next run (#2368). Each run took about 5 minutes.
ModelProposal.type is str = "" (src/devops_cli/roadmap/intake_model.py). GatewayIntakeModel.propose sends the JSON schema of ModelProposal to the gateway as response_format (chat_structured, src/devops_cli/ai/client/structured.py). Thus the schema lets the model leave type empty, also when the candidate has no type label and intake needs one. The second request that #1677 added got an empty type too, so the run stopped.
Reproduction Steps
- File a candidate that has no type label:
uv run devops roadmap intake --title "fix(k8s): <summary>" --body-file <file> --confirm. - Some runs stop with
type '' is not one of …and file nothing.
Expected vs Actual Behavior
- Expected: when the candidate needs a type, the reply schema permits only the labels in
ProposalRequest.types, so the model cannot send an empty or unknown type. - Actual: the schema permits any string, and intake finds the empty value only after the reply.
Environment Diagnostics
devops-cli 0.7.1 (main at 69928b0). analysis task: qwen3.8:27b through the LiteLLM gateway v1.103.0.
Proposed fix
- Build the reply schema for each request. When the candidate has no type label, make
typerequired and anenumofProposalRequest.types. Use the same method for the other fields that have a fixed list (priority, value, effort). The JSON schemaenumkeyword and the structured output of the gateway do the work, so no new check is necessary. - Find out if intake can read the type from the Conventional Commit prefix of a
--titlecandidate (fixgivestype/bug) and not ask the model for it.
Related
- fix(roadmap): intake asks the model again when its proposal names a value off the list, and a --title candidate it still cannot place exits non-zero #1677 asks the model again when a value is not on the list. This issue removes the cause of that second request for
type. - fix(ai): gateway chat calls stream with keepalive pings, so the Cloudflare 125 s read timeout does not cut a long reply #2365: the
analysiscalls of intake also stop at the 125 s Cloudflare read timeout. That is a different cause of a slow intake run.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 27, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The schema permits an empty type string that the validator rejects, causing intermittent intake failures.The failure is intermittent and blocks a user action, but a retry succeeds, so it is not a hard blocker.It removes a recurring ~5-minute wasted run and an unreliable intake step for users filing candidates.The fix changes schema generation to emit an enum and required flag for type, priority, value, and effort, with no new validation logic.Both constrain structured model replies, but #1419 adds provider-level wire constraints while this item makes the schema itself reject empty or unknown values at generation time.fix(roadmap): intake's reply schema limits each fixed field to its va…
chore(main): release 0.7.4 (#2377)