Forget memories completely; stop keeping deleted text in the audit - #1
Merged
Merged
Conversation
Deleting a memory copied its full text into memory_audit, and revision
snapshots and conflict records kept it too, so "deleted" memories were
still stored.
- erase(): removes the memory, its revision snapshots and conflict
records, redacts its audit payloads, writes a content-free audit entry
and a deletion receipt for recovery replay, all in one transaction.
- PUT /runtime/corrections/forget/{request_id}: owner-reviewed forget
through the dedicated correction capability, namespace-bound and
revision-checked, idempotent by request id, with a receipt that records
vector-index removal (removed or degraded).
- The admin delete route uses erase() too.
Tests: the forgotten sentence survives in no table after forget or
delete; replay, revision, namespace, capability and index-outage cases.
116 passed.
Refs Conker-AI/conker#44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
alexeybe1kin
added a commit
to Conker-AI/pi
that referenced
this pull request
Sep 25, 2026
- GET /memory/forget/{id} shows the exact current text and revision;
POST /memory/forget forgets that revision through MemoryGate's
correction capability (Conker-AI/memorygate#1), idempotent by request id.
- Pi then clears every cached per-turn memory package that quoted it.
The source conversation is kept.
- Owner-control routes: through the browser the write needs the owner
password. Outcomes map to 404/409/503; a lost reply is reported as
unknown and is safe to repeat.
Tests: 8 new; full suite 1113 passed on Linux; auth 19/19 and audit
28/28 mutants caught. Cross-repo check against MemoryGate's real router:
nothing of the forgotten text remained in any table.
Refs Conker-AI/conker#44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of Conker-AI/conker#44.
Bug fixed
Deleting a memory copied its full text into
memory_audit, and revision snapshots and conflict records kept it too. "Deleted" memories were still stored.What changes
erase()runs in one transaction: removes the memory, its revision snapshots and conflict records, redacts its audit payloads, and writes a content-free audit entry plus a deletion receipt for recovery replay.PUT /runtime/corrections/forget/{request_id}: owner-reviewed forget through the dedicated correction capability. Namespace-bound, revision-checked, idempotent, with a receipt that reports vector-index removal (removedordegraded).erase()too.Verification
🤖 Generated with Claude Code