September 23, 2026
Mastra introduces first-class classifiers for workflow routing and policy enforcement, native background tool execution via adopt(), expanded SaaS integrations, and improved Inngest durable runs.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Mastra has updated its core framework with first-class classifier primitives manageable via new Mastra({ classifiers }) with trace integration, usable directly as typed workflow steps for branching. A new ClassifierProcessor enforces input/output/streaming policies and fails closed by default (with an opt-in warn strategy). Tools now support background execution via context.background.adopt({ completion, cancel }) , enabling immediate acknowledgments while in-memory promises handle completion and cancellation. Additionally, @mastra/connect@0.3.0 adds ten generated SaaS tool providers, Inngest durable runs gain configurable retries and snapshot resume fixes, and trace grouping via queryTraces() is deprecated in favor of queryThreads / queryTraceThreads() . Breaking UI changes occurred in @mastra/playground-ui regarding layout and styling APIs.
可执行摘要
Mastra release adds classifiers primitive to core and workflows, ClassifierProcessor for policy checks failing closed by default, context.background.adopt() for non-blocking tool execution, and deprecates trace grouping in favor of thread queries.
- Agent 实用度
- 82/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Migrate trace grouping calls from queryTraces() using group to queryThreads() or queryTraceThreads() .
- Update @mastra/playground-ui imports to remove @mastra/playground-ui/lib/springs and adapt to the reworked PageLayout and FluidHoverHighlight APIs.
- Verify policy pipelines using ClassifierProcessor , noting that failures now fail closed by default unless configured with errorStrategy: 'warn' .