[claude] Mnemosyne entry update + content deduplication (#1239) #1241
Reference in New Issue
Block a user
Delete Branch "claude/issue-1239"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1239
Changes
nexus/mnemosyne/entry.pycontent_hashfield: SHA-256 oftitle+content, computed on__post_init__, persisted into_dict/from_dictupdated_atfield:Noneby default (semantically "same as created_at"), set on any mutationnexus/mnemosyne/archive.pyfind_duplicate(entry)— returns the first existing entry with the same content hash, orNoneadd()— now checks for duplicates before inserting; returns the existing entry if found, preventing double-ingestion creating ghost UUIDsupdate_entry(entry_id, title, content, metadata, auto_link)— updates any combination of fields, refreshescontent_hashwhen title/content changes, bumpsupdated_at, and re-runs holographic linker (clearing stale links first)nexus/mnemosyne/tests/test_archive.pyadd(),find_duplicate(),update_entry()(title/content/metadata/persistence/error cases)