# Memory index is capped and write fails when full Status: accepted ## Context The `MEMORY.md` index goes into every system prompt. ## Decision A per-scope cap on index size makes `write` fail when full, so the agent must consolidate or forget entries instead of growing the prompt. ## Consequences Upserts of existing lines still work when full. Code: crates/hx-core/src/memory.rs (index cap, `write`)