Files
memory-continuity/memory/CURRENT_STATE.md
T
taodengandClaude Opus 4.6 cfb2de72d6 feat: add memory file count hard limit (500) and archive cap (20)
Prevents memory/ from growing unbounded by capping STATE_ARCHIVE
files at 20 per type and enforcing a 500-file hard limit on the
entire memory directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 12:02:17 +10:00

32 lines
763 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Current State
> Last updated: 2026-03-21T02:00:58.027Z
## Objective
但是文件数目不可以超过500条
## Current Step
Conversation ended after 181 messages
## Key Decisions
- Auto-extracted from conversation
## Next Action
Continue from where we left off
## Blockers
None
## Unsurfaced Results
🦞 大内总管: 已加硬上限。
**改动:**
- `MAX_MEMORY_FILES = 500`
- 每次 archive 后检查 `memory/` 总文件数
- 超过 500 → 自动删最旧的可删文件,降到 450(留 50 个余量)
- **不会删的**`CURRENT_STATE.md``MEMORY.md``INDEX.md`、主题文件、JSON 状态文件
**三层防护:**
1. 单类 archive 上限 20 个
2. 总文件数硬上限 500
3. 清理时按修改时间排序,从最旧的开始删