Release Info
| Item | Value |
|---|---|
| Framework | Pydantic AI |
| Version | v2.75.0 |
| Previous version | v2.74.0 |
| Release date | 2026-11-25 |
| Release Notes | v2.75.0 |
| GitHub | pydantic/pydantic-ai |
| Stars | 21.3k |
Why this release matters
There are no new harness primitives this time; the whole release is about which text gets to become the model's instructions. RepoContext, Skills and Memory all read files from the workspace — a repo's docs, a skill's scripts, a memory snapshot — and until now, as long as a file's authority was below 'operator', its content still got mixed into the system prompt. That effectively let anyone who could write to those files (collaborators, documents synced in from external sources) indirectly give the model instructions. This release closes that path: content below 'operator' no longer reaches the system prompt. Instead, the model reads it itself through file tools or gets it as ordinary data, and Skills now exposes capabilities through list_skills/load_skill tools rather than inlining them into capability instructions. A separate PR extends the same boundary to MCP: a capability's with_authority now covers get_instructions() and the instructions an MCP server sends itself, so a lowered capability's instructions — including one from a connected MCP server — get wrapped as data on the user channel instead of being written straight into the system prompt. The two PRs shipped separately, but they fix the same problem: the line between "instruction" and "data" had worn thin on both the workspace-file path and the MCP-integration path, and this release tightens it on both. On the reliability side, there's also a fix worth noting: ModelEmptyResponseError and ModelInvalidResponseError turn an empty or malformed response into an error type FallbackModel can actually catch, instead of raising a bare AssertionError or IndexError that kills the whole run.
Simplified; shows only the two affected paths. Content at operator authority is unaffected.
Key changes
- Workspace-file authority boundary (
RepoContext/Skills/Memory): content from files below'operator'authority no longer gets mixed into the system prompt —RepoContextnow has the model read it itself through file tools,Skillsexposes capabilities vialist_skills/load_skilltools, andMemoryattributes a snapshot to itsMEMORY.md→ files a collaborator or external source can write to don't automatically become valid instructions for the model - Capability instruction authority extended to MCP (
with_authority):get_instructions()and instructions an MCP server sends itself are now both governed bywith_authority; a lowered capability's instructions — including a connected MCP server's — become framed data on the user channel instead of going straight into the system prompt → a connected external MCP server's instructions no longer automatically get the same trust level as operator instructions ModelEmptyResponseError/ModelInvalidResponseError: an empty or malformed response (e.g. Mistral/OpenAI returning emptychoices) is now a recognizable error type, andFallbackModel/ModelFallback's defaultfallback_oncatches it and switches models → previously this raised a bareAssertionError/IndexErrorand killed the whole run; now there's at least a chance to keep going on another modelRunContext.submit_output(): lets a tool call submit the run's final output directly → no need for an extra model turn just to get a structured resultAnnounceWorkingDirectory:Shell/FileSystemstate the current working directory once up front → saves repeating it in every turn's prompt- Pax
/trustand token-based/permissions: Pax (the coding-agent TUI) adds a folder-trust prompt, and theapproval_askhandler now takes a resume token → custom approval handlers on durable engines other than Lambda (Temporal, DBOS) need to match the new signature
Breaking Changes
- Content from files below
'operator'authority, read byRepoContext/Skills/Memory, no longer appears in the system prompt:- Affected: projects that relied on these capabilities to automatically fold workspace document content into the prompt; projects using
RepoContext(autoload_instructions=False)with nested instruction files will miss a prompt cache hit once on the first request after upgrading
- Affected: projects that relied on these capabilities to automatically fold workspace document content into the prompt; projects using
- A lowered capability's instructions — including from an MCP server — now become framed data on the user channel instead of entering the system prompt:
- Affected: projects that use
with_authorityto lower a capability, especially a connected MCP server; in-flight runs crossing the upgrade on Temporal/DBOS may hit a nondeterminism error if another MCP server follows the lowered one
- Affected: projects that use
ModelEmptyResponseError/ModelInvalidResponseErrorare both subclasses ofModelAPIErrorand also ofUnexpectedModelBehavior:- Affected: code that already does
except UnexpectedModelBehaviorneeds no change, but if it has anexcept ModelAPIErrorplaced before that, the new errors get caught there first
- Affected: code that already does
- Pax's
/permissionsapproval_handlernow takes a resume token:- Affected: projects with a custom approval handler on a durable engine other than AWS Lambda; without matching the new signature it raises
UserErrorat runtime
- Affected: projects with a custom approval handler on a durable engine other than AWS Lambda; without matching the new signature it raises
Migration Guide
Upgrading from 2.74.x to 2.75.0
pip install --upgrade pydantic-ai==2.75.0
# Old: FallbackModel's default fallback_on didn't catch empty/malformed responses
# (these raised AssertionError or IndexError directly, killing the whole run)
# New: the default fallback_on already catches ModelEmptyResponseError / ModelInvalidResponseError.
# To keep the old "fail outright, don't fall back" behavior, narrow fallback_on yourself:
from pydantic_ai.models import ModelAPIError, UnexpectedModelBehavior
model = FallbackModel(
primary_model,
backup_model,
fallback_on=lambda e: isinstance(e, ModelAPIError) and not isinstance(e, UnexpectedModelBehavior),
)
# To keep the old "instruction-level" behavior for a low-authority capability
# (e.g. a connected MCP server), leave it at the default 'operator' rather than lowering it:
from pydantic_ai.mcp import MCP
# To tighten the trust boundary instead:
mcp_server = MCP(..., authority="lower-than-operator-value")
Everything else — RunContext.submit_output(), AnnounceWorkingDirectory — is purely additive and doesn't affect existing code unless you opt in.
Compared to other frameworks
Coincidentally, Mastra @mastra/core@1.86.0 shipped the same day (11/25) tightening a similar kind of boundary: Mastra now requires that when a host calls Knowledge tools outside an agent run, the identity (principals) must come from the host's own code — never from the request — specifically for MCP and external-agent scenarios. The two frameworks are working at different layers — Pydantic AI governs "does this text count as an instruction," Mastra governs "whose identity does this call run as" — but they share the same underlying concern: an externally triggered action shouldn't get to claim elevated trust just by asserting it. Compared to CrewAI and LangGraph, which this week are still mostly stacking features, these two frameworks both reinforced "authority boundaries" on the same day, which suggests that as MCP and external integrations grow, "whose word counts" has become something frameworks have to handle directly, not something users can be left to watch for on their own.
Today's takeaway
I used to think workspace-file authority below 'operator' was mainly about controlling whether the model could write to a file. Seeing this release extend it to whether a file's content can become an instruction made something click: read permission and instruction permission are actually two different things. Even a file the model can only read, never modify, still effectively lets that file's author issue instructions to the model the moment its text lands in the system prompt. This release is the first time Pydantic AI has treated "readable" and "able to instruct" as two separate layers — and that's exactly the gap it fills.
References
- Pydantic AI v2.75.0 Release Notes
- Full Changelog: v2.74.0...v2.75.0
- pydantic/pydantic-ai on GitHub
- PR #11837: workspace-file authority boundary (RepoContext/Skills/Memory)
- PR #14457: capability instruction authority extended to MCP (with_authority)
- PR #12108: ModelEmptyResponseError/ModelInvalidResponseError
- PR #11348: RunContext.submit_output()
- PR #14427: AnnounceWorkingDirectory
- PR #13195: token-based approval handler for Pax /permissions
- Mastra @mastra/core@1.86.0 Release Notes
- Framework Update: Pydantic AI v2.71.0 (last major primitive batch)