Repository navigation
0.2 (1/4): decay stale unconfirmed memories, reversibly - #13
Merged
Merged
Conversation
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
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 tidyprints a plan and changes nothing;--applyarchives;personakit undo <id>brings one back.store: migration 3 addslast_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.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
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
git commit -s), see CONTRIBUTING.md (owner is exempt; commits are not signed off on the owner's behalf)docs/ARCHITECTURE.mdGenerated by Claude Code