Skip to content

0.2 (1/4): decay stale unconfirmed memories, reversibly - #13

Merged
Yanir-R merged 1 commit into
mainfrom
claude/0.2-decay
Nov 16, 2026
Merged

Yanir-R merged 1 commit into
mainfrom
claude/0.2-decay

Conversation

@Yanir-R

@Yanir-R Yanir-R commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Requested by Yanir · project thread

What changed

One thing: archiving unconfirmed memories that have not been seen again for a long time. Split out of #12.

  • decay: finds unconfirmed memories not extracted again for 90 days (pure functions). Approved and restricted memories never decay.
  • tidy: personakit tidy prints a plan and changes nothing; --apply archives; personakit undo <id> brings one back.
  • store: migration 3 adds last_seen_at. An extraction of the same statement refreshes it and revives a memory decay archived. An assistant proposal (add(observed=False)) does neither, so an assistant cannot un-archive a memory or keep it from decaying.
  • Docs: ARCHITECTURE (modules, data model, policy 3), PRIVACY, README, ROADMAP, REVIEW-LOG.

Why

Review is optional, so unconfirmed memories pile up. Archiving what never comes back keeps what assistants are served current, without deleting anything and without touching the owner's decisions.

How to verify

pip install -e ".[mcp]" ruff coverage
ruff check .
python -m coverage run -m unittest discover -s tests -t . && python -m coverage report   # 114 tests, 96%
./scripts/check_hygiene.sh
personakit tidy && personakit tidy --apply && personakit undo <id>

Also checked on a copy of a real 0.1 store: the schema upgrade keeps every memory, archive and undo behave as documented, approved memories are untouched.

Note for existing stores: opening a store with this version upgrades its schema, and 0.1 will then refuse to open it. Back up the store file first.

Checklist

  • Every commit is signed off (git commit -s), see CONTRIBUTING.md (owner is exempt; commits are not signed off on the owner's behalf)
  • No personal data, real paths, hostnames or credentials in code, tests, fixtures or docs
  • Test fixtures use invented data only
  • No duplicated logic; the change respects the module boundaries in docs/ARCHITECTURE.md
  • Docs updated if behavior or privacy claims changed

Generated by Claude Code

personakit tidy shows a plan and changes nothing; --apply archives unconfirmed
memories not extracted again for 90 days; personakit undo brings one back.
Migration 3 adds last_seen_at. An extraction refreshes it and revives a memory
decay archived; an assistant proposal does neither.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014dGcvUc3LqzKojYnqVGCjK
@Yanir-R
Yanir-R merged commit c2c265d into main Nov 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants