Skip to content

Fix PydanticAI 2.36 literal instructions and prepare 0.5.9 - #101

Merged
WaseemGhanem98 merged 1 commit into
mainfrom
fix/pydantic-ai-236-static-instructions-20260908
Sep 8, 2026
Merged

WaseemGhanem98 merged 1 commit into
mainfrom
fix/pydantic-ai-236-static-instructions-20260908

Conversation

@WaseemGhanem98

Copy link
Copy Markdown
Owner

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.

@WaseemGhanem98
WaseemGhanem98 merged commit 853cb17 into main Sep 8, 2026
7 checks passed
@WaseemGhanem98
WaseemGhanem98 deleted the fix/pydantic-ai-236-static-instructions-20260908 branch September 8, 2026 16:00
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.

1 participant