You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(roadmap): a stage item that fails with AIClientError shows no reason #4338
A stage item that fails with AIClientError shows no reason, in the report of the command or in the log of the Service.
_failure_of in src/devops_cli/roadmap/stage/stage.py sets reason to an empty text for an AIClientError that is no schema failure ("a model's error says its class ... never the reply"). _plan_each catches the error and logs nothing. The report then reads #3599 (AIClientError).
Evidence: a live stage run with devops roadmap stage --plan --item 3599 and the stage model deepseek-v4.1-flash-1017, 2026-11-10, ended after 2 minutes 48 seconds with #3599 ... AIClientError. The gateway was healthy (devops ai gateway status). A second run on the same item passed that step. The cause of the first error (a gateway error, a timeout, a cut at 125 seconds) is not known.
Expected
The failure text of an AIClientError names the class of the error and its message, with the reply and the secrets masked (the message of a transport or HTTP error holds no reply).
The log of the Service holds one warning line for it, with the item number.
Acceptance criteria
A test of a stage item whose model call raises AIClientError("gateway returned 502") shows the text gateway returned 502 in StageFailure.reason. It fails today.
A test shows that the reply text of a StructuredOutputValidationError is still not in the reason.
Existing tool considered
mask_secrets and violation_summary already exist in the same module. The change prints the message of the error through mask_secrets. Cost: about 15 000 tokens to build, 2 000 to keep, and 45 minutes.
Activity
dan-petty commentedon Nov 10, 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.The gap hides the cause of stage failures but does not block the pipeline or lose data.Operators cannot diagnose a stage failure without the error message, which delays resolution.The change prints the error message through the existing mask_secrets helper in one function, about 45 minutes of work.Both show the AIClientError message in a failure record, but #2562 fixes the refine step warning while this candidate fixes the stage step reason field.devops-cli-service commentedon Nov 10, 2026
Released in v0.107.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.107.0
devops-cli-service commentedon Nov 10, 2026
Live since 2026-11-10 07:20 UTC