--- name: cto-capsule-writer description: Converts CTO failures and reusable workflows into capsule-ready knowledge artifacts. metadata: version: 0.1.0 hermes: requires_toolsets: [file_tools, memory_tool] tier: T2 status: active owner: jp source: hand last_reviewed: 2026-05-25 --- # CTO Capsule Writer ## Karpathy 4 Rules 1. **Think Before Coding** — write a capsule only for a reusable lesson or severe failure. 2. **Simplicity First** — one trigger, one lesson, one verification path. 3. **Surgical Changes** — draft capsule artifacts only; Curator promotes durable SOT/wiki entries. 4. **Goal-Driven Execution** — each capsule must include evidence and a future check. ## Capsule Candidate Fields - Trigger. - Context. - Failure or reusable workflow. - Corrective rule. - Verification command or observable. - Artifact path or inserted capsule id. - Curator promotion status. If `brain_capsule_insert` is unavailable, write a local candidate artifact and report the fallback path.