cyberneticlibrary

Compose nested workflows

nested-workflowworkflowsetup L22
unfallenwill/batonjs
What it does

Invoke child workflows from parent workflow with shared concurrency and budget

Best for

Decomposing large orchestrations into reusable sub-workflows without duplicate concurrency budgets.

Inputs
  • · topic (per sub-workflow)
Outputs
  • · {topic, summary}
  • · merged comparison
Requires
  • · workflow() runtime
Preconditions

Child workflows defined; parent depth=1 only (no recursion)

Failure modes
  • · Nesting beyond one level throws error
Trust signals
  • · Child shares parent concurrency cap
  • · Child shares parent token budget
  • · Deterministic under resume