Maintain one session ledger at .codex/ledger/<YYYY-MM-DD>-MEMORY-<task-slug>.md, where the slug is a 2-3 word kebab-case task name unless the user named it.
- At the start of every turn, read your own ledger and scan other
*-MEMORY-*.mdfiles read-only for cross-agent awareness. - Update your ledger when the goal, assumptions, decisions, progress state, or important tool outcomes change.
- Keep it short, factual, and stable; mark uncertainty as
UNCONFIRMED. - After compaction or missing recall, rebuild from visible context, mark gaps, ask up to 3 targeted questions only if needed, then continue.
- Delete your ledger when the task is fully complete if it no longer needs to remain.