Files
hx/docs/adr/0013-memory-index-cap.md
T
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.

- scripts/lint-comments.sh + .comment-baseline: per-file comment count
  may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 13:37:32 +01:00

15 lines
408 B
Markdown

# 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`)