From 04380c831473c1c76b0d6143bb380a7a34b2c5c6 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Sun, 15 Feb 2026 13:11:56 -0600 Subject: [PATCH] docs: add wave execution diagram to clarify parallelization Adds ASCII diagram showing how plans are grouped into waves based on dependencies. Independent plans run in parallel within a wave; waves run sequentially when dependencies exist. Addresses user confusion in #486 about why phases may not parallelize (dependencies prevent parallel execution by design). --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 8a7f57374..5de4ed29f 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,38 @@ The system: Walk away, come back to completed work with clean git history. +**How Wave Execution Works:** + +Plans are grouped into "waves" based on dependencies. Within each wave, plans run in parallel. Waves run sequentially. + +``` +┌─────────────────────────────────────────────────────────────────────┐ +│ PHASE EXECUTION │ +├─────────────────────────────────────────────────────────────────────┤ +│ │ +│ WAVE 1 (parallel) WAVE 2 (parallel) WAVE 3 │ +│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ +│ │ Plan 01 │ │ Plan 02 │ → │ Plan 03 │ │ Plan 04 │ → │ Plan 05 │ │ +│ │ │ │ │ │ │ │ │ │ │ │ +│ │ User │ │ Product │ │ Orders │ │ Cart │ │ Checkout│ │ +│ │ Model │ │ Model │ │ API │ │ API │ │ UI │ │ +│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │ +│ │ │ ↑ ↑ ↑ │ +│ └───────────┴──────────────┴───────────┘ │ │ +│ Dependencies: Plan 03 needs Plan 01 │ │ +│ Plan 04 needs Plan 02 │ │ +│ Plan 05 needs Plans 03 + 04 │ │ +│ │ +└─────────────────────────────────────────────────────────────────────┘ +``` + +**Why waves matter:** +- Independent plans → Same wave → Run in parallel +- Dependent plans → Later wave → Wait for dependencies +- File conflicts → Sequential plans or same plan + +This is why "vertical slices" (Plan 01: User feature end-to-end) parallelize better than "horizontal layers" (Plan 01: All models, Plan 02: All APIs). + **Creates:** `{phase_num}-{N}-SUMMARY.md`, `{phase_num}-VERIFICATION.md` ---