Overview¶
Understand the problem this architecture solves, how it works, and the design decisions behind it.
Start Here¶
-
The complete capability map — 20 capabilities across startup, work, and shutdown. See what each one prevents and which level enables it.
Concepts¶
-
Why unmanaged AI agent sessions fail: context waste, rule drift, and startup chaos. The case for structural enforcement over written instructions.
-
The 5-hook engine (SessionStart, PreToolUse, UserPromptSubmit, PostToolUse, Stop), manifest/sentinel state management, and how tiers work together.
Implementation¶
-
Four progressive levels from voluntary compliance (Level 1) to full structural enforcement with stop-hook cleanup (Level 4). Start simple, add enforcement as needed.
-
YAML files vs SQLite vs PostgreSQL — when to use each. Platform adaptation guides for Claude Code, Cursor, Windsurf, Aider, and custom agents.
Insights¶
-
Eleven hard-won insights from building this system: documenting is not doing, exit codes lie, gate don't nag, more reasoning = worse faithfulness, and more.
-
10-slide visual companion covering the problem, 5-hook engine, tiering strategy, and all 4 levels. Use alongside these pages or share with your team.