Turn daily logs into a small, current knowledge base. Treat daily logs as evidence, not as the authority.
Read references/spec.md before any write.
Read the workspace AGENTS.md and MEMORY.md for current hierarchy and owner rules.
Build the deterministic scan plan: bash
python3 skills/memory-review/scripts/memory_review.py scan \
--root . \
--output /tmp/memory-review-scan.json
Read every file in changed_sources. Ignore *-memory-review.md; the scanner excludes them.
Extract only durable signals. Exclude transient status, unverified ideas, routine execution logs, and secrets.
Resolve every signal against existing memory before writing. Use exact references, memory_search, rg, and the helper when useful:
bash
python3 skills/memory-review/scripts/memory_review.py candidates \
--root . --query "主题或结论"
Create a decision plan using the schema in the spec. Validate it before editing: bash
python3 skills/memory-review/scripts/memory_review.py validate-plan \
--root . --plan /tmp/memory-review-decisions.json
Apply decisions in this order:
update_existingskip_duplicatereview_mergecreate_newdeferVerify the diff, references, and current conclusion. A second run over unchanged inputs must not change canonical memory.
Write the report and execution log, then commit scan state only after all writes and checks succeed:
bash
python3 skills/memory-review/scripts/memory_review.py commit-state \
--root . --scan /tmp/memory-review-scan.json
review_merge instead.AGENTS.md, MEMORY.md, TOOLS.md, USER.md, SOUL.md, or ENVIRONMENT.md. Record a proposal unless the current request explicitly authorizes that edit.memory/knowledge/ filenames. Git history tracks time.memory/daily/YYYY-MM/YYYY-MM-DD-memory-review.mddata/exec-logs/memory-review/YYYY-MM-DD.mddata/exec-logs/memory-review/state.jsonmemory/knowledge/, memory/glossary.md, memory/projects/, memory/post-mortems.md