Mastra 1.56.0 makes workflows persistable data: JSON graphs, rehydration, and a storage-safe predicate DSL for conditionals and loops
Released 2026-08-06, @mastra/[redacted] adds declarative step entry types (agent, tool, mapping, composite) with toStorableGraph() and rehydrateWorkflow(), so UI- or LLM-authored workflow graphs survive restarts while keeping schema-typed chaining. Stored workflows become manageable over HTTP (POST/GET/DELETE /stored/workflows), gain a StoredWorkflow resource in @mastra/client-js, and persist through a new workflowDefinitions storage domain implemented across major DB adapters. A structural predicate DSL replaces closure-only predicates so branches and loops can be serialized, and nested workflows become a first-class step type with reference resolution and cycle detection. Breaking: @mastra/[redacted] drops MASTRA_PLATFORM_SECRET_KEY auth.
↳ Follow the thread