Forget byte-level erasure and legacy-mode checkpoint purge #50

Open
opened 2026-11-03 20:23:05 +00:00 by piers · 1 comment
Owner

Outcome

After Forget, no byte of the forgotten Person's values remains in the store's database file, backup residue is bounded by retention, and a restore cannot bring the Person back.

Context

The #47 architect gate kept these items out of the Mail peer v1 slice. The #50 grill (2026-11-04) ruled ADR 0003 Amendment 1, which closes the open decision this issue carried. The amendment merged as PR #57 (511e7ce). The rules:

  1. Physical erasure from the database file: secure_delete=ON and one migration VACUUM; no application checkpoint, because Litestream 0.3.13 owns checkpointing.
  2. Backup residue is disclosed: WAL frames, the Litestream shadow WAL, and backup snapshots and segments, including the compose replica volume. Every replica's retention is at most 168 hours. The 168h value lives in the Kubernetes overlay (deploy/k8s/overlays/example/kustomization.yaml:23); compose uses the Litestream default of 24 hours.
  3. Restore-safe Tombstones, before people_forget is mounted.
  4. Forget purges the legacy pending checkpoint. Today the addresses survive only while the last legacy pass ended in a fetch failure, and only until the next successful pass (sync.py:113-121).
  5. Forget removes a derived Organisation that only the forgotten Person used.
  6. Scope stops at People Mind's store and backups.
  7. The salted-hash residue is accepted and stated.

Sub-issues

Prior work

  • dev/people-mind-mcp#47 — satisfied: merged as PR #51 (24c0c17).

Filed under: operator word "accept" sha256:c125d0397b60 (#47 gate)

## Outcome After Forget, no byte of the forgotten Person's values remains in the store's database file, backup residue is bounded by retention, and a restore cannot bring the Person back. ## Context The #47 architect gate kept these items out of the Mail peer v1 slice. The #50 grill (2026-11-04) ruled ADR 0003 Amendment 1, which closes the open decision this issue carried. The amendment merged as PR #57 (`511e7ce`). The rules: 1. Physical erasure from the database file: `secure_delete=ON` and one migration `VACUUM`; no application checkpoint, because Litestream 0.3.13 owns checkpointing. 2. Backup residue is disclosed: WAL frames, the Litestream shadow WAL, and backup snapshots and segments, including the compose `replica` volume. Every replica's retention is at most 168 hours. The 168h value lives in the Kubernetes overlay (`deploy/k8s/overlays/example/kustomization.yaml:23`); compose uses the Litestream default of 24 hours. 3. Restore-safe Tombstones, before `people_forget` is mounted. 4. Forget purges the legacy pending checkpoint. Today the addresses survive only while the last legacy pass ended in a fetch failure, and only until the next successful pass (`sync.py:113-121`). 5. Forget removes a derived Organisation that only the forgotten Person used. 6. Scope stops at People Mind's store and backups. 7. The salted-hash residue is accepted and stated. ## Sub-issues - dev/people-mind-mcp#54 (closed) — rules 1, 4 and 5: the database scrub, the legacy purge and orphaned derived Organisations. - dev/people-mind-mcp#55 — rule 3: restore-safe Tombstones. ## Prior work - dev/people-mind-mcp#47 — satisfied: merged as PR #51 (`24c0c17`). Filed under: operator word "accept" sha256:c125d0397b60 (#47 gate)
Author
Owner

This was generated by AI during triage.

Triage: ready-for-human

Why a human: the issue reaches Litestream replication and the data-boundary ADR (CONV-40 rule 3). ADR 0003 §8 defines Forget and is silent on free pages, the WAL and replicas, so the remedy needs a ruling and an ADR 0003 amendment first.

Premises checked at triage (24c0c17, after #51):

  • No code sets secure_delete or checkpoints after Forget.
  • The legacy pending checkpoint is keyed by address (sources/mailmind.py:168) and stored zlib-compressed (sync.py:57-60).
  • graph.forget (graph.py:380-404) clears mail_pending, mail_support and mail_staged, but not source_state.
  • The example S3 replica keeps retention: 168h.

Suggested next step: a grill on the ADR 0003 amendment. After the ruling, the local-only remedy and the legacy purge are agent-sized.

> *This was generated by AI during triage.* ## Triage: ready-for-human **Why a human:** the issue reaches Litestream replication and the data-boundary ADR (CONV-40 rule 3). ADR 0003 §8 defines Forget and is silent on free pages, the WAL and replicas, so the remedy needs a ruling and an ADR 0003 amendment first. **Premises checked at triage (`24c0c17`, after #51):** - No code sets `secure_delete` or checkpoints after Forget. - The legacy pending checkpoint is keyed by address (`sources/mailmind.py:168`) and stored zlib-compressed (`sync.py:57-60`). - `graph.forget` (`graph.py:380-404`) clears `mail_pending`, `mail_support` and `mail_staged`, but not `source_state`. - The example S3 replica keeps `retention: 168h`. **Suggested next step:** a grill on the ADR 0003 amendment. After the ruling, the local-only remedy and the legacy purge are agent-sized.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/people-mind-mcp#50
No description provided.