Repository navigation
fix(roadmap): cap output and deadline of a step model call - #2881
Merged
Merged
Conversation
Move OutputCapReached to exceptions/ai_pydantic.py with the code OUTPUT_CAP_REACHED. Add a test that a streaming call ends at the deadline. State the deadline margin from the 3-second rate of the runaway call.
Correct the deadline margin, the resend note and the task text.
Owner
Author
Test results
Fail-to-pass
Review findings fixed
DeclinedNone. |
…cap-and-call-timeout
dan-petty
marked this pull request as ready for review
October 31, 2026 15:55
dan-petty
pushed a commit
that referenced
this pull request
Oct 31, 2026
🤖 I have created a release *beep* *boop* --- ## [0.28.0](v0.27.0...v0.28.0) (2026-10-31) ### Features * **ai:** preview requests in dry run for rag ingest analyze ([#2873](#2873)) ([c53bcec](c53bcec)), closes [#2244](#2244) * **ai:** preview requests in dry run for runs cost cache ([#2884](#2884)) ([0df9777](0df9777)) * **roadmap:** the Service marks green stage drafts ready ([#2882](#2882)) ([63fae06](63fae06)), closes [#2865](#2865) * **roadmap:** tool log names the reason of a retried call ([#2875](#2875)) ([03d3dc5](03d3dc5)), closes [#2866](#2866) ### Bug Fixes * **ci:** devops ci test expands or refuses a path argument ([#2879](#2879)) ([884a80b](884a80b)), closes [#2868](#2868) * **roadmap:** cap output and deadline of a step model call ([#2881](#2881)) ([0c4bd3a](0c4bd3a)), closes [#2869](#2869) --- 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>
Closed
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One model call in an implement step could run for 25 minutes. The model never stopped, made 57,653 tokens, and held the only slot of the model tier. Nothing in the chain capped one reply or one call.
max_tokens(16384) andrequest_timeout(600 s) from two constants. The deadline is one clock over the whole call, the stream included. It is less than the 1500 s timeout of the gateway router, and a test holds this.lengthstops the step at once, with the reasonOutputCapReachedthat names the cap. Pydantic AI does not stop on such a reply: a cutwrite_filecall wrote its broken arguments as a file.ModelRequestTimeoutand the deadline in seconds.OutputCapReachedis a domain error with the codeOUTPUT_CAP_REACHED.edit_file.The gateway does not change. The OpenSpec change is archived with this pull request.
Closes #2869