This document defines how policy layers interact in codex-mem v1.
Recommended layers:
- product defaults
- global user configuration
- global
AGENTS.md - project configuration
- project
AGENTS.md - runtime tool parameters
- explicit private or do-not-store intent
Strongest to weakest:
- explicit private or do-not-store intent
- runtime tool parameters
- project configuration
- project
AGENTS.md - global user configuration
- global
AGENTS.md - product defaults
- Privacy exclusions outrank retrieval convenience.
- Runtime overrides apply only to the current invocation unless explicitly persisted.
AGENTS.mdinfluences workflow behavior but does not replace durable memory state.
Recommended configurable areas:
- bootstrap limits
- default minimum importance
- related-project retrieval allowance
- checkpoint encouragement
- exclusion patterns
- raw import retention
- AGENTS installation defaults
These should remain fixed for v1:
- unrelated project memory must not appear in default retrieval
- private content must remain excluded
- bootstrap must create a new session
- zero search results is not an error
Implementations should make it understandable:
- which policy layer affected a decision
- why related-project retrieval was used or not used
- why AGENTS installation wrote or skipped a file