Vibeleaderboard
← All Intel
Intel / repo

pydantic-ai v2.75.0 — v2.75.0 (2026-11-25)

Source
github.com
Publisher
Pydantic
Author
dsfaccini
Date

Context

Pydantic AI 2.75.0 stops letting text from untrusted files in an agent's workspace reach the model as instructions. Pydantic AI is a Python framework for building AI agents from the team behind Pydantic. Instructions are the system-prompt text a model treats as coming from the application itself, and several of the framework's components fill them from files on disk: RepoContext loads files such as and CLAUDE.md from a repository (earlier change), Skills loads reusable skill files, and Memory loads a MEMORY.md snapshot. The pull request behind the change names the problem: a line planted in a cloned repository's AGENTS.md or SKILL.md was followed as if the application had written it.

The fix relies on authority levels, a setting that records how much the application trusts a workspace or a particular path in it. The default, `'operator'`, gives a file the same trust as the application, and the pull request's example of a less trusted source is a cloned repository marked `authority='none'`. According to the release notes, text from a file below `'operator'` now arrives as data rather than as instructions. RepoContext names the working directory's file and lets the model read it with its file tools, so the text comes back as tool output, and sends a parent directory's file as framed data. Skills offers such skills through `list_skills` and `load_skill` tools, and Memory attributes the snapshot to its MEMORY.md file instead of presenting it as the agent's own notes. A second change applies the same rule to capabilities lowered with `with_authority()`, including servers, the external tool servers whose own instructions now go to the model as framed data in the user's turn instead of in the system prompt.

Nothing changes for files and capabilities left at `'operator'`, so the protection only covers what a developer has marked as less trusted. The model still reads the untrusted text, and neither the notes nor the pull request claim it can no longer be misled by it; the change removes the text's claim to speak for the application. Upgrading also has a cost for , where engines such as Temporal and DBOS record a run's steps so it can be replayed after a restart. Runs now record extra workspace path checks at start, so the notes advise letting in-flight runs finish or versioning the deployment first, and in-flight runs that lowered an MCP capability may hit a nondeterminism error on Temporal or DBOS when another MCP server follows it.

Key takeaways · AI-distilled
  • Workspace files below 'operator' authority no longer enter the instructions: RepoContext points the model at the file, Skills offers them through tools, and capabilities lowered with with_authority, MCP server instructions included, arrive as framed user-channel data.
  • FallbackModel and ModelFallback now fall back on empty streams and unreadable or schema-mismatched OpenAI Chat responses, raised as ModelEmptyResponseError and ModelInvalidResponseError. An except ModelAPIError placed before except UnexpectedModelBehavior now catches them.
  • Gemini thinking tokens sent through OpenAIChatModel now count as output, so reported output tokens and cost rise on thinking models and UsageLimits token caps trip sooner. The notes advise reviewing limits tuned against the old counts.
  • thinking=False on gemini-2.5-flash through the Gemini API now sends thinking_budget=128 instead of 0, because after the model's reroute to gemini-3.5-flash-lite on 2026-12-01 a budget of 0 fails with a 400. Vertex AI keeps 0.
  • Durable runs need care: the release adds realpath workspace calls at run start, so the notes say to let in-flight runs finish, or use Temporal worker versioning or a new DBOS app version, before upgrading.
Terms in this piece · Glossary
  • Repository instructions — Versioned guidance that tells agents how a repository is structured and verified.
  • Model Context Protocol (MCP) — A published agreement for an AI application to discover what a separate program offers and ask it to run one of those offerings.
  • Durable agent execution — Persisting agent state so long-running work can resume after interruption.
  • prompt caching — Reusing the model's processed form of a repeated prompt prefix so subsequent calls skip re-reading it, cutting cost and latency substantially.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from dsfaccini
Recommended reads