From 953fe2e295f209adb2ca229a6991828b2510ede4 Mon Sep 17 00:00:00 2001 From: Lukas May Date: Fri, 6 Mar 2026 22:06:00 +0100 Subject: [PATCH] docs: update dispatch-events.md to reflect quality review on agent:stopped Co-Authored-By: Claude Sonnet 4.6 --- docs/dispatch-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dispatch-events.md b/docs/dispatch-events.md index 5d1b4e9..4d6b22f 100644 --- a/docs/dispatch-events.md +++ b/docs/dispatch-events.md @@ -113,7 +113,7 @@ InitiativeChangesRequestedEvent { initiativeId, phaseId, taskId } | Event | Action | |-------|--------| | `phase:queued` | Dispatch ready phases → dispatch their tasks to idle agents | -| `agent:stopped` | Auto-complete task (unless user_requested), re-dispatch queued tasks (freed agent slot) | +| `agent:stopped` | Check quality review eligibility; if eligible: transition task to `quality_review` and spawn review agent; otherwise auto-complete task. Skipped for `user_requested` stops. Re-dispatches queued tasks. | | `agent:crashed` | Auto-retry crashed task up to `MAX_TASK_RETRIES` (3). Increments `retryCount`, resets status to `pending`, re-queues. Exceeding retries leaves task `in_progress` for manual intervention. | | `task:completed` | Merge task branch (if branch exists), check phase completion, dispatch next queued task |