Expose restore-safe Forget across the expanded people model #114
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#55 Restore-safe Tombstones before people_forget is mounted
dev/people-mind-mcp
#98 Accept or edit an enrichment suggestion from an MCP card
dev/people-mind-mcp
#110 Represent shared phones and mailboxes without merging people
dev/people-mind-mcp
#111 Decide archive, scoped removal and lifecycle visibility
dev/people-mind-mcp
Reference
dev/people-mind-mcp#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#96
What to build
Forget a Person through an explicitly confirmed tool/card action while preserving other people and preventing revival.
Acceptance criteria
Blocked by
Filed under: operator word "ok" sha256:2689367b205c
Forget residue:
actions.payload_digestis an unsalted hash of a personal payload.actions.enqueuestorespayload_digest = sha256(json.dumps(payload, sort_keys=True))for every Action (src/people_mind_mcp/actions.py:81-82,:99). The worker nullspayloadon apply, but the digest stays for the life of the Action row, and Forget does not touch theactionstable. The digest has no salt, so anyone who can read the store and guess the payload can confirm it. ADR 0003 Amendment 1 rule 7 accepts salted hashes only (Tombstones and the audit row).First recorded at the #103 gate for three kinds. Since then, every slice that carries a personal value in its payload adds to the residue. Measured at
main=f616f5a(schema 18) on a scratch store: one Action of each kind below, thengraph.forgeton the Person. Every Action row stays,payloadis NULL, andpayload_digestequals the sha256 of the guessed payload.link.alias3099b59)review.edit726d113)person.create2ba707e)note.add,note.correct,preference.setd9e4df2)fact.add,fact.correct,fact.supersedec1a5db5)interaction.add,interaction.correctb6648e6)relation.addf616f5a)Measured directly:
note.add,fact.add,relation.addandinteraction.add. The other rows follow from the sameenqueuepath.The digest exists for ruling 9 of ADR 0005 Amendment 1: the same key with a different payload answers
idempotency-conflict. After Forget, no retry of those Actions can succeed in any useful way, so the digest serves no purpose on a forgotten Person's Actions.Question for this issue (and the restore-safe Tombstone work): should Forget clear
payload_digest, or re-key it with the Tombstone salt, on every Action that targeted the forgotten Person? Or is it accepted residue, with an amendment to ADR 0003 that says so?Three facts for the decision:
actionshas noperson_idcolumn. Finding a forgotten Person's Actions needs theundo_records.person_idlink, which Forget deletes, or thedetailids.detailholds ids only (ADR 0005 Amendment 1 ruling 17), and after Forget it still names the forgotten Person's id, for exampleperson=p_… note=1.detail.value_digest(graph.py:2305), but Forget already deletes undo records (graph.py:1073-1085), so that one is erased.Recorded at the #103 SVD gate, ruling D4 (spec
2026-11-05-create-a-person-before-a-contact-or-email-exists.md), which kept the residue out of that slice. Refreshed at the #102 gate on 2026-11-07.Forget residue: derived domains on an Organisation that survives Forget.
When Forget removes a Person, it erases a derived Organisation only when nothing else keeps it (ADR 0003 Amendment 1 ruling 5). An Organisation survives when another Person relates to it or it has an asserted field. A surviving Organisation keeps every derived domain in
org_domains, including a domain that only the forgotten Person's email carried.Example: Ann (
ann@smithplumbing.example) and Bob (bob@gmail.example) both haveworks_atRelations to the Organisation derived fromsmithplumbing.example. Forget on Ann leaves the Organisation, because Bob relates to it, and it still listssmithplumbing.example. Ruling 5's own reason applies: a non-public email domain identifies its owner nearly as well as the address does.The #106 gate (2026-11-07, ruling D5) kept this out of #106, because it changes Forget behaviour that predates the slice. #106 does extend the orphan rule: an asserted name, an asserted domain, any alias or any rejection keeps an Organisation, and a rejection whose domain no remaining Handle carries is erased.
Question for this issue: should Forget also strip a derived domain from a surviving Organisation when no remaining Handle carries that domain? Or is it accepted residue, with an amendment to ADR 0003 that says so?
Facts for the decision:
ORPHAN_DERIVED_ORGANISATION(src/people_mind_mcp/graph.py:49-55) decides survival. Forget deletes noorg_domainsrow from an Organisation that survives.org.domain.assign, #106) is the Owner's own claim and would stay under either answer.