Concurrency Model (Phase 5)
Concurrency Model (Phase 5)
When tasks are marked [parallel]:
- Orchestrator launches multiple
implementeragents simultaneously - Hook blocks
git commitfor any Bash call when parallel tasks arein_progress - After all parallel agents complete, orchestrator does one batch
git commit - The Go MCP server uses mutex-based locking for concurrent state.json updates
Sequential tasks self-commit and run one at a time.
Hook Enforcement
The pre-tool-hook.sh Rule 2 detects parallel execution by checking whether any tasks have implStatus == "in_progress" in state.json. If multiple tasks are in progress simultaneously, any git commit Bash call exits with code 2 (blocked).
See Hooks & Guardrails and Guard Catalogue (Rule R2) for details.