notrest

One prompt, end to end

Part 4 · A SESSION, SCHEMATICALLY · Slide 53 of 60

 you        CLI          hooks                    estate files
  │  open    │            │                            │
  │─────────►│ SessionStart ─► session-start.sh ──────►│ (reads all, writes none)
  │          │            │   banner + laws + PACKET   │
  │  prompt  │            │                            │
  │─────────►│ UserPromptSubmit ─► coord-nudge, router │
  │          │            │   two one-line nudges      │
  │          │  model works: reads, edits, runs        │
  │          │ PreToolUse(Bash) ─► pretool-gate ───────│ allow / deny
  │          │ PreToolUse(Agent) ─► spawn-gate ────────│ allow / deny
  │          │   lane runs in the background           │
  │          │ SubagentStop ─► agent-ledger ──────────►│ COORD-AGENTS, briefs/, spend/
  │          │   model appends its ledger line ───────►│ COORD.md
  │  (stop)  │ Stop ─► completion-gate ─► gate-check   │ green or "not earned"
  │  close   │ SessionEnd ─► session-end ─────────────►│ cushion line, volume roll
  │          │            │                            │
  │  open    │ SessionStart ─► the PACKET now carries  │
  │  again   │            │   everything above         │