Skip to content Skip to footer

What PydanticAI’s Latest Release Means for Reliable Production Agents

What Happened

PydanticAI v2.77.0 expands conversation storage to SQLite, Postgres and MongoDB, and adds hooks, events and receipts for history compaction. It also changes agent behavior: Memory and Planning context now precede the user prompt, fallback requests count toward usage limits, and streams can finish with an incomplete state. Durable runs using agent folders require an upgrade plan for runs already in progress. [1]

The release also tightens boundaries around skills, subagents, model requests, search and MCP server lifecycles. Missing skill directories are skipped by default; subagents ignore disk definitions below operator authority; unsupported image output is rejected before an OpenAI request is sent; and conversation search defaults to the newest 2,000 in-scope messages. [1]

Why It Matters to Businesses

These changes illustrate a broader production-agent requirement: a framework must manage persistent state, authority, provider constraints, resource limits and recovery—not just connect a model to tools. An agent that answers correctly in a demo can still fail operationally if a retry exceeds its budget, a stream stops without a complete result, or a deployment changes the state expected by an in-flight run.

The notes document a PydanticAI release, not new releases across LangChain, LangGraph, LlamaIndex, AutoGen, CrewAI, DSPy, Semantic Kernel, the OpenAI Agents SDK or Claude Code. For teams comparing those tools, the useful takeaway is a set of capabilities to test against their own workloads, rather than an inferred ranking.

Kimbodo Engineering Perspective

We would treat framework choice as a lifecycle decision. Persistent conversations need explicit schemas, migration procedures and retention rules. Compaction should produce an auditable record of what was removed or retained. Tool and subagent permissions should be resolved before execution, not inferred from where a definition happens to reside.

Defaults deserve particular scrutiny. Skipping an unreadable skill path may improve availability but conceal a deployment error; rejecting the run may be safer for a regulated workflow. Likewise, a fixed recent-message search window bounds cost but can miss older facts. The right behavior depends on whether the application prioritizes continuity, completeness or strict configuration control. [1]

How We Would Implement It

  • Choose a conversation backend by operating model: SQLite for a single-instance deployment, or a managed shared database when multiple workers need the same state. Version the conversation schema and test migrations against active runs. [1]
  • Separate durable workflow state from conversation history. Record run identifiers, tool results, compaction receipts and completion status so an interrupted run can be inspected and resumed without silently duplicating actions.
  • Define an authority policy for skills, subagents and tools. Validate required directories at startup when absence is a fault; allow optional directories to be skipped only by explicit policy. [1]
  • Set request and cost budgets that include fallbacks. Treat an incomplete stream as a distinct outcome requiring retry, recovery or user notification—not as a successful answer. [1]
  • Run compatibility tests for provider features, MCP shutdown and deployment upgrades. Check unsupported model requests before dispatch, and test shared concurrency limits under load. [1]

Risks, Costs and Security

Persistent stores increase backup, encryption, access-control and deletion obligations. History search and compaction introduce quality risks if relevant evidence falls outside the search window or is removed from context. Provider-specific restrictions and dependency minimums can also turn an otherwise routine upgrade into a runtime failure. [1]

Budget for migration tests, observability and failure recovery alongside model usage. In particular, test in-flight durable runs before upgrading, monitor incomplete streams and fallback consumption, and verify that MCP processes terminate when their owning agent or toolset goes out of scope. [1]

Where Kimbodo Comes In

Kimbodo builds and operates this in production for businesses — see our Enterprise AI Agent Development practice, or Scope an Enterprise AI Agent.

Sources

  1. [1] v2.77.0 (2026-11-27)

Leave a comment

0.0/5

Engineering Founded & Customer Focused

KIMBODO LLC. © 2026. All Rights Reserved.