Skip to content

v0.3.11

Choose a tag to compare

@maverde73 maverde73 released this 27 Oct 07:11

New: mnemonic-proxy forget, delete one conversation in one step (#19, #20). Suggested by an independent review of the project on Radyz.cz.

mnemonic-proxy forget --data ./data --list
mnemonic-proxy forget --data ./data --config cfg.json --conv <id> --dry-run
mnemonic-proxy forget --data ./data --config cfg.json --conv <id>
  • Removes the conversation's rows from every table with a conv column (read from the schema), its kv entries and the structured-recall index (rebuilt on demand); rebuilds FTS and vacuums.
  • Deletes its saved-state files and prompt sidecars, its kv-archive manifests and unreferenced blocks, its lines in journal.jsonl (atomic rewrite) and matching live/router metadata.
  • --dry-run reports rows, files and bytes and changes nothing; it refuses when saved-state records exist but the state folder is unknown; non-zero exit if anything could not be removed.
  • The proxy now holds a lock on its data folder while it runs, so forget (or a second proxy) on the same folder is refused. Proxies older than 0.3.11 do not take the lock: stop them first.
  • Not a forensic wipe: SSD remanence, snapshots, backups and the engine's memory are out of scope.

Checked on a copy of a real archive (9 conversations): the dry run left every file byte-identical; after forget, no row of the deleted id in any table, no FTS hit for words unique to it, no journal line; the other conversation's archive rows identical and recallable by id. Test suite: 564 tests OK.