You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of the Orchestrator v2 rebuild — a tear-down/rebuild in a new self-contained orchestrator-v2/ folder (Vite+ / vp, vp test + vitest-gwt, no hooks, single RPC/WebSocket runner interface, engine adapters copied wholesale). Fulfills #31 (Workflow Agent). See also #29, #30.
Problem
There is no interface for defining a workflow; today every agent is implicitly "Do start, Do LLM, Do stop", which is inflexible and prevents dynamic scheduling of Task Agents (#31). Workflows need to be explicit, named sequences of tasks scheduled with dependencies, tracking their own state and retrying via a script task. This must stay separated from Bifrost — Bifrost is one of many task sources.
Proposed solution
New agent-4-workflow package (a Workflow Agent, built atop the task interface like agent-3-task):
A workflow is itself a script task. On run it: computes the ready set, creates draft child tasks, sets dependency edges, promotes ready children to live, persists its own WorkflowState, and returns paused so it is re-yielded as children complete (re-entrancy).
The scheduler is an orchestrator-side RPC service (tracks workflow state + ready-set); the Workflow Agent drives it via RPC.
Part of the Orchestrator v2 rebuild — a tear-down/rebuild in a new self-contained
orchestrator-v2/folder (Vite+ /vp,vp test+ vitest-gwt, no hooks, single RPC/WebSocket runner interface, engine adapters copied wholesale). Fulfills #31 (Workflow Agent). See also #29, #30.Problem
There is no interface for defining a workflow; today every agent is implicitly "Do start, Do LLM, Do stop", which is inflexible and prevents dynamic scheduling of Task Agents (#31). Workflows need to be explicit, named sequences of tasks scheduled with dependencies, tracking their own state and retrying via a script task. This must stay separated from Bifrost — Bifrost is one of many task sources.
Proposed solution
New
agent-4-workflowpackage (a Workflow Agent, built atop the task interface likeagent-3-task):WorkflowState, and returnspausedso it is re-yielded as children complete (re-entrancy).Alternatives considered
Area
Orchestrator v2 /
agent-4-workflow(fulfills #31)Acceptance criteria
maxAttempts: 3ultimately completes.Dependencies
[v2] Task source with dependencies + draft/live[v2] Thin orchestrator(scheduler RPC)[v2] Script task execution primitive[v2] Structured output package([v2] Structured output package: schemas, sentinel files, JSON/YAML validation #41) — validate child Task Agent outputs on the verify dispatch.Verification
vp test+ vitest-gwt: linear ordering, diamond DAG concurrency, retry policy, re-entrancy.