Mental model
- Variables hold explicit machine-readable state.
- Goals define outcomes and priority.
- Actions and cycles record planner decisions over time.
- Logs and snapshots make behavior inspectable.
Minimal implementation example
- Python
- Node / TS
- Rust
04-state-and-goals.py
Failure modes and troubleshooting
| Symptom | Root cause | Fix |
|---|---|---|
| State conflicts | Writes spread across multiple runs | Keep deterministic run identity |
| Goal sprawl | No parent/priority discipline | Define team goal policy |
| Opaque behavior | Action/cycle logs not reviewed | Add routine log checks in dev and ops |
Next steps
- Add event-driven wakeups at Pub-sub and events.
- Split planner/specialist runs at Sessions and branching.