Repository navigation
fix(deps): move pydantic-ai to 2.71 and the harness to 0.71 - #6524
Conversation
Pin pydantic-ai 2.71.0 and pydantic-ai-harness 0.71.0. Find retries with is_retry, pass answered_by, send a 408 frame again, import FileSystem from file_system, and drop the google-genai hold of Renovate. Refs #5098
Behavior changes that the upgrade forcesThis pull request only moves the pins and keeps the behavior of today where the code can keep it. It adopts no new feature: no change to the shell policy, Implement step (stock
|
Check resultsHead commit:
Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/44796817642/job/136498389750 Skipped check: Plan Check |
… as provider On 2.71 the call that spends the retries of a tool reaches ToolCallLog as a raw ToolFailed. The log now notes it as failed with its reason, so its repeat gets the refusal of a repeated failed call (#3570). The provider rule takes the class of an HTTP status category, such as ModelRequestRejectedError: HTTP 400. The tool_retries description and the budgets spec say that a spent retry comes back as a failed result. Each is_retry check of the run trace has a test. Refs #5098
Review round 2: four findings fixedThe branch takes origin/main with a merge commit, not a rebase, so the push needed no force. Each fix keeps the behavior of today; none is new gate work.
Checks on the new headHead
|
pydantic-ai 2.59 named ModelContextWindowExceededError and
ModelQuotaExceededError already, and their stops were ci_infra. The provider
rule takes only the class names that 2.71 adds. The match-lines docstrings name
the {"error": ...} wrap of model_response_str().
Refs #5098
Review round 3Head
The change-list comment (change 8), the round 2 comment, the archived proposal, design and tasks, and the body now give the narrow scope. Body: 953 characters, 870 before Local checks on
|
🤖 I have created a release *beep* *boop* --- ## [0.184.0](v0.183.2...v0.184.0) (2026-11-20) ### Features * **deps:** merge minor, patch and digest Renovate updates ([#6550](#6550)) ([952ac24](952ac24)), closes [#6547](#6547) ### Bug Fixes * **deps:** move pydantic-ai to 2.71 and the harness to 0.71 ([#6524](#6524)) ([52f7231](52f7231)), closes [#5098](#5098) * **openspec:** pin OpenSpec and Style Dictionary in the root npm lockfile ([#6536](#6536)) ([299e050](299e050)) --- 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>
Move pydantic-ai from 2.59.0 to 2.71.0 and pydantic-ai-harness from 0.59.0 to 0.71.0. Experiment 1 of #6519 runs the stock harness Coder and needs them.
2.60 builds no RetryPromptPart, so the run trace and refine find a retry with is_retry. The build_results override takes answered_by. 2.71 names an HTTP error by its status category, so the gateway model reads a 408 stream frame before its timeout class and sends again, and the provider failure rule takes the class names that 2.71 adds. FileSystem comes from file_system, and ruff bans the old names. pydantic-ai caps google-genai below 3, so the Renovate hold is gone.
Coder now answers a spent tool retry with a failed result and the run goes on. The tool log notes that call as failed, so its repeat gets the refusal of a repeated failed call. A PR comment lists each behavior change that the upgrade forces.
Closes #5098
Change:
openspec/changes/archive/2026-11-20-5098-pydantic-ai-2-71/