Rebuno vs Mastra suspend and resume
Mastra suspends workflows and tool calls into snapshots in your storage. Rebuno records every model and tool call, recovers runs after crashes, and applies approvals from a shared policy.
Mastra can pause work in two places. A workflow step calls suspend() and its state is saved as a snapshot, and an agent tool with requireApproval waits until it is approved or declined. Rebuno records each model and tool call as a step and checks it against a policy before it runs.
The two work together. A Mastra agent connects to Rebuno through its model provider's fetch and its tools.
| Rebuno | Mastra | |
|---|---|---|
| What is saved | The request and result of every model and tool call | Workflow and approval snapshots in the configured storage |
| Resume point | The agent reruns, and recorded calls return their results | The suspended step or tool call |
| Unfinished calls | Rerun or reported as indeterminate, declared per tool | Not tracked |
| Which calls need approval | Agent policy in the kernel, matched on tool and arguments | requireApproval on tools, or an agent-level setting |
| Waiting for approval | The run blocks in the kernel and the agent stops | A snapshot is stored until the call is approved or declined |
| Frameworks | Mastra, LangChain, OpenAI Agents SDK, Vercel AI SDK, and others | Mastra |
Saving progress
Mastra's snapshots capture a workflow's state when it suspends, and they persist across restarts in storage such as libSQL or Postgres. Resuming passes data that matches the step's resume schema and continues from there.
Rebuno records every call as it happens, not only at suspend points. If the agent process stops, the kernel dispatches the run again, recorded calls return their results, and the rest run live. A tool marked at_most_once that was in flight is reported as indeterminate instead of running twice.
Approvals
Mastra's tool approval is configured in agent code. The stream emits an approval request, and your application calls approveToolCall() or declineToolCall().
In Rebuno, approvals come from the agent's policy, stored in the kernel. Rules can match a call's arguments, so a shell tool can allow git status, deny rm -rf, and hold everything else for approval. A held call blocks the run until someone decides through the API, CLI, or dashboard, and the decision is recorded with the run.
Choosing between them
Mastra's suspend and resume fits workflows with planned pause points, and approvals for a single agent you manage yourself.
Rebuno fits when runs need to survive crashes at any call, when some tools must not run twice, or when approval rules should be shared across agents and changed without a redeploy.