Cognitive Architecture for AI Agents: Triggers, Self-Healing Memory, and Documentation Propagation

How 15 mechanical triggers, auto-restoring memory, and a 13-step documentation chain prevent cognitive regression in long-running Claude Code sessions — and what a popular anti-regression repo reveals about the gap between code safety and reasoning safety.