Release Info
| Item | Value |
|---|---|
| Framework | Mastra (@mastra/core) |
| Version | @mastra/core@1.86.0 |
| Previous version | @mastra/core@1.85.0 |
| Release date | 2026-11-25 |
| Release Notes | Release November 25, 2026 |
| GitHub | mastra-ai/mastra |
| Stars | 29.8k |
Why this release matters
This release extends crash recovery to a scenario outside agent conversations: dataset experiments. Until now, startExperimentAsync() was a plain async call — if the process got redeployed or crashed mid-run, the whole experiment got stuck at running with nobody to pick it up. v1.86.0 adds durable: true, which runs the experiment as a per-item evented workflow instead; paired with a pubsub that redelivers events, such as Redis Streams, another worker can pick up an item that got cut off and keep going, while each item still records exactly one result. That shows Mastra is treating "crash-safe" as cross-cutting infrastructure, not a special feature reserved for chat-style agents. Another addition worth a closer look is Knowledge: an experimental importer contract lets external sources sync into Knowledge safely using batching, leases and replay protection, instead of every integration hand-rolling its own sync logic against Knowledge's internal storage. The last one is worth pausing on: principals/author let a host call Knowledge tools outside an agent run — say, an MCP server acting on behalf of an external agent — but the identity can only come from the host's own code, never from the request, and every write records who made it. It's a clear "who gets to claim this identity" design: the caller doesn't get to say who it is; the party in control (the host) decides.
Simplified; shows only how principals get decided. A normal in-agent-run call is unaffected.
Key changes
- Durable, crash-safe dataset experiments:
startExperimentAsync()and the server/client trigger APIs gaindurable: true, running the experiment as a per-item evented workflow; after a worker crash or redeploy, another worker (paired with a redelivering pubsub like Redis Streams) can pick up an unacked item and continue → a long-running batch experiment no longer gets stuck entirely just because of one redeploy - Knowledge importer contract and runner infrastructure (experimental): a new
KnowledgeImportercontract andknowledge.importers.run(), backed by importer bookkeeping persisted in in-memory, LibSQL and Postgres stores (batching, leases, replay protection, settle/repair) → syncing external sources into Knowledge no longer requires hand-rolling your own duplicate- and interruption-safe sync logic - Native durable Agent execution engine selection:
durable.executionEngine(set at the agent level or viaMastra.durabledefaults) now takesdefaultorevented, leaving existing streaming/output APIs untouched; note the earlier prerelease valueexecutionEngine: 'durable'has been renamed to'default'→ choosing an execution engine no longer means switching to a whole different API, just flipping one setting - Channels-first chat integrations: Core adds
createChannelTools()for reading from and posting to the run's active chat thread across multiple channel adapters;@mastra/slackaddscreateSlackTools()(search, attachment download, user/channel lookup) under the same access scoping → wiring an agent into existing chat channels no longer means writing separate permission logic for each integration - Knowledge activity query + host-run calls (
principals/author): a newknowledge_activitytool lists what changed in Knowledge pages and notes over a date range, including who made each change, and can be narrowed withfromto a single page or scope;knowledge.createTools({ principals })lets a host call Knowledge tools outside an agent run, with the identity fixed by the host — never taken from the request — and writes recorded underauthor→ when an MCP server acts on Knowledge on behalf of an external agent, the identity boundary is enforced by the host, not left to the caller to declare interruptedthread run status: a durable agent run stopped mid-flight bymastra.shutdown()is no longer seen by subscribers asfailed; the result once recovery finishes picks up on the same subscription → interruptions from a rolling restart don't get mistaken for a genuine failure
Breaking Changes
Four, all narrow in scope:
get_process_outputno longer supportswait: true; usewaitSeconds(1–300) instead — the old flag is now ignored- Affected: code that calls
get_process_outputdirectly and relies onwait: true
- Affected: code that calls
@mastra/connect(prerelease-only): the old events exports (EventsClient,connectEvents(), etc.) are replaced by the newConnectEventsiterator API- Affected: projects that used only the prerelease version of
@mastra/connect
- Affected: projects that used only the prerelease version of
@mastra/mcp-apps-components: an MCP boundary field was renamed,projectId→project- Affected: MCP apps integrations that read or write this field directly
@mastra/playground-ui's trace components have major API changes (a slot-basedThreadTrace, aTracesExplorerthat takes data directly instead of fetching it itself, navigation callbacks replacing href/Link props)- Affected: projects that customized the playground trace UI directly
Migration Guide
Upgrading from 1.85.x to 1.86.0
npm install @mastra/core@1.86.0
// Old: get_process_output waits for completion with wait
await getProcessOutput(processId, { wait: true });
// New: use waitSeconds to cap how long to wait
await getProcessOutput(processId, { waitSeconds: 60 });
// Old (prerelease): executionEngine written directly as 'durable'
const agent = new Agent({
name: 'support-agent',
durable: { executionEngine: 'durable' },
});
// New: the prerelease 'durable' value has been renamed to 'default'
const agent = new Agent({
name: 'support-agent',
durable: { executionEngine: 'default' }, // or 'evented'
});
Everything else — knowledge_activity, createChannelTools(), the Knowledge importer — is purely additive and doesn't affect existing code unless you opt in; only projects that used the prerelease @mastra/connect events API or customized the playground trace UI need to make a change.
Compared to other frameworks
Pydantic AI v2.75.0 shipped the same day (11/25) tightening a similar kind of boundary, just at a different layer: Pydantic AI governs "does this text count as an instruction" (workspace files and MCP server instructions no longer automatically mix into the system prompt), while Mastra here governs "whose identity does this call run as" (a Knowledge tool's principals must come from the host, never the request). Both frameworks, without coordinating, reinforced "who gets to claim what authority" on the same day as MCP and external integrations keep growing — just one at the prompt layer, the other at the tool-call layer. On the durable-execution front, Mastra extended crash recovery from agent conversations to dataset experiments here, while Agno v3.2.0 last month tackled cross-replica recovery for the sandbox execution environment itself. Taken together, "execution state surviving crashes, restarts, and instance changes" is now infrastructure several mainstream frameworks are filling in at the same time, not a differentiator unique to any one of them.
Today's takeaway
I used to think "durable" was a guarantee that only mattered for agent conversations or other long-running tasks — a chat-style run already takes a while, so it's worth the effort to make it crash-recoverable. Seeing this release apply the same evented-workflow machinery to dataset experiments made something click: any work that runs for a while and might get interrupted by a redeploy has the same recovery need, whether or not it's an agent conversation. Making durable execution a capability you can attach to different kinds of tasks, rather than wiring it permanently into the agent execution engine, is what actually getting this right looks like.
References
- Mastra @mastra/core@1.86.0 Release Notes
- mastra-ai/mastra on GitHub
- @mastra/core CHANGELOG.md
- PR #31204: durable dataset experiments
- PR #31101: Knowledge importer contract and runner infrastructure
- PR #31200: knowledge_activity tool
- PR #30996: principals/author for Knowledge tools
- PR #31113: interrupted thread run status
- Pydantic AI v2.75.0 Release Notes (shipped the same day, also tightening authority boundaries)
- Framework Update: Mastra @mastra/core v1.83.0