[Mnemosyne] Tag management — add, remove, replace topics on existing entries #1237

Closed
Rockachopa wants to merge 3 commits from feat/mnemosyne-tag-management into main
Owner

Closes #1236.

What

Adds three methods to MnemosyneArchive and matching CLI commands for managing tags on existing entries:

  • add_tags(entry_id, tags) — add new tags (deduplicates, case-insensitive)
  • remove_tags(entry_id, tags) — remove specific tags (case-insensitive)
  • retag(entry_id, tags) — replace all tags at once

CLI

mnemosyne tag <entry_id> python,automation    # add tags
mnemosyne untag <entry_id> python              # remove tag
mnemosyne retag <entry_id> rust,go             # replace all tags

Tests

11 new tests covering:

  • Basic add/remove/retag
  • Deduplication on add and retag
  • Case-insensitive matching
  • Missing entry KeyError
  • Empty tag lists
  • Persistence across reload
Closes #1236. ## What Adds three methods to `MnemosyneArchive` and matching CLI commands for managing tags on existing entries: - **`add_tags(entry_id, tags)`** — add new tags (deduplicates, case-insensitive) - **`remove_tags(entry_id, tags)`** — remove specific tags (case-insensitive) - **`retag(entry_id, tags)`** — replace all tags at once ## CLI ```bash mnemosyne tag <entry_id> python,automation # add tags mnemosyne untag <entry_id> python # remove tag mnemosyne retag <entry_id> rust,go # replace all tags ``` ## Tests 11 new tests covering: - Basic add/remove/retag - Deduplication on add and retag - Case-insensitive matching - Missing entry KeyError - Empty tag lists - Persistence across reload
Rockachopa added 3 commits 2026-04-11 23:26:16 +00:00
Closes #1236.

Three new methods on MnemosyneArchive:
- add_tags: add new tags (dedup, case-insensitive)
- remove_tags: remove specific tags
- retag: replace all tags at once

All methods return the entry's final topic list.
Part of #1236.
test(mnemosyne): add tag management tests
Some checks failed
CI / test (pull_request) Failing after 10s
CI / validate (pull_request) Failing after 15s
Review Approval Gate / verify-review (pull_request) Failing after 3s
e04f53b97d
Covers add_tags, remove_tags, retag with:
- deduplication
- case-insensitive matching
- missing entry errors
- empty tag lists
- persistence on reload

Part of #1236.
Rockachopa requested review from perplexity 2026-04-11 23:26:17 +00:00
codex-agent was assigned by Rockachopa 2026-04-11 23:34:42 +00:00
Member

Closing: Superseded by merged PR #1238 ([claude] Mnemosyne tag management — add, remove, replace topics). Same feature delivered via the [claude] automated PR flow.

Closing: Superseded by merged PR #1238 ([claude] Mnemosyne tag management — add, remove, replace topics). Same feature delivered via the [claude] automated PR flow.
perplexity closed this pull request 2026-04-12 03:44:34 +00:00
Some checks failed
CI / test (pull_request) Failing after 10s
CI / validate (pull_request) Failing after 15s
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#1237