Fetching from the wire…
Public story · 2026-08-10 · high
The same release also cut sandbox latency from 400ms to 16ms and added per-turn memory that skips permanent storage.
Why now: Mastra dated the release Aug. 10.
Mastra's core package hit version 1.57.0 on Aug. 10 with a new hook, processToolResult, that inspects tool output before it reaches the model, per the release notes.
The hook runs after a tool executes and before its output enters message history. That's the exact point where prompt injection or a stray secret slips into an agent's context unfiltered. Developers can scan the payload, transform it, or abort the turn before the model ever sees it.
The same release adds transient: true, a flag for per-turn reminder context that skips permanent storage. An agent gets a nudge without it piling up in memory. Tool calls now get full JSON schemas attached to MODEL_GENERATION spans, useful for debugging what a tool actually returned. Sandbox execution latency dropped from about 400 milliseconds to roughly 16 milliseconds at the median, per the changelog.
The interception point is the part worth copying, not the feature list. Most agent code still treats tool output as trusted the moment it comes back; processToolResult flips that, it's untrusted by default now. Anything wiring an LLM agent to fetch web pages, read files, or hit third-party APIs needs a checkpoint before it reaches a prompt.
Each link below shares sources, entities, or timing with this story.
Mastra uses Firecracker / Shared entity: Mastra / Same source domain / Shared topic / Earlier coverage
Linked by a graph relationship (Mastra uses Firecracker); both cover Mastra; reported by the same outlet (github.com).
Mastra released Mastra Factory / Shared entity: Mastra / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (Mastra released Mastra Factory); both cover Mastra; overlapping topics (agent, design).
Mastra benchmarked against LongMemEval / Shared entity: Mastra / Same source domain / Earlier coverage / Tension
Linked by a graph relationship (Mastra benchmarked against LongMemEval); both cover Mastra; reported by the same outlet (github.com).
Shared entity: Same / Same source domain / Shared topic / Earlier coverage / Tension
Both cover Same; reported by the same outlet (github.com); overlapping topics (agent, context).
Mastra benchmarked against LongMemEval / Shared entity: JSON / Same source domain / Earlier coverage
Linked by a graph relationship (Mastra benchmarked against LongMemEval); both cover JSON; reported by the same outlet (github.com).
Mastra competes with LangChain / Same source domain / Shared topic
Linked by a graph relationship (Mastra competes with LangChain); reported by the same outlet (github.com); overlapping topics (agent, context, data, tool).
Mastra competes with LangChain / Shared entity: Same / Shared topic / Earlier coverage
Linked by a graph relationship (Mastra competes with LangChain); both cover Same; overlapping topics (agent, context).
Mastra competes with LangChain / Shared entity: JSON / Same source domain / Earlier coverage
Linked by a graph relationship (Mastra competes with LangChain); both cover JSON; reported by the same outlet (github.com).