Runbook Patterns
Interactive examples demonstrating Rundown's runbook patterns. Click any pattern to try it live in your browser.
features
action-messages
Demonstrates STOP and COMPLETE with message parameters
code-blocks
Demonstrates various code block patterns in runbooks
list-instructions
Demonstrates steps with list-formatted instructions
metadata-header
Runbook with H1 title and description text
composition
agent-binding-failure
Parent handles agent failure gracefully
agent-binding-simple
Parent runbook delegates step to agent with child runbook
agent-task-lint
Lint task for agent
agent-task-test
Test task for agent
child-task
Simple child runbook for sub-runbook patterns
multi-agent-dynamic
Multiple agents work on different runbooks with dynamic iteration
runbook-composition
Demonstrates composing multiple child workflows to verify lint, types, and tests all pass
substep-runbooks
Demonstrates runbook references within substeps
transition
complex-transitions
Demonstrates complex transition conditions with ALL/ANY modifiers
default-transitions
Tests implicit PASS to CONTINUE and FAIL to STOP when no transitions defined
dynamic-substep-transitions
Tests navigation transitions in dynamic substeps with GOTO NEXT and STOP conditions
substep-transitions
Tests discrete transitions and navigation at the substep level, including conditional branching with GOTO and error handling with retries.
transition-actions
Demonstrates explicit transition actions (STOP, CONTINUE, COMPLETE)
dynamic
dynamic-batch
Dynamic batch processing with {n} substep pattern for iteration
dynamic-step-dynamic-substeps
Demonstrates doubly-dynamic iteration with {N}.{n} pattern
dynamic-step-mixed-substeps
Demonstrates dynamic steps with both static and named substeps
dynamic-step-named-substep
Tests dynamic steps with custom-named substeps and GOTO navigation to named steps
dynamic-step-next
Tests GOTO NEXT navigation which advances to the next step in dynamic runbook
navigation
dynamic-navigation
Dynamic step navigation with conditional flow control and GOTO patterns
goto-current-dynamic-substep
Demonstrates GOTO X.{n} - jumping to the current instance of a dynamic substep
goto-dynamic-step-alone
Demonstrates infinite retry pattern where FAIL causes step to restart (GOTO {N}) and only PASS exits the runbook
goto-dynamic-substep
Demonstrates GOTO {N}.M - jumping within a dynamic step instance
goto-dynamic-substep-from-named
Demonstrates GOTO {N}.Name - jumping to a named substep within a dynamic step
goto-named
Demonstrates GOTO patterns involving named steps (Name->Name, Name->Static, Static->Name)
goto-next-qualified-step
Demonstrates explicitly advancing to the next step instance using GOTO NEXT syntax for step-level navigation
goto-next-qualified-substep
Demonstrates explicitly advancing to the next dynamic substep using GOTO NEXT X.{n} syntax for substep-level navigation
goto-restart-dynamic
Demonstrates restarting the current dynamic step from the beginning using GOTO {N}
goto-resume-dynamic-substep
Demonstrates error recovery that resumes at the exact dynamic substep where the error occurred
goto-static
Demonstrates static GOTO patterns (Step, Substep, NEXT, Named Substep)
named
mixed-dynamic-named-recovery
Demonstrates dynamic iteration with a shared named recovery step that returns to iterate next item
mixed-named-dynamic
Demonstrates mixed named and dynamic steps with individual recovery handlers for each iteration
mixed-named-static
Demonstrates mixing numbered static steps with named dynamic steps, showing error handling and routing patterns.
mixed-static-named-error
Demonstrates static steps with a named error handler step that redirects failures to central error handling
named-step-dynamic-substep
Demonstrates a named step containing dynamic substeps that execute until a pass condition is met.
named-step-mixed-substeps
Demonstrates named steps with both numbered substeps (ErrorHandler.1) and named substeps (ErrorHandler.Cleanup).
named-step-named-substeps
Demonstrates named steps containing named substeps with explicit step references (ErrorHandler.Prepare, ErrorHandler.Execute, ErrorHandler.Verify).
named-step-static-substeps
Demonstrates named steps containing static numbered substeps (ErrorHandler.1, ErrorHandler.2, ErrorHandler.3).
named-steps
Demonstrates mixing numbered and named steps with GOTO error handling
named-substeps
Demonstrates named substeps within a parent step
prompts
mixed-prompts
Step with both explicit Prompt and implicit instruction list
prompt-code-block
Demonstrates prompt code blocks (instructional, never executed)
prompted-steps
Steps with explicit and implicit prompt definitions
yes-no-aliases
Tests that YES/NO work as aliases for PASS/FAIL
substeps
nested-static-substeps
Demonstrates static nested substeps without explicit transitions, showing hierarchical structure and implicit step completion.
static-step-mixed-substeps
Demonstrates static steps containing both numbered and named substeps, including dynamic step transitions.