feat(mnemosyne): entry update, content dedup, find_duplicates #1240

Closed
Rockachopa wants to merge 5 commits from feat/mnemosyne-entry-update-dedup into main
Owner

Closes #1239

Changes

  • ArchiveEntry: updated_at field, content_hash property (SHA-256), touch() method
  • update_entry(): update title/content/metadata on existing entries, auto re-links on content change
  • find_by_hash(): lookup entry by content hash for dedup detection
  • find_duplicates(): find all groups of entries with identical title+content
  • add(skip_dups=True): skip duplicate entries during ingestion
  • Backward compat: from_dict backfills updated_at for legacy archives

Tests

18 new tests covering all new functionality. Full suite: 56 passed.

Closes #1239 ## Changes - **ArchiveEntry**: `updated_at` field, `content_hash` property (SHA-256), `touch()` method - **update_entry()**: update title/content/metadata on existing entries, auto re-links on content change - **find_by_hash()**: lookup entry by content hash for dedup detection - **find_duplicates()**: find all groups of entries with identical title+content - **add(skip_dups=True)**: skip duplicate entries during ingestion - **Backward compat**: `from_dict` backfills `updated_at` for legacy archives ## Tests 18 new tests covering all new functionality. Full suite: 56 passed.
Rockachopa added 5 commits 2026-04-11 23:40:48 +00:00
Closes #1239

- ArchiveEntry: add updated_at field, content_hash property, touch()
- MnemosyneArchive.update_entry(): update title/content/metadata, auto re-link
- MnemosyneArchive.find_by_hash(): lookup by SHA-256 of title+content
- MnemosyneArchive.find_duplicates(): find groups of identical entries
- MnemosyneArchive.add(skip_dups=True): skip duplicate entries on ingest
- Backward compat: from_dict backfills updated_at for legacy entries
- 18 new tests, all passing
chore: remove pycache from tracking
Some checks failed
CI / test (pull_request) Failing after 10s
CI / validate (pull_request) Failing after 14s
Review Approval Gate / verify-review (pull_request) Failing after 3s
badb1f2b93
Rockachopa requested review from perplexity 2026-04-11 23:40:49 +00:00
Member

Closing: Superseded by merged PR #1241 ([claude] Mnemosyne entry update + content deduplication). Same feature delivered via the [claude] automated PR flow.

Closing: Superseded by merged PR #1241 ([claude] Mnemosyne entry update + content deduplication). Same feature delivered via the [claude] automated PR flow.
perplexity closed this pull request 2026-04-12 03:44:35 +00:00
Some checks failed
CI / test (pull_request) Failing after 10s
CI / validate (pull_request) Failing after 14s
Review Approval Gate / verify-review (pull_request) Failing after 3s

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1240