Explore Rundown

Interactive examples demonstrating Rundown's runbook patterns. Click any pattern to try it live in your browser.

composition

context-passing

delegation

delegate-abort

Token cancellation pattern for delegation abort

delegation

delegate-basic

Basic delegation pattern — substep delegated to child runbook

delegation

delegate-claim-corruption

Claim replay fails closed when persisted child state is missing or relinked

delegation claim-id

delegate-claim-explicit-close

Explicit --claim-id write commands target claimed children

delegation claim-id

delegate-claim-parent-terminal

Claimed-child writes fail once the parent runbook is terminal

delegation claim-id

delegate-claim-stash-pop-resume

Claimed children can be stashed, popped, and resumed by claim id

delegation claim-id

delegate-failure

Child failure propagates STOP to parent

delegation

delegate-for-loop

FOR loop with delegation — each iteration delegates to a child runbook

delegation for-loops

delegate-hierarchy

Sequential multi-delegation with two substeps

delegation

delegate-keyword-auto-issue

rd run on a DELEGATE step auto-issues delegation tokens without rd delegate

delegation delegate-keyword

delegate-keyword-collect-fail

DELEGATE workflow — one substep fails, aggregation fires STOP

delegation delegate-keyword

delegate-keyword-collect-pass

Full DELEGATE workflow — auto-issue, claim all, auto-aggregation fires COMPLETE

delegation delegate-keyword

delegate-keyword-for-loop

DELEGATE on a FOR loop step — each iteration auto-issues delegation tokens

delegation delegate-keyword for-loops

delegate-keyword-h2-propagation

H2-level DELEGATE propagates to all H3 substeps

delegation delegate-keyword

delegate-keyword-h2-propagation-fail

H2-level DELEGATE propagates to all H3 substeps; one substep fails, aggregation fires STOP

delegation delegate-keyword

delegate-keyword-h3-explicit

Per-H3 DELEGATE annotation marks only the annotated substeps

delegation delegate-keyword

delegate-keyword-mixed-substeps

Step with mixed DELEGATE and non-DELEGATE substeps

delegation delegate-keyword

delegate-keyword-retry-exhausts

DELEGATE + FAIL ANY RETRY — substep fails both attempts, retry exhausts, parent stops

delegation delegate-keyword retry

delegate-keyword-retry-recovers

DELEGATE + FAIL ANY RETRY — failed substep passes on retry, parent completes

delegation delegate-keyword retry

delegate-keyword-runbook-shorthand

Per-entry DELEGATE annotation on runbook list entries (shorthand form)

delegation delegate-keyword

delegate-named-step

Named step with delegation — verifies delegation works with named step identifiers

delegation named-steps

delegate-nested

Single-level delegation where child composes grandchild inline

delegation

delegate-nested-child

Child runbook that composes a grandchild inline

delegation

delegate-nested-grandchild

Grandchild runbook that auto-completes as delegation leaf

delegation

delegate-prompted-for

FOR loop with unresolved bounds demotes to prompted-for, delegation completes child

delegation for-loops prompted-for

delegate-substep-list

Delegation from H3 substeps defined as pure runbook list bodies (no prose)

delegation

delegate-with-vars

Delegation with variables passed to child runbook

delegation

delegate-with-vars-child

Child runbook that echoes variables passed via delegation

delegation

delegation-child-fail

Child runbook that auto-fails (delegation target)

delegation

delegation-child-fail-once

Stateful delegation target that fails on first claim and passes on retry

delegation

delegation-child-manual-three-step

Manual three-step child runbook for claim-id targeting scenarios

delegation

delegation-child-pass

Simple child runbook that auto-completes (delegation target)

delegation

nested-runbook-defer-propagation

3-level DEFER propagation — root aggregates child aggregates grandchild

delegation defer

nested-runbook-defer-propagation-child

Child with two DEFER substeps under PASS ALL; 1.1 composes grandchild inline, 1.2 runs locally

delegation defer

nested-runbook-defer-propagation-grandchild

Grandchild with two DEFER substeps under PASS ALL — aggregates to COMPLETE

delegation defer

examples

for-loops

for-array-source

FOR loop iterating over a YAML array data source

for-loops

for-basic-substep

FOR-annotated step with basic substeps

for-loops

for-break-on-fail

FAIL BREAK exits the loop early when a substep fails.

for-loops

for-break-on-pass

PASS BREAK exits the loop early when a substep passes.

for-loops

for-default-transitions

FOR loop substeps with default transitions

for-loops

for-defer-shorthand

DEFER shorthand at FOR iteration level

for-loops

for-descending

FOR loop with descending range iterates from high to low

for-loops

for-explicit-defer

Explicit DEFER at FOR iteration level accumulates results for parent aggregation

for-loops

for-file-source

FOR loop iterating over a file data source

for-loops

for-implicit-start

FOR loop with implicit start iterates 1 to N

for-loops

for-iter-fail-break

Iteration-level FAIL BREAK exits loop without accumulating result.

for-loops

for-iter-fail-continue

Iteration-level FAIL CONTINUE exits loop without accumulating result.

for-loops

for-iter-pass-break

Iteration-level PASS BREAK exits loop (non-accumulating).

for-loops

for-iter-pass-continue

Iteration-level PASS CONTINUE exits loop without accumulating result.

for-loops

for-iteration-retry

RETRY as an iteration-level transition within a FOR loop

for-loops

for-iteration-transitions

Iteration-level transitions nested under FOR clause

for-loops

for-jsonl-source

FOR loop iterating over JSONL data source with dotted field access

for-loops

for-nested-transitions

Iteration results aggregate via PASS ALL and FAIL ANY

for-loops

for-next-action

NEXT action skips to the next FOR loop iteration

for-loops

for-next-at-iteration

NEXT at FOR iteration level skips accumulation and advances

for-loops

for-next-iteration

FOR loop iteration advancement in prompted mode.

for-loops

for-prompted-fallback

FOR loop falls back to prompted-for when bounds are unresolved

for-loops

for-range-to

FOR loop using 1 TO 5 range syntax with five iterations.

for-loops

for-retry-defer-exhaustion

Iteration RETRY exhaustion DEFERs a FAIL into parent FAIL ANY STOP

for-loops retry defer

for-retry-in-iteration

RETRY within a FOR loop iteration

for-loops

for-retry-loop-exhaust

RETRY exhaust with FOR-specific actions NEXT and BREAK

for-loops

for-substep-all-continue

All substeps use CONTINUE producing vacuous pass with no deferred results

for-loops

for-substep-asymmetric

Substep with PASS CONTINUE and FAIL DEFER - asymmetric transition routing

for-loops

for-substep-continue-defer

CONTINUE substep followed by DEFER substep within FOR iteration

for-loops

for-substep-defer-continue

DEFER substep followed by CONTINUE substep within FOR iteration

for-loops

for-substep-three-mixed

Three substeps mixing DEFER and CONTINUE in various positions

for-loops

for-unnamed

Unnamed FOR loop without a loop variable

for-loops

for-variable-bounds

FOR loop with template-expanded bounds

for-loops

for-variable-expansion

FOR loop variable expansion in step descriptions and commands.

for-loops

for-variable-source

FOR loop iterating over a variable data source.

for-loops

for-windowed-source

FOR loop with windowed data source slice

for-loops

goto

named-steps

other

prompts

retries

stash-pop

substeps

test

transitions

action-messages

Demonstrates STOP and COMPLETE with message parameters

transitions

all-modifier

PASS ALL aggregate modifier (pessimistic strategy)

transitions

any-modifier

PASS ANY aggregate modifier (optimistic strategy)

transitions

code-block-variants

Code block info strings sh and shell execute while json is display-only

transitions

code-blocks

Demonstrates various code block patterns in runbooks

transitions

default-implicit

Implicit default transitions (PASS CONTINUE, FAIL STOP)

transitions

defer-lastaction-overwrite

Aggregated terminal transition overwrites the last DEFER lastAction with COMPLETE + aggregated

transitions defer aggregation

extended-assertions

Scenario step assertions verify transition events

transitions

fail-all-standalone

FAIL ALL STOP fires only when every substep fails

transitions

fail-any

FAIL ANY stops when any substep fails (after all complete)

transitions

fail-complete

FAIL COMPLETE finishes the runbook on failure

transitions

fail-continue

FAIL CONTINUE proceeds to the next step on failure

transitions

fail-stop

FAIL STOP halts the runbook on failure

transitions

metadata-full

All frontmatter metadata fields are supported

transitions

metadata-header

Runbook with H1 title and description text

transitions

mixed-modifiers

Demonstrates complex transition conditions with ALL/ANY modifiers

transitions

pass-any

PASS ANY completes when any substep passes (after all complete)

transitions

pass-complete

PASS COMPLETE finishes the runbook on success

transitions

pass-continue

PASS CONTINUE advances to the next step (sequential flow)

transitions

pass-stop

PASS STOP halts the runbook on success

transitions

separator-syntax

Step number separator variants are all valid syntax

transitions

substep-transitions

Substep-level transitions with GOTO and retries

transitions substeps

variables