Expand description
Core tick loop phases.
The engine ticks every ~10 seconds. Each tick runs six phases:
- Poll tmux for finished sessions
- Recover stuck in-progress tasks
- Route and dispatch:
- 3a. Route new tasks to agents
- 3b. Dispatch routed tasks (spawn agents)
- Unblock parents whose children are all done
- Run cron job scheduler
[tick_all] runs them for every project. Phases 1-2 and 3b-5 run for all projects at
once; only routing is serial, because it holds the router write lock. Store-wide work
(tick_global_sweeps, reconcile_dependencies) runs once per tick, not once per project.