Mastra 发布 Factory 沙箱契约与多项可观测性更新
原标题:October 14, 2026
AI 摘要
Mastra 发布更新,为 Factory 引入首个 FactorySandbox 沙箱提供方契约,并新增 Docker、E2B 和 Mastra Platform 三个实现,支持可调设置、仓库模板与预构建环境。同时新增环境预构建与多仓库会话能力,降低首次会话冷启动。多个存储适配器加入 run fencing 以提升分布式执行正确性,Observational Memory 增强并发与冲突处理,Spans 支持 trace 链接并打通 MCP 客户端与服务端追踪。此外包含若干破坏性变更,如工作流 HTTP 路由不再允许启动内部工作流。
正文节选
## Highlights ### Factory Sandbox Provider Contract + New Providers (Docker/E2B/Platform) Mastra Factory now has a first-class `FactorySandbox` contract for sandbox providers, enabling tunable settings schemas, repository templates, and prebuilt environment builds. New `*FactorySandbox` implementations ship for Docker (`@mastra/docker`), E2B (`@mastra/e2b`), and Mastra Platform (`@mastra/platform-workspace`) to plug in with a single provider instance. ### Factory Environment Builds + Mult