Refuse discarded PydanticAI execution state and support 2.40 - #102
Merged
Merged
Conversation
WaseemGhanem98
deleted the
fix/pydantic-ai-240-compatibility-20260909
branch
September 9, 2026 22:36
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.
PydanticAI execution configuration could be silently discarded during sanitized reconstruction: active retry overrides became defaults, and SDK 2.40 agent event hooks were omitted. Preflight now refuses active or unknown root/retry override state and registered or unknown event-hook state, while retaining ordinary inactive defaults and restored contexts.
Extends the verified PydanticAI range through 2.40 and prepares 0.5.10. Generator compatibility remains 4. Installed-artifact probes require the specific refusal codes alongside literal reconstruction and gateway isolation.
Validation: focused no-override adapter, dependency, delegation, example and helper controls passed on 2.32.2, 2.36.0, and each 2.37.0–2.40.0; expected wrapper/event API skips apply on older SDKs. Ruff, mypy, and version checks passed. Independent pinned-source assessment identified the corrected boundaries. Final exact-commit independent review, hosted CI and archive qualification are pending.