Fix PydanticAI 2.36 literal instructions and prepare 0.5.9 - #101
Merged
WaseemGhanem98 merged 1 commit intoSep 8, 2026
Merged
Conversation
WaseemGhanem98
deleted the
fix/pydantic-ai-236-static-instructions-20260908
branch
September 8, 2026 16:00
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 2.36 wraps literal instructions in SDK-owned objects. AgentCheck previously omitted that text during inspection and refused preparation. This correction accepts only exact SDK wrappers containing literal strings and preserves the text/order in the rebuilt runtime agent; callbacks, templates, structured instruction parts and unknown wrappers remain refused.
The adapter gate, package ceiling and docs now cover 2.32–2.36. Focused offline validation covers 2.32.2, 2.35.3 and 2.36.0, including original-handler tripwires, gateway routing, fixtures, structured output, retries, concurrency and cumulative budgets. Discriminating mutations exercise ceiling-only, inspection-only, duck-typed and stringified alternatives. Ruff and required mypy pass.
Prepares 0.5.9 with generator compatibility unchanged at 4. The installed-artifact helper retains 22 generic controls and requires two additional PydanticAI-only controls for literal reconstruction/gateway routing and dynamic refusal. Publishing workflow, artifact transport, identity/hash checks and network guards are unchanged.
Frozen head: d30cb25
Base: 34e4df6
Independent exact-head semantic/security review, hosted CI and actual artifact qualification remain required. No provider calls, external target execution, baseline migration or new framework support.