People Mind write capabilities: corrections, identity, lifecycle, contact publication and MCP Apps #96

Open
opened 2026-11-05 06:08:18 +00:00 by svc-agent-writer · 0 comments

Problem Statement

People Mind joins contact Sources and mail evidence into Persons, but the Owner cannot yet correct the resulting knowledge through its public tools. A wrong title, obsolete address, missing relationship or mistaken identity persists until an upstream contact is changed. Deterministic signature enrichment already extracts phones, URLs and simple titles, but there is no durable accept/edit/reject workflow. Re-deriving a rejected claim or undoing a correction during sync would make this knowledge unreliable.

Corrections also need a usable interface. Conversational tools, interactive MCP Apps in supporting hosts, and a future iOS interface must make the same changes with the same provenance, conflict handling and undo semantics. Editing People Mind's knowledge and publishing contact changes are distinct actions.

Solution

Deliver a shared correction and enrichment-review capability, exposed through MCP tools and three focused interactive views: Person card, enrichment review and identity comparison. Begin with one complete workflow: review suggested improvements for a Person, compare current and proposed values, inspect evidence references and dates, accept/edit/reject, observe completion, and undo where supported.

Keep review decisions in People Mind so they survive sessions, clients, service restarts and Source re-sync. Reuse the write-token, outbox, worker, audit and undo infrastructure tracked in #78. Reuse Mail Mind's implemented MCP Apps pattern and its existing host-test evidence rather than starting another UI architecture.

This spec covers the full recommended capability set. Later phases are in scope, with user stories and acceptance criteria; the first enrichment-review slice is an implementation starting point, not the completion boundary. The full scope includes Person creation, manual Interactions, Organisation correction, identity repair including shared endpoints, archive/remove/Forget, and selective contact creation and publication. Follow-up scheduling stays with a linked task/calendar service.

Capability coverage

Capability Required outcome Primary surface / ownership
Structured facts and corrections Add, amend, retract, choose preferred values and preserve provenance People Mind tools and Person Card
Enrichment review Accept/edit/reject signature-derived suggestions, with evidence and persistent decisions People Mind review queue and MCP App
Durable negative knowledge Suppress rejected claims, rejected identity matches and obsolete contact recommendations across sync People Mind
Facts over time Supersede roles, employers and contact details without losing attributable history People Mind
Relationships, notes and preferences Edit typed Relations and explicitly stated context, pronunciation and contact preferences People Mind tools and Person Card
Identity and duplicates Compare, merge, alias, split, move Handles and keep different Persons separate People Mind graph; iOS is a suitable upstream address-book review surface
Shared endpoints Represent family phones and role mailboxes without collapsing distinct Persons People Mind, following an identity ADR amendment
Person creation Remember a new Person before any mail or address-book record exists; optionally publish a contact People Mind, then explicit publication
Manual Interactions Record calls, meetings and other contact metadata, with separate optional notes People Mind
Organisation correction Correct names, aliases and domain associations; express employee/contractor relationships People Mind
Lifecycle Reversible archive, scoped removal, and irreversible restore-safe Forget as distinct operations People Mind; upstream deletion requires its own explicit action
Selective contact publication Preview destination and field changes; create or enrich a contact through supported adapters People Mind publication worker / contact provider
Interactive MCP views Person Card, enrichment review and identity comparison, with write status and conflicts Mail Mind MCP Apps pattern; Grok/Claude host matrix
Reliable writes Attribution, permissions, caps, idempotency, audit, stale-view checks and safe undo Shared server-side commands
Follow-up handoff Associate an external task/calendar reference with a Person without owning scheduling Existing task/calendar service

Delivery phases

  1. Foundation and first usable review. Reuse #78's write foundation; ship single-Person enrichment Accept/Edit/Reject with durable decisions, provenance, action history, undo, text fallback and a tested MCP App interaction.
  2. Everyday people maintenance. Expand to structured facts, temporal validity, preferred Handles, notes/preferences, Relations, the persistent review queue, standalone Person creation, manual Interactions and Organisation corrections.
  3. Identity and lifecycle. Deliver comparison, merge/alias/split/Handle moves and durable separation, then shared-endpoint support after the identity decision. Add archive and scoped removal. Mount Forget only after #55 and the existing erasure requirements are satisfied.
  4. Selective publication. Add destination-aware preview/apply/status and contact creation/write-back through supported adapters. Start with CardDAV; keep adapter coverage explicit rather than claiming every provider. Reuse the same correction data and commands from all clients.

Independent work can proceed across phases. Completion of this epic requires the full capability coverage above and linked implementation/decision work for every remaining item; completing phase 1 does not complete this spec.

User Stories

  1. As the Owner, I want to open a Person's Card from a conversation, so that I can inspect and correct the Person I am discussing.

  2. As the Owner, I want asserted and derived fields to be distinguishable, so that a signature extraction does not look like a fact I confirmed.

  3. As the Owner, I want each suggestion to show its proposed value, current value, Source, evidence references, available dates and confidence, so that I can judge it.

  4. As the Owner, I want to accept one suggestion without accepting the others, so that a correct phone does not also approve a wrong title.

  5. As the Owner, I want to edit a suggestion before accepting it, so that I can correct a partly useful extraction.

  6. As the Owner, I want to reject a suggestion permanently until I reconsider it, so that subsequent syncs and repeated signatures do not offer the same claim again.

  7. As the Owner, I want to inspect and reverse my rejection, so that a mistaken dismissal can be corrected.

  8. As the Owner, I want genuinely different proposed values to remain reviewable, so that rejecting one title does not suppress all future titles.

  9. As the Owner, I want a review queue that persists across clients and conversations, so that unfinished work is not lost.

  10. As the Owner, I want to filter and page that queue by Person and review state, so that I can review it in manageable portions.

  11. As the Owner, I want to add, correct and retract my own structured facts, so that useful knowledge need not originate in a contact Source.

  12. As the Owner, I want to select preferred contact details separately from historical identity Handles, so that an obsolete email can still resolve a Person without being recommended for contact.

  13. As the Owner, I want superseded facts to remain attributable while no longer being presented as current, so that a former employer or title does not mislead me.

  14. As the Owner, I want to add and correct context notes and explicitly stated preferences, so that People Mind remembers how I know someone and how they prefer to be contacted.

  15. As the Owner, I want to add and remove typed Relations, so that partners, colleagues, clients and providers are represented explicitly.

  16. As the Owner, I want to compare two Persons with their Handles, facts and provenance, so that I can decide whether they are the same person.

  17. As the Owner, I want to merge Persons and attach an old Handle through the existing link workflow, so that I need not put obsolete addresses on an address-book card.

  18. As the Owner, I want to undo a mistaken merge, so that identity correction remains recoverable.

  19. As the Owner, I want nonmatching Persons marked as different to stop recurring as merge suggestions, so that rejected identity suggestions stay rejected.

  20. As the Owner, I want a split or Handle move that conflicts with the current identity rules to explain the conflict, so that the system cannot claim to repair an identity only to merge it again on sync.

  21. As the Owner, I want to see queued, applied, failed or conflicted action status, so that a click is not mistaken for a completed correction.

  22. As the Owner, I want an old card to detect intervening edits before saving, so that it cannot overwrite newer knowledge.

  23. As the Owner, I want undo to preserve unrelated later edits, so that recovery does not erase other work.

  24. As the Owner, I want “Save in People Mind” to describe the actual destination, so that I know my device contacts have not changed.

  25. As an authorised agent, I want the same correction operations through MCP, so that conversational requests have the same semantics as card clicks.

  26. As an authorised agent, I want retries to return the original action, so that a timeout cannot duplicate a mutation or consume its daily cap twice.

  27. As a read-only client, I want to inspect Cards and suggestions without being able to mutate them, so that the interface respects my credential.

  28. As a user of a host that does not render MCP Apps, I want complete text results and callable operations, so that the feature remains usable.

  29. As the operator, I want attributed action history without personal field values in the audit detail, so that I can diagnose changes within the existing data boundary.

  30. As the operator, I want the existing Forget path to cover newly introduced person-associated review data when Forget is eventually exposed, so that this feature does not create an erasure gap.

  31. As the Owner, I want to create a Person with a name and context even before I know a Handle, so that I can remember someone I have just met.

  32. As the Owner, I want later mail or contact records to resolve to an existing locally created Person through normal identity review, so that creating a Person does not guarantee a lasting duplicate.

  33. As the Owner, I want to record a call, meeting or other Interaction with its actual date and channel, so that recent-contact context includes activity outside mail.

  34. As the Owner, I want to correct or remove a manual Interaction and attach an optional separate note, so that a factual timeline does not become an unstructured conversation archive.

  35. As the Owner, I want to correct an Organisation's name, aliases and domain associations, so that People Mind groups people under the right organisation.

  36. As the Owner, I want to distinguish an employee from a contractor using an attributed Relation and dates, so that sharing an organisation does not overstate their role.

  37. As the Owner, I want an incorrect domain association to stop reappearing on sync, so that Organisation correction is durable too.

  38. As the Owner, I want to split a mistaken identity and move selected Handles and associated Interactions, so that two people remain separate after subsequent syncs.

  39. As the Owner, I want a family phone or role mailbox represented as shared, so that an exact endpoint match does not merge unrelated Persons.

  40. As the Owner, I want identity ambiguity around a shared endpoint to be visible, so that the service does not arbitrarily attribute an Interaction or return one Person as certain.

  41. As the Owner, I want to archive and restore an old contact, so that everyday results stay useful without destroying history.

  42. As the Owner, I want a removal action to identify exactly what it removes and whether sync may restore it, so that deletion is not confused with archive or Forget.

  43. As the Owner, I want to Forget a Person with explicit confirmation, so that their stored personal data is erased and matching Handles do not recreate them after sync or restore.

  44. As the Owner, I want to see the limits of Forget, including backup retention and its People Mind scope, so that I do not assume it deletes my mail or every upstream contact.

  45. As the Owner, I want to create a contact from a locally remembered Person in a selected address book, so that confirmed details can become available on my devices.

  46. As the Owner, I want to preview selected fields and the destination before publication, so that private notes or historical addresses are not published accidentally.

  47. As the Owner, I want accepted enrichment to be published only through an explicit field selection, so that accepting a fact does not itself change Contacts.

  48. As the Owner, I want publication to detect concurrent provider changes, so that it cannot overwrite a contact edited on another device.

  49. As the Owner, I want retries after a publication timeout to reconcile with the provider, so that they do not create duplicate contacts.

  50. As the Owner, I want publication status and supported undo or compensation to be visible, so that I can recover without assuming external changes are atomically reversible.

  51. As the Owner, I want address-book duplicate cleanup to remain distinct from graph merges, so that merging People Mind identities does not silently delete provider cards.

  52. As the Owner, I want a follow-up task or calendar reference linked to a Person, so that scheduling remains in the system that already owns it.

  53. As the Owner, I want pronunciation and contact preferences recorded only when explicitly stated, so that personal context is useful and attributable.

  54. As the operator, I want migration and recovery tests for shared endpoints and lifecycle state, so that expanding the model does not corrupt existing identities or revive forgotten people.

Implementation Decisions

  • Shared mutation boundary. Extend the existing service architecture: MCP handlers validate and enqueue actions; the sync worker applies mutations to the graph and internal record store. Card submissions and conversational calls use the same commands, auth checks, action states and revisions. The UI has no separate database or write path.

  • Dependency ownership. #78 owns the common write foundation, merge/alias, link undo and action history. Consume that foundation rather than implementing a competing outbox. This epic covers the complete capability matrix and must be delivered through bounded implementation issues and explicit ADR decision work. Preserve existing issue ownership and the human decision step on #78.

  • Explicit delivery order. Use the four phases in Solution. Every capability in the coverage matrix is in scope even where it needs a later phase or an ADR amendment. The public MCP command boundary and small card integration checks remain common to all phases. Record per-capability delivery status rather than treating the first usable card as completion.

  • Existing terminology and constraints. Use Person, Handle, Organisation, Relation, Source, asserted field, derived field, Evidence, Card, Interaction and Tombstone as defined in the project glossary. Review rejection is not a Tombstone. Retain the closed Relation vocabulary and default-row field list.

  • Tool contracts. Preserve the planned people_note, people_link, people_forget, people_undo and people_actions responsibilities. Provide bounded commands for structured correction, Relations, review, Person creation, manual Interactions, Organisations, archive/restore, scoped removal and contact publication. Exact new names are implementation details to settle in each slice contract. Mutations identify target, expected revision and idempotency key; creation uses a stable request key before a Person id exists. Review chooses accept, edit or reject; undo references an action id; publication names destination and fields. No arbitrary database patch tool.

  • Durable review model. Suggestions have stable ids, Person identity, field/value, Source and derivation kind, evidence references, available evidence dates, observation time, revision and review state. Decisions retain author, action id, time and their original evidence references. New evidence for an already rejected equivalent claim may update provenance but must not reopen it automatically. A materially different normalized value is a separate suggestion. Undo or explicit reconsideration can reopen a rejected claim.

  • Attribution and promotion. Accepting or editing a derived suggestion creates an explicitly attributed assertion linked to the suggestion; it does not relabel the original extraction as a Source assertion or destroy its provenance. Preserve competing Source assertions. Owner/agent corrections are separate assertions; never rewrite imported source rows in place. Repeated imports must not remove those corrections.

  • Correction semantics. Correct/retract operations target owned assertions or explicit local overrides, not arbitrary source data. Store current versus superseded status and optional effective dates for local facts. Do not invent effective dates from extraction time; display observation time separately. A retracted local override exposes the underlying evidence again unless separately rejected. The current Card, resolution row and search/embedding projection must agree about active values.

  • Preferred contact details. Preference is separate from Handle ownership and identity resolution. Selecting an existing Handle as preferred does not remove historical Handles or publish them upstream. Newly extracted phone values remain field suggestions until an explicit identity-link operation validates Handle ownership; acceptance alone must not silently merge Persons.

  • Relations and notes. Use existing typed Relations with labels for distinctions such as contractor, and distinguish context notes from structured facts and Interaction metadata. Author and action provenance apply to each. Record explicitly stated pronunciation and preferences without deriving sensitive personal traits. Amend ADR 0005 for every new action kind, cap grouping and inverse before exposing it. Fact/note/review mutations may share the existing notes budget and identity/Relation mutations the links budget as proposed earlier; creation, Organisation, Interaction, lifecycle and publication operations need explicit bounded budgets too. No new action ships uncapped; rates for new classes are decision work within the relevant delivery slice.

  • Identity limits. The complete scope includes split, Handle reassignment, durable “different people” decisions and shared endpoints. Before the identity extension ships, preserve existing exact-Handle behaviour and refuse repairs that would immediately re-merge on unchanged Source input. The identity slice must amend ADR 0002 and the glossary to distinguish an endpoint from exclusive Person ownership, select a representation for shared family phones/role mailboxes, and migrate existing records. The required outcome is fixed: a known shared endpoint never silently collapses distinct Persons, exact lookup can expose ambiguity, and Interaction attribution remains unresolved or explicitly shared until supported by evidence or a decision. Do not duplicate an exclusive Handle across Persons as a workaround. Split must assign Handles, source links, Interactions, assertions and review decisions deliberately; ambiguous allocation is reviewed, not silently copied or discarded. Stable redirects, durable separation and undo must survive repeated sync and rebuild. The representation and migration are a bounded decision prerequisite, not grounds for omitting the capability.

  • Revision and retry semantics. Validate revision at apply time, not just enqueue time. An identical idempotency key and payload returns the same action; the same key with a different payload is refused. Restarting the worker cannot apply an action twice. A conflict changes nothing and returns enough information to refresh and review. Undo restores only the original action's affected state when compatible with current revisions; otherwise return a conflict rather than overwriting later work. Publish relevant change-feed entries and invalidate derived read projections on successful application.

  • MCP Apps prior art. Follow Mail Mind's FastMCP AppConfig pattern: a packaged ui:// resource with the MCP App MIME type, a model-visible entry tool with standalone text, and bounded structured app data through app-only read helpers. Do not parse display strings as the write model. Use the host bridge for tool calls. The app invokes the shared mutation tools, with server-side write-scope enforcement; app-only visibility is not authorisation.

  • Three focused views. Extend the same three views across phases. The Person Card supports facts, preferences, Relations, creation, manual Interactions, lifecycle actions and explicit contact publication. Enrichment review provides the persistent queue, comparison and Accept/Edit/Reject. Identity comparison handles merge/split/move/separation and shared-endpoint ambiguity; relevant Organisation corrections are accessible from Person context. A reusable destination-and-field preview precedes publication. Include empty, loading, read-only, queued, failed, partial external outcome and conflict states. Loading, refreshing or rendering never mutates knowledge.

  • Evidence boundary. Display references and known dates already available in People Mind. Mail text is not stored. Inline retrieval of mail bodies/signature text and browser access to Mail Mind are not introduced by this spec. Where evidence text is needed, the conversation can use the separately authorised Mail Mind tools. Missing evidence or dates are shown as unavailable rather than fabricated.

  • UI data handling. Treat names, notes, signature values and other Source content as untrusted text, never executable markup. Preserve the self-contained resource/no external asset pattern. Do not put bearer tokens in HTML or browser storage. The app uses the existing host-authenticated connection and cannot select a stronger credential. Continue to omit personal values from operational logs and action audit detail.

  • Destination boundary. Saving a local assertion changes People Mind only. Selective contact creation and write-back are included in phase 4, with an explicit destination/address book, selected fields, before/after preview, provider revision and separate write credential. Start with CardDAV. Existing ADR 0004 permits only its named fields and fill-empty rules on existing cards; accepted phone/URL publication, contact creation and any broader provider operation require a documented amendment in that slice before exposure. Do not imply that every accepted assertion is already publishable. No raw derived value is published automatically. Keep contact adapters separate from record stores such as Notion; this scope does not promise a new Google/Microsoft/Notion adapter. Report unsupported destinations or fields explicitly.

  • Persistence and erasure. Migrate durable review decisions, fact validity, local Persons, manual Interactions, Organisation corrections, lifecycle state and publication receipts alongside revision metadata. Preserve local state through Source re-sync and Mail peer rebuild and account for merge/split/redirects. Extend Forget to erase all new person-associated values, including undo payloads, review records, private notes and publication payloads, retaining only permitted hashes and audit residue. Mount public people_forget as part of the lifecycle phase after #55 and existing physical-erasure/restore gates; require confirm=true, provide no undo and keep backup-residue disclosure. Forget must not silently erase another Person sharing an endpoint: the identity/erasure decision must define Person-specific suppression and shared-endpoint handling before those features are combined.

  • Standalone Persons. Allow locally asserted Persons with no Handle or Source link; a local record is sufficient to retain them. Use stable opaque ids and ordinary duplicate Candidates rather than name-only auto-merge. An added Handle goes through the same ownership/conflict rules as aliasing. Undoing creation must not delete subsequent unrelated assertions or Source contributions.

  • Manual Interactions. Capture the event date/time, channel, participants, applicable direction and reference with an author and action id. Store any optional note separately and link it to the event. Amend ADR 0004's channel/direction contract for calls, meetings and other manual channels before exposing them; do not invent an inbound/outbound direction for a meeting. Changes and retractions update recent/last-interaction projections. Imported mail Interactions are not editable through the manual-event command.

  • Organisation maintenance. Support explicit name/alias/domain corrections and dated Person-to-Organisation Relations. Preserve Source and derived claims alongside asserted corrections, and suppress rejected domain-derived claims across refresh. Domain assignment collisions must be reviewed; sharing a corporate domain never means that two Persons are the same. Changes refresh affected derived fields, search and related-Person views without rewriting history. Reuse the existing Relation vocabulary with labels until an explicit amendment changes it.

  • Lifecycle semantics. Archive is reversible visibility state: omit archived Persons from ordinary discovery and suggestions by default, preserve history, allow explicit archived lookup, and retain archive state through sync. Scoped removal identifies a particular local assertion, manual event or local-only Person and its impact; it creates no Forget Tombstone and states that Source data may return. Refuse whole-Person local removal when live Source or dependent records make that promise false, offering archive or the explicit Forget path instead. Upstream contact deletion is never implied. Forget is the distinct confirmed irreversible operation under ADR 0003. Record lifecycle vocabulary and feed semantics before implementation.

  • Publication reliability. Preview is read-only and never queues a write. Apply revalidates provider revision and allowed fields; concurrent changes produce a conflict requiring a refreshed preview. Persist stable provider identity, destination and request/action linkage so an uncertain response is reconciled before retrying creation. Local acceptance can succeed while publication fails; expose both outcomes. Provide compensation only when the adapter can safely restore the specific changed fields without overwriting later provider edits. Never advertise ordinary local undo as proof that an external side effect was reversed.

  • Address-book duplicates and native clients. People Mind owns identity decisions and can expose evidence for a native review surface. Actual duplicate-card cleanup in an address book is a separate provider operation; a graph merge neither deletes nor rewrites provider cards. iOS remains a suitable UI for that cleanup, but building a new native app is not necessary to complete these server capabilities. Existing/future clients use the same domain commands.

  • Follow-up handoff. A Person may hold a reference to a task/calendar item created through the existing scheduling service. People Mind does not send reminders, run a scheduler or claim creation of an external task merely because a reference was attached. Reference writes use ordinary provenance and undo semantics.

Testing Decisions

The Owner confirmed the boundary in this conversation: public MCP behaviour with the sync worker and a temporary store, plus a small card integration check. Test user-visible outcomes rather than private methods or mirroring implementation details.

  • Primary seam and prior art. Extend People Mind's existing authenticated localhost Streamable HTTP tests and temporary-store fixtures. Drive read and write calls through MCP, run the real worker against fixture Sources, then read Cards, actions and feeds through MCP. Reuse existing sync, enrichment, identity and Mail peer recovery fixtures for repeat-input and rebuild cases.

  • Review acceptance. Accept one suggestion, edit another and reject a third; the resulting Card shows the correct assertions and provenance. Repeat sync, restart and rebuild: accepted assertions survive and the rejected equivalent value stays suppressed. A different value remains reviewable. Reconsideration/undo restores the expected review state.

  • Correction acceptance. A local correction survives a disagreeing Source refresh without deleting the Source assertion. A superseded title is absent from current presentation/search but remains attributable in history. Preferred Handles change recommendation without breaking identity lookup. Relations can be added and retracted without manufacturing Tags or duplicate edges.

  • Identity acceptance. Reuse #78's alias/merge/undo cases. Verify redirects and correct ownership of review records. Split and Handle moves survive unchanged Source input, repeated sync and rebuild. Before the shared-endpoint extension, conflicting operations refuse atomically; after it, two Persons sharing a family phone or role mailbox remain distinct, lookup exposes ambiguity, and Interactions are not arbitrarily assigned. Verify “different people” survives imports, existing exclusive-Handle matches still resolve correctly, migrations preserve ids, and undo does not corrupt later identity decisions.

  • Durability acceptance. Simulate a timeout, identical retry, changed-payload retry, worker restart and concurrent stale-card submission. Observe one action and one application, no duplicate cap charge, explicit conflicts and consistent feed/read results. Undo preserves unrelated later changes and refuses incompatible later changes.

  • Auth and limits. With no write token configured, mutation tools are unavailable. A read token cannot enqueue mutations via tools or the card bridge. New actions are capped, attributed and audited without personal values in detail. Loading a view never queues an action.

  • Card integration and prior art. Reuse Mail Mind's triage-panel tests for tool/resource metadata, MIME type, structured pagination, text fallback, auth and untrusted-content rendering. Add a host-bridge integration check that rendering a suggestion and clicking Accept sends exactly the intended shared command with target, revision and idempotency key, then reflects queued/applied/conflict results. Verify HTML-looking values render as text and no credential or outside asset is loaded. No broad browser test framework is required for this slice.

  • Host acceptance. Reuse the existing Mail Mind integration as the baseline. Record client identity/version/date, actual rendering, button-to-tool round trip, write permission and text fallback for each tested host. Do not infer rendering from an advertised extension alone. Validate the People Mind write interaction on a rendering host; maintain explicit per-host status for grok.com, Grok Bot and Claude. An unsupported host must pass the conversational fallback.

  • Regression and completion. Existing read-tool contracts and token budgets remain valid except explicitly documented contract amendments needed for lifecycle or shared-endpoint semantics. Run existing and added migrations against representative old stores. New person-associated data passes Forget erasure tests. Run the required repository checks and relevant integration cases for each slice. Report host checks not performed rather than marking them passed. The epic is complete only when every capability in the coverage matrix has passed its acceptance checks; dependent decisions and implementation issues remain visible until then.

  • Person creation. Create a Person without a Handle, retry the request and restart; only one stable Person exists. Add an exclusive Handle and ingest a matching Source record; they resolve as designed without losing local facts. A same-name record is a Candidate, not an automatic merge. Creation undo conflicts if it would erase later contributions.

  • Manual Interactions. Add, correct and retract a meeting/call through MCP and inspect recent/last-interaction results. Preserve actual event date, author and separate note references; do not place note text in Interaction rows. Retry creates one event. Rebuilding mail state leaves manual events intact and manual mutation cannot rewrite an imported mail event.

  • Organisations. Correct a name/alias and domain association, repeat Source sync, and inspect related people and search. Rejected domain claims stay rejected, valid aliases still resolve, colliding domain assignments require a decision, and employee/contractor labels and dates remain attributable. Organisation correction never merges Persons merely sharing its domain.

  • Archive and scoped removal. Archive removes a Person from default discovery and suggestions while explicit archived lookup works; restore returns them and sync preserves the state. Scoped removal reports its exact target, protects unrelated/live Source data, and is distinguishable from Forget. Verify expected re-import behaviour without creating suppression Tombstones.

  • Forget and restore. Require confirmation; exercise the full erasure path, #55's restore-before-Forget recovery and subsequent re-sync. Verify notes, review records, event metadata, publication payloads and undo data cannot resurrect forgotten values. Verify a shared endpoint does not erase the other Person and does not recreate the forgotten one. Assert retained residue is restricted to the accepted hashes/audit data and backup limits are accurately documented.

  • Contact publication. Use the existing CardDAV/Radicale integration seam for preview, create, permitted fill-empty updates, stable provider linkage, re-sync and conflict handling. Verify no publication happens on Accept, unselected/private fields stay local, prohibited fields are refused, and existing non-empty fields remain untouched under current policy. Simulate provider edits between preview/apply, uncertain success followed by retry, unavailable provider, and local success with external failure. Verify retries do not create duplicate contacts, provider receipts survive restart, graph merges do not delete provider cards, and compensation preserves later upstream edits. Each added adapter must pass the same observable contract.

  • Expanded card and handoff checks. Through the small host-bridge seam, verify Person creation, event entry, archive/restore and publication use the same commands as text calls and show explicit destination/status. A card reopening after a lifecycle or identity change refreshes rather than writing stale state. Linking an external task reference never schedules or sends anything from People Mind.

Out of Scope

  • Building a new native iOS application or a native address-book duplicate-management UI. The backend capability and ownership boundaries are in scope.
  • Automatically deleting duplicate provider cards as a side effect of merging People Mind Persons.
  • Unattended bulk merges, blanket acceptance of suggestions, or automatic publication of derived claims.
  • New LLM enrichment, model-written context summaries, off-host inference, or storing mail/signature text.
  • Running a reminder scheduler or sending follow-ups; linking to existing task/calendar services is in scope.
  • New Google/Microsoft/Notion adapters solely to achieve provider parity. Selective publication starts with CardDAV and documents supported destinations.
  • Silently changing accepted ADRs, bypassing #55, or claiming that Forget erases Mail Mind or all upstream systems.
  • Production deployment or provisioning live credentials as part of writing this specification.

Further Notes

All recommended capabilities are now requirements of this full-scope epic, including those previously listed as follow-on work. Phase boundaries set delivery order rather than excluding capabilities. Use bounded child implementation/decision issues for execution; this epic is not dispatchable as a single build. Existing issues #78 and #55 retain their scope and decision ownership. Creating the child issue breakdown is separate tracking work; this update does not claim that breakdown has already been filed.

Existing authority: ADR 0002 governs identity and typed Relations; ADR 0003 governs asserted/derived provenance, default rows and erasure; ADR 0004 governs Sources, record stores and publication; ADR 0005 governs reversible writes. This spec requires the extensions named above and identifies the ADR decision/amendment work needed before those slices ship. It does not itself settle the shared-endpoint representation, expanded publication field policy, new channel vocabulary or new action caps. Those are tracked prerequisites within the full scope, not exclusions. The internal record store is the first target; publication to a contact provider and selecting an external record store are different capabilities.

Mail Mind prior art: triage panel issue #76, its implemented triage resource, app-only rows tool and panel tests. The Owner reports that this integration has already been tested with Grok Bot. The repository's dated 2026-11-01 matrix specifically records grok.com rendering, Grok Bot advertising Apps but returning text only, and Claude not tested in that repo. Preserve both facts as context and update the host matrix from the People Mind acceptance run; do not repeat protocol discovery as though no integration existed or assume all Grok surfaces behave alike.

This specification was synthesized from the 2026-11-05 scoping conversation using the to-spec skill, including the Owner's explicit agreement to the MCP-plus-card test boundary. At the Owner's request it now includes the full recommended capability array, rather than only the initial release. It is a reviewable scope and acceptance specification, not evidence of implementation or deployment.

Dependencies and decision gates

  • #78 — shared write-token/outbox/action/undo foundation and merge/alias operations; retains its existing human decision step.
  • #55 — restore-safe Tombstones, required for the public Forget slice, not for other write/review delivery.
  • Identity ADR/glossary amendment — shared endpoints, durable separation, Interaction attribution, migration and Forget behaviour for shared endpoints.
  • Sources/data-boundary amendments — manual Interaction channels/direction, lifecycle semantics, contact creation and expanded permitted publication fields.
  • Reversible-write amendment — complete action inventory, budgets, inverses and external compensation boundaries.

These gates apply to their respective implementation slices. They do not block independent phases or permit a partial implementation to close the full-scope epic.

Sub-issues

Approved ticket breakdown. Each child carries its acceptance criteria, role label and native blocking links.

  • #97 — Decide the expanded write-action contract
  • #98 — Accept or edit an enrichment suggestion from an MCP card
  • #131 — Review Suggestions in a Person Card App view
  • #99 — Reject and reconsider suggestions in a persistent review queue
  • #100 — Write context notes and stated personal preferences
  • #101 — Correct current facts and preferred contact details
  • #102 — Edit typed relationships from a Person Card
  • #103 — Create a Person before a contact or email exists
  • #104 — Decide the manual Interaction contract
  • #105 — Record and correct calls and meetings
  • #106 — Correct Organisations, aliases and domain associations
  • #107 — Compare identities and apply merge or alias from a card
  • #108 — Decide durable separation and shared-endpoint identity
  • #109 — Split mistaken identities and move Handles durably
  • #110 — Represent shared phones and mailboxes without merging people
  • #111 — Decide archive, scoped removal and lifecycle visibility
  • #112 — Archive and restore Persons without losing history
  • #113 — Remove selected local data with an explicit scope
  • #114 — Expose restore-safe Forget across the expanded people model
  • #115 — Decide contact creation and permitted publication fields
  • #116 — Preview and publish permitted fields to an existing CardDAV contact
  • #117 — Create a provider contact from a locally remembered Person
  • #118 — Publish accepted phone and URL enrichment selectively
  • #119 — Link an external follow-up task or calendar item to a Person
  • #120 — Verify the first correction card in Grok and Claude hosts

Existing dependencies reused: #78 (write foundation) and #55 (restore-safe Tombstones).

## Problem Statement People Mind joins contact Sources and mail evidence into Persons, but the Owner cannot yet correct the resulting knowledge through its public tools. A wrong title, obsolete address, missing relationship or mistaken identity persists until an upstream contact is changed. Deterministic signature enrichment already extracts phones, URLs and simple titles, but there is no durable accept/edit/reject workflow. Re-deriving a rejected claim or undoing a correction during sync would make this knowledge unreliable. Corrections also need a usable interface. Conversational tools, interactive MCP Apps in supporting hosts, and a future iOS interface must make the same changes with the same provenance, conflict handling and undo semantics. Editing People Mind's knowledge and publishing contact changes are distinct actions. ## Solution Deliver a shared correction and enrichment-review capability, exposed through MCP tools and three focused interactive views: Person card, enrichment review and identity comparison. Begin with one complete workflow: review suggested improvements for a Person, compare current and proposed values, inspect evidence references and dates, accept/edit/reject, observe completion, and undo where supported. Keep review decisions in People Mind so they survive sessions, clients, service restarts and Source re-sync. Reuse the write-token, outbox, worker, audit and undo infrastructure tracked in #78. Reuse Mail Mind's implemented MCP Apps pattern and its existing host-test evidence rather than starting another UI architecture. This spec covers the full recommended capability set. Later phases are in scope, with user stories and acceptance criteria; the first enrichment-review slice is an implementation starting point, not the completion boundary. The full scope includes Person creation, manual Interactions, Organisation correction, identity repair including shared endpoints, archive/remove/Forget, and selective contact creation and publication. Follow-up scheduling stays with a linked task/calendar service. ### Capability coverage | Capability | Required outcome | Primary surface / ownership | | --- | --- | --- | | Structured facts and corrections | Add, amend, retract, choose preferred values and preserve provenance | People Mind tools and Person Card | | Enrichment review | Accept/edit/reject signature-derived suggestions, with evidence and persistent decisions | People Mind review queue and MCP App | | Durable negative knowledge | Suppress rejected claims, rejected identity matches and obsolete contact recommendations across sync | People Mind | | Facts over time | Supersede roles, employers and contact details without losing attributable history | People Mind | | Relationships, notes and preferences | Edit typed Relations and explicitly stated context, pronunciation and contact preferences | People Mind tools and Person Card | | Identity and duplicates | Compare, merge, alias, split, move Handles and keep different Persons separate | People Mind graph; iOS is a suitable upstream address-book review surface | | Shared endpoints | Represent family phones and role mailboxes without collapsing distinct Persons | People Mind, following an identity ADR amendment | | Person creation | Remember a new Person before any mail or address-book record exists; optionally publish a contact | People Mind, then explicit publication | | Manual Interactions | Record calls, meetings and other contact metadata, with separate optional notes | People Mind | | Organisation correction | Correct names, aliases and domain associations; express employee/contractor relationships | People Mind | | Lifecycle | Reversible archive, scoped removal, and irreversible restore-safe Forget as distinct operations | People Mind; upstream deletion requires its own explicit action | | Selective contact publication | Preview destination and field changes; create or enrich a contact through supported adapters | People Mind publication worker / contact provider | | Interactive MCP views | Person Card, enrichment review and identity comparison, with write status and conflicts | Mail Mind MCP Apps pattern; Grok/Claude host matrix | | Reliable writes | Attribution, permissions, caps, idempotency, audit, stale-view checks and safe undo | Shared server-side commands | | Follow-up handoff | Associate an external task/calendar reference with a Person without owning scheduling | Existing task/calendar service | ### Delivery phases 1. **Foundation and first usable review.** Reuse #78's write foundation; ship single-Person enrichment Accept/Edit/Reject with durable decisions, provenance, action history, undo, text fallback and a tested MCP App interaction. 2. **Everyday people maintenance.** Expand to structured facts, temporal validity, preferred Handles, notes/preferences, Relations, the persistent review queue, standalone Person creation, manual Interactions and Organisation corrections. 3. **Identity and lifecycle.** Deliver comparison, merge/alias/split/Handle moves and durable separation, then shared-endpoint support after the identity decision. Add archive and scoped removal. Mount Forget only after #55 and the existing erasure requirements are satisfied. 4. **Selective publication.** Add destination-aware preview/apply/status and contact creation/write-back through supported adapters. Start with CardDAV; keep adapter coverage explicit rather than claiming every provider. Reuse the same correction data and commands from all clients. Independent work can proceed across phases. Completion of this epic requires the full capability coverage above and linked implementation/decision work for every remaining item; completing phase 1 does not complete this spec. ## User Stories 1. As the Owner, I want to open a Person's Card from a conversation, so that I can inspect and correct the Person I am discussing. 2. As the Owner, I want asserted and derived fields to be distinguishable, so that a signature extraction does not look like a fact I confirmed. 3. As the Owner, I want each suggestion to show its proposed value, current value, Source, evidence references, available dates and confidence, so that I can judge it. 4. As the Owner, I want to accept one suggestion without accepting the others, so that a correct phone does not also approve a wrong title. 5. As the Owner, I want to edit a suggestion before accepting it, so that I can correct a partly useful extraction. 6. As the Owner, I want to reject a suggestion permanently until I reconsider it, so that subsequent syncs and repeated signatures do not offer the same claim again. 7. As the Owner, I want to inspect and reverse my rejection, so that a mistaken dismissal can be corrected. 8. As the Owner, I want genuinely different proposed values to remain reviewable, so that rejecting one title does not suppress all future titles. 9. As the Owner, I want a review queue that persists across clients and conversations, so that unfinished work is not lost. 10. As the Owner, I want to filter and page that queue by Person and review state, so that I can review it in manageable portions. 11. As the Owner, I want to add, correct and retract my own structured facts, so that useful knowledge need not originate in a contact Source. 12. As the Owner, I want to select preferred contact details separately from historical identity Handles, so that an obsolete email can still resolve a Person without being recommended for contact. 13. As the Owner, I want superseded facts to remain attributable while no longer being presented as current, so that a former employer or title does not mislead me. 14. As the Owner, I want to add and correct context notes and explicitly stated preferences, so that People Mind remembers how I know someone and how they prefer to be contacted. 15. As the Owner, I want to add and remove typed Relations, so that partners, colleagues, clients and providers are represented explicitly. 16. As the Owner, I want to compare two Persons with their Handles, facts and provenance, so that I can decide whether they are the same person. 17. As the Owner, I want to merge Persons and attach an old Handle through the existing link workflow, so that I need not put obsolete addresses on an address-book card. 18. As the Owner, I want to undo a mistaken merge, so that identity correction remains recoverable. 19. As the Owner, I want nonmatching Persons marked as different to stop recurring as merge suggestions, so that rejected identity suggestions stay rejected. 20. As the Owner, I want a split or Handle move that conflicts with the current identity rules to explain the conflict, so that the system cannot claim to repair an identity only to merge it again on sync. 21. As the Owner, I want to see queued, applied, failed or conflicted action status, so that a click is not mistaken for a completed correction. 22. As the Owner, I want an old card to detect intervening edits before saving, so that it cannot overwrite newer knowledge. 23. As the Owner, I want undo to preserve unrelated later edits, so that recovery does not erase other work. 24. As the Owner, I want “Save in People Mind” to describe the actual destination, so that I know my device contacts have not changed. 25. As an authorised agent, I want the same correction operations through MCP, so that conversational requests have the same semantics as card clicks. 26. As an authorised agent, I want retries to return the original action, so that a timeout cannot duplicate a mutation or consume its daily cap twice. 27. As a read-only client, I want to inspect Cards and suggestions without being able to mutate them, so that the interface respects my credential. 28. As a user of a host that does not render MCP Apps, I want complete text results and callable operations, so that the feature remains usable. 29. As the operator, I want attributed action history without personal field values in the audit detail, so that I can diagnose changes within the existing data boundary. 30. As the operator, I want the existing Forget path to cover newly introduced person-associated review data when Forget is eventually exposed, so that this feature does not create an erasure gap. 31. As the Owner, I want to create a Person with a name and context even before I know a Handle, so that I can remember someone I have just met. 32. As the Owner, I want later mail or contact records to resolve to an existing locally created Person through normal identity review, so that creating a Person does not guarantee a lasting duplicate. 33. As the Owner, I want to record a call, meeting or other Interaction with its actual date and channel, so that recent-contact context includes activity outside mail. 34. As the Owner, I want to correct or remove a manual Interaction and attach an optional separate note, so that a factual timeline does not become an unstructured conversation archive. 35. As the Owner, I want to correct an Organisation's name, aliases and domain associations, so that People Mind groups people under the right organisation. 36. As the Owner, I want to distinguish an employee from a contractor using an attributed Relation and dates, so that sharing an organisation does not overstate their role. 37. As the Owner, I want an incorrect domain association to stop reappearing on sync, so that Organisation correction is durable too. 38. As the Owner, I want to split a mistaken identity and move selected Handles and associated Interactions, so that two people remain separate after subsequent syncs. 39. As the Owner, I want a family phone or role mailbox represented as shared, so that an exact endpoint match does not merge unrelated Persons. 40. As the Owner, I want identity ambiguity around a shared endpoint to be visible, so that the service does not arbitrarily attribute an Interaction or return one Person as certain. 41. As the Owner, I want to archive and restore an old contact, so that everyday results stay useful without destroying history. 42. As the Owner, I want a removal action to identify exactly what it removes and whether sync may restore it, so that deletion is not confused with archive or Forget. 43. As the Owner, I want to Forget a Person with explicit confirmation, so that their stored personal data is erased and matching Handles do not recreate them after sync or restore. 44. As the Owner, I want to see the limits of Forget, including backup retention and its People Mind scope, so that I do not assume it deletes my mail or every upstream contact. 45. As the Owner, I want to create a contact from a locally remembered Person in a selected address book, so that confirmed details can become available on my devices. 46. As the Owner, I want to preview selected fields and the destination before publication, so that private notes or historical addresses are not published accidentally. 47. As the Owner, I want accepted enrichment to be published only through an explicit field selection, so that accepting a fact does not itself change Contacts. 48. As the Owner, I want publication to detect concurrent provider changes, so that it cannot overwrite a contact edited on another device. 49. As the Owner, I want retries after a publication timeout to reconcile with the provider, so that they do not create duplicate contacts. 50. As the Owner, I want publication status and supported undo or compensation to be visible, so that I can recover without assuming external changes are atomically reversible. 51. As the Owner, I want address-book duplicate cleanup to remain distinct from graph merges, so that merging People Mind identities does not silently delete provider cards. 52. As the Owner, I want a follow-up task or calendar reference linked to a Person, so that scheduling remains in the system that already owns it. 53. As the Owner, I want pronunciation and contact preferences recorded only when explicitly stated, so that personal context is useful and attributable. 54. As the operator, I want migration and recovery tests for shared endpoints and lifecycle state, so that expanding the model does not corrupt existing identities or revive forgotten people. ## Implementation Decisions - **Shared mutation boundary.** Extend the existing service architecture: MCP handlers validate and enqueue actions; the sync worker applies mutations to the graph and internal record store. Card submissions and conversational calls use the same commands, auth checks, action states and revisions. The UI has no separate database or write path. - **Dependency ownership.** #78 owns the common write foundation, merge/alias, link undo and action history. Consume that foundation rather than implementing a competing outbox. This epic covers the complete capability matrix and must be delivered through bounded implementation issues and explicit ADR decision work. Preserve existing issue ownership and the human decision step on #78. - **Explicit delivery order.** Use the four phases in Solution. Every capability in the coverage matrix is in scope even where it needs a later phase or an ADR amendment. The public MCP command boundary and small card integration checks remain common to all phases. Record per-capability delivery status rather than treating the first usable card as completion. - **Existing terminology and constraints.** Use Person, Handle, Organisation, Relation, Source, asserted field, derived field, Evidence, Card, Interaction and Tombstone as defined in the project glossary. Review rejection is not a Tombstone. Retain the closed Relation vocabulary and default-row field list. - **Tool contracts.** Preserve the planned `people_note`, `people_link`, `people_forget`, `people_undo` and `people_actions` responsibilities. Provide bounded commands for structured correction, Relations, review, Person creation, manual Interactions, Organisations, archive/restore, scoped removal and contact publication. Exact new names are implementation details to settle in each slice contract. Mutations identify target, expected revision and idempotency key; creation uses a stable request key before a Person id exists. Review chooses accept, edit or reject; undo references an action id; publication names destination and fields. No arbitrary database patch tool. - **Durable review model.** Suggestions have stable ids, Person identity, field/value, Source and derivation kind, evidence references, available evidence dates, observation time, revision and review state. Decisions retain author, action id, time and their original evidence references. New evidence for an already rejected equivalent claim may update provenance but must not reopen it automatically. A materially different normalized value is a separate suggestion. Undo or explicit reconsideration can reopen a rejected claim. - **Attribution and promotion.** Accepting or editing a derived suggestion creates an explicitly attributed assertion linked to the suggestion; it does not relabel the original extraction as a Source assertion or destroy its provenance. Preserve competing Source assertions. Owner/agent corrections are separate assertions; never rewrite imported source rows in place. Repeated imports must not remove those corrections. - **Correction semantics.** Correct/retract operations target owned assertions or explicit local overrides, not arbitrary source data. Store current versus superseded status and optional effective dates for local facts. Do not invent effective dates from extraction time; display observation time separately. A retracted local override exposes the underlying evidence again unless separately rejected. The current Card, resolution row and search/embedding projection must agree about active values. - **Preferred contact details.** Preference is separate from Handle ownership and identity resolution. Selecting an existing Handle as preferred does not remove historical Handles or publish them upstream. Newly extracted phone values remain field suggestions until an explicit identity-link operation validates Handle ownership; acceptance alone must not silently merge Persons. - **Relations and notes.** Use existing typed Relations with labels for distinctions such as contractor, and distinguish context notes from structured facts and Interaction metadata. Author and action provenance apply to each. Record explicitly stated pronunciation and preferences without deriving sensitive personal traits. Amend ADR 0005 for every new action kind, cap grouping and inverse before exposing it. Fact/note/review mutations may share the existing notes budget and identity/Relation mutations the links budget as proposed earlier; creation, Organisation, Interaction, lifecycle and publication operations need explicit bounded budgets too. No new action ships uncapped; rates for new classes are decision work within the relevant delivery slice. - **Identity limits.** The complete scope includes split, Handle reassignment, durable “different people” decisions and shared endpoints. Before the identity extension ships, preserve existing exact-Handle behaviour and refuse repairs that would immediately re-merge on unchanged Source input. The identity slice must amend ADR 0002 and the glossary to distinguish an endpoint from exclusive Person ownership, select a representation for shared family phones/role mailboxes, and migrate existing records. The required outcome is fixed: a known shared endpoint never silently collapses distinct Persons, exact lookup can expose ambiguity, and Interaction attribution remains unresolved or explicitly shared until supported by evidence or a decision. Do not duplicate an exclusive Handle across Persons as a workaround. Split must assign Handles, source links, Interactions, assertions and review decisions deliberately; ambiguous allocation is reviewed, not silently copied or discarded. Stable redirects, durable separation and undo must survive repeated sync and rebuild. The representation and migration are a bounded decision prerequisite, not grounds for omitting the capability. - **Revision and retry semantics.** Validate revision at apply time, not just enqueue time. An identical idempotency key and payload returns the same action; the same key with a different payload is refused. Restarting the worker cannot apply an action twice. A conflict changes nothing and returns enough information to refresh and review. Undo restores only the original action's affected state when compatible with current revisions; otherwise return a conflict rather than overwriting later work. Publish relevant change-feed entries and invalidate derived read projections on successful application. - **MCP Apps prior art.** Follow Mail Mind's FastMCP AppConfig pattern: a packaged `ui://` resource with the MCP App MIME type, a model-visible entry tool with standalone text, and bounded structured app data through app-only read helpers. Do not parse display strings as the write model. Use the host bridge for tool calls. The app invokes the shared mutation tools, with server-side write-scope enforcement; app-only visibility is not authorisation. - **Three focused views.** Extend the same three views across phases. The Person Card supports facts, preferences, Relations, creation, manual Interactions, lifecycle actions and explicit contact publication. Enrichment review provides the persistent queue, comparison and Accept/Edit/Reject. Identity comparison handles merge/split/move/separation and shared-endpoint ambiguity; relevant Organisation corrections are accessible from Person context. A reusable destination-and-field preview precedes publication. Include empty, loading, read-only, queued, failed, partial external outcome and conflict states. Loading, refreshing or rendering never mutates knowledge. - **Evidence boundary.** Display references and known dates already available in People Mind. Mail text is not stored. Inline retrieval of mail bodies/signature text and browser access to Mail Mind are not introduced by this spec. Where evidence text is needed, the conversation can use the separately authorised Mail Mind tools. Missing evidence or dates are shown as unavailable rather than fabricated. - **UI data handling.** Treat names, notes, signature values and other Source content as untrusted text, never executable markup. Preserve the self-contained resource/no external asset pattern. Do not put bearer tokens in HTML or browser storage. The app uses the existing host-authenticated connection and cannot select a stronger credential. Continue to omit personal values from operational logs and action audit detail. - **Destination boundary.** Saving a local assertion changes People Mind only. Selective contact creation and write-back are included in phase 4, with an explicit destination/address book, selected fields, before/after preview, provider revision and separate write credential. Start with CardDAV. Existing ADR 0004 permits only its named fields and fill-empty rules on existing cards; accepted phone/URL publication, contact creation and any broader provider operation require a documented amendment in that slice before exposure. Do not imply that every accepted assertion is already publishable. No raw derived value is published automatically. Keep contact adapters separate from record stores such as Notion; this scope does not promise a new Google/Microsoft/Notion adapter. Report unsupported destinations or fields explicitly. - **Persistence and erasure.** Migrate durable review decisions, fact validity, local Persons, manual Interactions, Organisation corrections, lifecycle state and publication receipts alongside revision metadata. Preserve local state through Source re-sync and Mail peer rebuild and account for merge/split/redirects. Extend Forget to erase all new person-associated values, including undo payloads, review records, private notes and publication payloads, retaining only permitted hashes and audit residue. Mount public `people_forget` as part of the lifecycle phase after #55 and existing physical-erasure/restore gates; require `confirm=true`, provide no undo and keep backup-residue disclosure. Forget must not silently erase another Person sharing an endpoint: the identity/erasure decision must define Person-specific suppression and shared-endpoint handling before those features are combined. - **Standalone Persons.** Allow locally asserted Persons with no Handle or Source link; a local record is sufficient to retain them. Use stable opaque ids and ordinary duplicate Candidates rather than name-only auto-merge. An added Handle goes through the same ownership/conflict rules as aliasing. Undoing creation must not delete subsequent unrelated assertions or Source contributions. - **Manual Interactions.** Capture the event date/time, channel, participants, applicable direction and reference with an author and action id. Store any optional note separately and link it to the event. Amend ADR 0004's channel/direction contract for calls, meetings and other manual channels before exposing them; do not invent an inbound/outbound direction for a meeting. Changes and retractions update recent/last-interaction projections. Imported mail Interactions are not editable through the manual-event command. - **Organisation maintenance.** Support explicit name/alias/domain corrections and dated Person-to-Organisation Relations. Preserve Source and derived claims alongside asserted corrections, and suppress rejected domain-derived claims across refresh. Domain assignment collisions must be reviewed; sharing a corporate domain never means that two Persons are the same. Changes refresh affected derived fields, search and related-Person views without rewriting history. Reuse the existing Relation vocabulary with labels until an explicit amendment changes it. - **Lifecycle semantics.** Archive is reversible visibility state: omit archived Persons from ordinary discovery and suggestions by default, preserve history, allow explicit archived lookup, and retain archive state through sync. Scoped removal identifies a particular local assertion, manual event or local-only Person and its impact; it creates no Forget Tombstone and states that Source data may return. Refuse whole-Person local removal when live Source or dependent records make that promise false, offering archive or the explicit Forget path instead. Upstream contact deletion is never implied. Forget is the distinct confirmed irreversible operation under ADR 0003. Record lifecycle vocabulary and feed semantics before implementation. - **Publication reliability.** Preview is read-only and never queues a write. Apply revalidates provider revision and allowed fields; concurrent changes produce a conflict requiring a refreshed preview. Persist stable provider identity, destination and request/action linkage so an uncertain response is reconciled before retrying creation. Local acceptance can succeed while publication fails; expose both outcomes. Provide compensation only when the adapter can safely restore the specific changed fields without overwriting later provider edits. Never advertise ordinary local undo as proof that an external side effect was reversed. - **Address-book duplicates and native clients.** People Mind owns identity decisions and can expose evidence for a native review surface. Actual duplicate-card cleanup in an address book is a separate provider operation; a graph merge neither deletes nor rewrites provider cards. iOS remains a suitable UI for that cleanup, but building a new native app is not necessary to complete these server capabilities. Existing/future clients use the same domain commands. - **Follow-up handoff.** A Person may hold a reference to a task/calendar item created through the existing scheduling service. People Mind does not send reminders, run a scheduler or claim creation of an external task merely because a reference was attached. Reference writes use ordinary provenance and undo semantics. ## Testing Decisions The Owner confirmed the boundary in this conversation: public MCP behaviour with the sync worker and a temporary store, plus a small card integration check. Test user-visible outcomes rather than private methods or mirroring implementation details. - **Primary seam and prior art.** Extend People Mind's existing authenticated localhost Streamable HTTP tests and temporary-store fixtures. Drive read and write calls through MCP, run the real worker against fixture Sources, then read Cards, actions and feeds through MCP. Reuse existing sync, enrichment, identity and Mail peer recovery fixtures for repeat-input and rebuild cases. - **Review acceptance.** Accept one suggestion, edit another and reject a third; the resulting Card shows the correct assertions and provenance. Repeat sync, restart and rebuild: accepted assertions survive and the rejected equivalent value stays suppressed. A different value remains reviewable. Reconsideration/undo restores the expected review state. - **Correction acceptance.** A local correction survives a disagreeing Source refresh without deleting the Source assertion. A superseded title is absent from current presentation/search but remains attributable in history. Preferred Handles change recommendation without breaking identity lookup. Relations can be added and retracted without manufacturing Tags or duplicate edges. - **Identity acceptance.** Reuse #78's alias/merge/undo cases. Verify redirects and correct ownership of review records. Split and Handle moves survive unchanged Source input, repeated sync and rebuild. Before the shared-endpoint extension, conflicting operations refuse atomically; after it, two Persons sharing a family phone or role mailbox remain distinct, lookup exposes ambiguity, and Interactions are not arbitrarily assigned. Verify “different people” survives imports, existing exclusive-Handle matches still resolve correctly, migrations preserve ids, and undo does not corrupt later identity decisions. - **Durability acceptance.** Simulate a timeout, identical retry, changed-payload retry, worker restart and concurrent stale-card submission. Observe one action and one application, no duplicate cap charge, explicit conflicts and consistent feed/read results. Undo preserves unrelated later changes and refuses incompatible later changes. - **Auth and limits.** With no write token configured, mutation tools are unavailable. A read token cannot enqueue mutations via tools or the card bridge. New actions are capped, attributed and audited without personal values in detail. Loading a view never queues an action. - **Card integration and prior art.** Reuse Mail Mind's triage-panel tests for tool/resource metadata, MIME type, structured pagination, text fallback, auth and untrusted-content rendering. Add a host-bridge integration check that rendering a suggestion and clicking Accept sends exactly the intended shared command with target, revision and idempotency key, then reflects queued/applied/conflict results. Verify HTML-looking values render as text and no credential or outside asset is loaded. No broad browser test framework is required for this slice. - **Host acceptance.** Reuse the existing Mail Mind integration as the baseline. Record client identity/version/date, actual rendering, button-to-tool round trip, write permission and text fallback for each tested host. Do not infer rendering from an advertised extension alone. Validate the People Mind write interaction on a rendering host; maintain explicit per-host status for grok.com, Grok Bot and Claude. An unsupported host must pass the conversational fallback. - **Regression and completion.** Existing read-tool contracts and token budgets remain valid except explicitly documented contract amendments needed for lifecycle or shared-endpoint semantics. Run existing and added migrations against representative old stores. New person-associated data passes Forget erasure tests. Run the required repository checks and relevant integration cases for each slice. Report host checks not performed rather than marking them passed. The epic is complete only when every capability in the coverage matrix has passed its acceptance checks; dependent decisions and implementation issues remain visible until then. - **Person creation.** Create a Person without a Handle, retry the request and restart; only one stable Person exists. Add an exclusive Handle and ingest a matching Source record; they resolve as designed without losing local facts. A same-name record is a Candidate, not an automatic merge. Creation undo conflicts if it would erase later contributions. - **Manual Interactions.** Add, correct and retract a meeting/call through MCP and inspect recent/last-interaction results. Preserve actual event date, author and separate note references; do not place note text in Interaction rows. Retry creates one event. Rebuilding mail state leaves manual events intact and manual mutation cannot rewrite an imported mail event. - **Organisations.** Correct a name/alias and domain association, repeat Source sync, and inspect related people and search. Rejected domain claims stay rejected, valid aliases still resolve, colliding domain assignments require a decision, and employee/contractor labels and dates remain attributable. Organisation correction never merges Persons merely sharing its domain. - **Archive and scoped removal.** Archive removes a Person from default discovery and suggestions while explicit archived lookup works; restore returns them and sync preserves the state. Scoped removal reports its exact target, protects unrelated/live Source data, and is distinguishable from Forget. Verify expected re-import behaviour without creating suppression Tombstones. - **Forget and restore.** Require confirmation; exercise the full erasure path, #55's restore-before-Forget recovery and subsequent re-sync. Verify notes, review records, event metadata, publication payloads and undo data cannot resurrect forgotten values. Verify a shared endpoint does not erase the other Person and does not recreate the forgotten one. Assert retained residue is restricted to the accepted hashes/audit data and backup limits are accurately documented. - **Contact publication.** Use the existing CardDAV/Radicale integration seam for preview, create, permitted fill-empty updates, stable provider linkage, re-sync and conflict handling. Verify no publication happens on Accept, unselected/private fields stay local, prohibited fields are refused, and existing non-empty fields remain untouched under current policy. Simulate provider edits between preview/apply, uncertain success followed by retry, unavailable provider, and local success with external failure. Verify retries do not create duplicate contacts, provider receipts survive restart, graph merges do not delete provider cards, and compensation preserves later upstream edits. Each added adapter must pass the same observable contract. - **Expanded card and handoff checks.** Through the small host-bridge seam, verify Person creation, event entry, archive/restore and publication use the same commands as text calls and show explicit destination/status. A card reopening after a lifecycle or identity change refreshes rather than writing stale state. Linking an external task reference never schedules or sends anything from People Mind. ## Out of Scope - Building a new native iOS application or a native address-book duplicate-management UI. The backend capability and ownership boundaries are in scope. - Automatically deleting duplicate provider cards as a side effect of merging People Mind Persons. - Unattended bulk merges, blanket acceptance of suggestions, or automatic publication of derived claims. - New LLM enrichment, model-written context summaries, off-host inference, or storing mail/signature text. - Running a reminder scheduler or sending follow-ups; linking to existing task/calendar services is in scope. - New Google/Microsoft/Notion adapters solely to achieve provider parity. Selective publication starts with CardDAV and documents supported destinations. - Silently changing accepted ADRs, bypassing #55, or claiming that Forget erases Mail Mind or all upstream systems. - Production deployment or provisioning live credentials as part of writing this specification. ## Further Notes All recommended capabilities are now requirements of this full-scope epic, including those previously listed as follow-on work. Phase boundaries set delivery order rather than excluding capabilities. Use bounded child implementation/decision issues for execution; this epic is not dispatchable as a single build. Existing issues #78 and #55 retain their scope and decision ownership. Creating the child issue breakdown is separate tracking work; this update does not claim that breakdown has already been filed. Existing authority: ADR 0002 governs identity and typed Relations; ADR 0003 governs asserted/derived provenance, default rows and erasure; ADR 0004 governs Sources, record stores and publication; ADR 0005 governs reversible writes. This spec requires the extensions named above and identifies the ADR decision/amendment work needed before those slices ship. It does not itself settle the shared-endpoint representation, expanded publication field policy, new channel vocabulary or new action caps. Those are tracked prerequisites within the full scope, not exclusions. The internal record store is the first target; publication to a contact provider and selecting an external record store are different capabilities. Mail Mind prior art: [triage panel issue #76](https://git.groupthink.asia/dev/mail-mind-mcp/issues/76), its implemented triage resource, app-only rows tool and panel tests. The Owner reports that this integration has already been tested with Grok Bot. The repository's dated 2026-11-01 matrix specifically records grok.com rendering, Grok Bot advertising Apps but returning text only, and Claude not tested in that repo. Preserve both facts as context and update the host matrix from the People Mind acceptance run; do not repeat protocol discovery as though no integration existed or assume all Grok surfaces behave alike. This specification was synthesized from the 2026-11-05 scoping conversation using the to-spec skill, including the Owner's explicit agreement to the MCP-plus-card test boundary. At the Owner's request it now includes the full recommended capability array, rather than only the initial release. It is a reviewable scope and acceptance specification, not evidence of implementation or deployment. ## Dependencies and decision gates - #78 — shared write-token/outbox/action/undo foundation and merge/alias operations; retains its existing human decision step. - #55 — restore-safe Tombstones, required for the public Forget slice, not for other write/review delivery. - Identity ADR/glossary amendment — shared endpoints, durable separation, Interaction attribution, migration and Forget behaviour for shared endpoints. - Sources/data-boundary amendments — manual Interaction channels/direction, lifecycle semantics, contact creation and expanded permitted publication fields. - Reversible-write amendment — complete action inventory, budgets, inverses and external compensation boundaries. These gates apply to their respective implementation slices. They do not block independent phases or permit a partial implementation to close the full-scope epic. ## Sub-issues Approved ticket breakdown. Each child carries its acceptance criteria, role label and native blocking links. - [ ] #97 — Decide the expanded write-action contract - [ ] #98 — Accept or edit an enrichment suggestion from an MCP card - [ ] #131 — Review Suggestions in a Person Card App view - [ ] #99 — Reject and reconsider suggestions in a persistent review queue - [ ] #100 — Write context notes and stated personal preferences - [ ] #101 — Correct current facts and preferred contact details - [ ] #102 — Edit typed relationships from a Person Card - [ ] #103 — Create a Person before a contact or email exists - [ ] #104 — Decide the manual Interaction contract - [ ] #105 — Record and correct calls and meetings - [ ] #106 — Correct Organisations, aliases and domain associations - [ ] #107 — Compare identities and apply merge or alias from a card - [ ] #108 — Decide durable separation and shared-endpoint identity - [ ] #109 — Split mistaken identities and move Handles durably - [ ] #110 — Represent shared phones and mailboxes without merging people - [ ] #111 — Decide archive, scoped removal and lifecycle visibility - [ ] #112 — Archive and restore Persons without losing history - [ ] #113 — Remove selected local data with an explicit scope - [ ] #114 — Expose restore-safe Forget across the expanded people model - [ ] #115 — Decide contact creation and permitted publication fields - [ ] #116 — Preview and publish permitted fields to an existing CardDAV contact - [ ] #117 — Create a provider contact from a locally remembered Person - [ ] #118 — Publish accepted phone and URL enrichment selectively - [ ] #119 — Link an external follow-up task or calendar item to a Person - [ ] #120 — Verify the first correction card in Grok and Claude hosts Existing dependencies reused: #78 (write foundation) and #55 (restore-safe Tombstones).
svc-agent-writer changed title from People corrections and enrichment review through MCP tools and interactive cards to People Mind write capabilities: corrections, identity, lifecycle, contact publication and MCP Apps 2026-11-05 06:15:16 +00:00
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#96
No description provided.