When to use child runs
Use child runs when the unit of work is large enough to deserve its own workflow run:- Parallel workstreams - launch implementation, review, migration, or validation runs at the same time.
- Specialized workflows - delegate to purpose-built workflows for different repos, services, or review types.
- Long-running work - let the parent keep coordinating while children run independently.
- Manager patterns - build a parent workflow that creates workers, watches progress, gathers results, and decides what happens next.
- Variants and attempts - run multiple approaches as separate durable runs with separate outputs.
Enable run tools
Workflow agents can create and manage runs when the parent run opts in to Fabro’s run-management tool catalog:run.toml
When a workflow agent calls
fabro_run_create, Fabro always parents the created runs to the current run. If the agent supplies parent_id, it must match the current run ID.Create child runs
Acquire workflow files with the agent’s shell/read tools, then callfabro_workflow_version_create with their contents:
workflow_version_id in fabro_run_create:
args. When the version already exists, skip registration. Read goal files with
the agent’s read tool and pass literal goal text. Workflow names, paths, inline
source objects, and goal_file are no longer run-create inputs.
This flow works in Local, Docker, and Daytona environments. The agent can clone a
remote workflow in its sandbox and submit the resulting contents. Fabro’s native
tool handler executes outside the sandbox, so registration treats file-map keys
as virtual relative paths and never reads sandbox paths from the worker host.
Include the workflow’s referenced configuration, prompts, and child workflows in
the supplied tree. See MCP for package limits.
Workflow content and workspace target are independent. If target is omitted,
a native child inherits the parent’s canonical target: none or folder as-is,
and a Git target’s repository and current execution branch (normally
fabro/run/<parent-id>). Push parent changes before creating the child; a child
clone sees that branch’s remote HEAD. The parent’s original pinned SHA/tag is
not inherited. If run branches are disabled, the original input branch is used;
if an enabled execution branch is unavailable, send an explicit target.
An explicit Git, none, or folder target overrides inheritance while the current
run remains the forced parent. Set sha on an explicit Git target to pin a child.
Server admission enforces folder access: Docker/Daytona parents cannot select a
server-host folder, including by requesting a Local child environment.
Standalone MCP always requires an explicit target, even with parent_id.
Use environment_id to choose a server environment; omission uses the server
default, not the parent’s environment. Run overrides belong in canonical args:
inputs, labels, model, provider, auto_approve, dry_run, and
preserve_sandbox. Omission preserves workflow/server defaults; explicit false
is not omitted. The tool does not apply caller, project, or machine run settings.
Keep workflow-owned configuration in the registered workflow.toml.
Creation and start remain separate operations. Set start: false to leave a
child submitted. A batch stops on its first failure; if any runs have already
been created, their IDs appear in the error so the parent can inspect them
instead of recreating them blindly.
Start and approval
Child run creation and child run execution are separate steps:- Create -
fabro_run_createcreates a durable run record with the current run as parent. - Start request - if
startis true, Fabro requests execution for the child. - Approval if required - parent-generated child runs may enter
pendingwithapproval_required. - Schedule - after approval, the child becomes
runnableand the scheduler starts it when capacity is available. - Execute - the child runs its own workflow and writes its own events, checkpoints, artifacts, and outputs.
Supervise children
A parent run can keep track of the children it creates. List direct children:Web UI
Run detail pages include a Children tab. It lists runs whoseparent_id is the current run, shows a count badge on the tab, supports refresh, filtering, sorting, and archived-run visibility, and uses the same run list layout as the main runs page.
Use this tab when you want to see the work a manager run delegated, jump into a child run, inspect child output, or verify that a child has finished.
CLI and API
You can also create and organize child runs outside a workflow agent. Create a run under an existing parent:Relationship rules
Parent-child links are orchestration metadata:- A run can have one parent and any number of direct children.
- Creating or linking a child requires the parent run to exist.
- Self-parenting and cycles are rejected.
- Parent links can be changed for active, terminal, and archived runs.
- A child can keep its historical parent reference even if the parent run is later removed.
- Parent-child links are not fork or rewind lineage. Fork and rewind use separate source fields.