Skip to content

fix(roadmap): name the repo and cause in refine warnings - #2784

Merged
dan-petty merged 14 commits into
mainfrom
fix/2562-refine-warning-reasons
Oct 30, 2026
Merged

dan-petty merged 14 commits into
mainfrom
fix/2562-refine-warning-reasons

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A refine warning for a failed item now names the repository and the cause. Before, the Service logged only the class of the error, and issue numbers repeat across its 7 repositories.

  • AIClientError carries status and timed_out. The gateway, Claude and Ollama paths, the stream reads and the pydantic-ai run set them. Its reason is the error code, then timeout for a timed out call or HTTP 408 and 504, then the HTTP status. It holds no text of the model.
  • The warning for a stopped investigation holds the class of the pydantic-ai error and the fixed description in its message. It drops the body, later lines, quoted parts, text after :, ; or =, and control characters, because pydantic-ai writes data of the model's reply there.
  • One helper, bounded_text, masks and cuts the message of a stopped run for refine and for the implement step. The implement step now reads message, not str(), which closed the leak of the error body (fix(roadmap): keep the body of UnexpectedModelBehavior out of the stop reason of an implement step #2778).
  • The two warnings and the shared class: message text move to lang/en.

Closes #2562

This reverts commit 6068d7ecebe84641374dea15dfc04c35f979e7b4.
The reason of an AIClientError now says timeout for a timed out call or for HTTP 408 and 504. The Claude, Ollama and stream paths set the status and the timeout as the gateway path does.
One helper masks and cuts the message of a stopped run for refine and for the implement step. The warning keeps the fixed description of the message and drops quoted parts, text after a colon, a semicolon or an equals sign, and control characters. The implement step reads the message, not the body of the error. The two refine warnings move to lang/en.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

  • Full devops ci: all gates passed. The test check (pytest and coverage) took 187 s (3m 7s). The whole run took 3m 16s.
  • devops ci fail-to-pass --base origin/main: 17 tests failed on base and pass on the branch (tests in tests/test_ai_client_error_reason.py). No test errored on the branch.

Review findings fixed

Findings not fixed: none.

Open points

  • The stop warning for a tool retry limit reads Tool <text> exceeded max retries count of N. The tool name is hidden on purpose, because the model can choose it.
  • The branch history has an archive commit and its revert, because the plan changed after the first archive. The squash merge hides them.

@dan-petty
dan-petty marked this pull request as ready for review October 30, 2026 14:43
…ng-reasons

# Conflicts:
#	src/devops_cli/config/constants.py
#	src/devops_cli/roadmap/implement_step.py
#	tests/test_roadmap_implement_step.py
…ng-reasons

# Conflicts:
#	src/devops_cli/lang/en/messages.py
#	src/devops_cli/roadmap/implement_step.py
@dan-petty
dan-petty merged commit 85b3a67 into main Oct 30, 2026
19 checks passed
@dan-petty
dan-petty deleted the fix/2562-refine-warning-reasons branch October 30, 2026 16:31
dan-petty pushed a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.22.5](v0.22.4...v0.22.5)
(2026-10-30)


### Bug Fixes

* **roadmap:** keep the diff of a step when a model call fails
([#2781](#2781))
([c6a837d](c6a837d)),
closes [#2731](#2731)
* **roadmap:** name the repo and cause in refine warnings
([#2784](#2784))
([85b3a67](85b3a67)),
closes [#2562](#2562)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): refine's failure warnings name no repository and drop the reason, so a gateway timeout and a bad model reply look the same

1 participant