--- BEGIN PROMPT ---
I want you to implement a comprehensive memory and compaction recovery system. This will dramatically improve your continuity across compaction events and restarts. Here's everything you need to do:
STEP 1: CREATE THE SESSION-STATE FILE
Create the file memory/session-state.md with this template: