← Back to Explore

defer-mixed-delegation-local

One step with a delegated substep and a local bash substep — both DEFER into shared aggregation

substeps delegation defer

Rundown


# Mixed Delegation + Local DEFER

One step, two substeps. 1.1 is delegated to a child runbook; 1.2 executes
locally. Both default to DEFER under `PASS ALL COMPLETE`. Parent aggregation
must treat the two substep kinds identically.

## 1. Mixed work

- PASS ALL COMPLETE
- FAIL ANY STOP

### 1.1 Delegated task

Delegated to a child runbook.

- delegation-child-pass.runbook.md

### 1.2 Local task

```bash
rd echo "local work"
```

Run

Delegated substep passes via claim; local substep passes via bash exit 0; aggregated COMPLETE fires

Initializing...

Initializing...

Step/1