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>
15 lines
408 B
Markdown
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`)
|