Durable, Resumable Step-by-Step Workflows with Parallel Agent Steps #390
Replies: 1 comment
|
The step boundary should persist definition identity, attempt history, and accepted output separately. A few semantics that prevent painful recovery ambiguity:
Checkpoint the workflow definition digest, effective agent/tool capabilities, source revision, input artifact IDs, and output artifact digests. Resume should fail closed if the executable workflow definition changed incompatibly; offer an explicit migration/new-run path instead of guessing. I’d also route live execution and restart replay through the same state-transition function. A useful invariant is that the same recorded events yield the same durable workflow state whether processed live, with no UI connected, or after a restart. I maintain Better Agent (https://github.com/ofekron/better-agent), a local workspace supervising persistent Claude, Codex, and Gemini sessions with delegated work, approvals, and restart recovery. Those operational boundaries are the basis for this feedback. It is source-available and free for non-commercial use; commercial use requires separate permission. AI-assistance disclosure: this comment was drafted by Codex under the maintainer’s authorization and reviewed in Better Agent. |
Uh oh!
There was an error while loading. Please reload this page.
RFC
Summary
Add first-class support for durable, resumable, step-by-step workflows in Flue, where each workflow step can be either programmatic TypeScript logic or agentic work, and completed steps are checkpointed so interrupted or human-blocked runs can resume from the appropriate point.
Background & Motivation
Flue already supports agents, workflows, durable execution, and subagents, but workflows today appear to be finite function invocations rather than resumable step orchestrations. The current model is useful for simple background jobs, but it is harder to model longer-running business processes that need explicit sequencing, fan-out/fan-in parallelism, human review, and selective retry.
Frameworks like LangGraph and Mastra show the value of workflows as durable execution graphs: each step has a clear boundary, persisted state, inspectable output, and resume behavior. Flue would benefit from a similar primitive that still fits its existing TypeScript-first, agent-harness model.
A common user problem is: “I want to run a multi-step AI workflow where some steps are deterministic code, some steps call agents, some steps fan out to multiple specialist subagents, and the workflow can pause for human input or recover from failure without starting from the beginning.”
For example, a review workflow might:
Goals
All reactions