docs(architecture): state the shipped execution transition rules

The lifecycle block still showed `running -> merged` and never mentioned
`completed`. `running -> merged` is now illegal (taskstate transition table)
and `merged` is reachable only from `pr_open`; a workflow that opens no pull
request ends in the terminal `completed`.

Rewrite the block to the current rules and fold the crash-recovery requeue
into the `running` row it belongs to. Regenerate the committed docs artifact
carried by `task docs:artifact:check`.
This commit is contained in:
sam committed 2026-09-26 04:01:08 +10:00
1 parent c0413fc5e8
commit d62593ca7c
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -178,13 +178,15 @@ The current `store.Task` lifecycle uses:
```text
queued -> running
running -> waiting_human | pr_open | merged | parked | closed_wont_do
running -> queued (crash recovery) | waiting_human | pr_open | completed | parked | closed_wont_do
waiting_human -> queued | closed_wont_do
parked -> queued | dead
pr_open -> merged | rejected
running after crash -> queued
```
`merged` is reached only from `pr_open`. `completed` is terminal: it means a
workflow that opens no pull request finished its work.
Workflows select and sequence deterministic and agent-run stages. Implement,
TDD, feasibility, and bootstrap are current Workflow definitions.
Every WorkflowExecution is handed wholesale over core NATS to a task-scoped