Personalization and Long-Term Memory › Schema for a Personal Memory Record
Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters Use typed records so a correction or deletion can address an exact slot.
| Field | Type | Purpose |
|---|---|---|
memory_id | string | Stable id for auditing and derived-index entries. |
user_id | string | Account partition in the example. A multi-tenant service also needs a tenant boundary. |
kind | enum | semantic_fact, preference, instruction, or episode_summary. |
key | string | Slot such as dietary_preference or home_city. |
value | JSON object | Value validated for its slot. |
confidence | number in [0, 1] | Extractor score, which need not be calibrated. |
provenance, supporting_provenance | object, list | Original source reference and any distinct references corroborating the same value. Each includes the source turn, session, and extractor version when available. |
consent_scope | string | Named purpose. Check the current grant separately. An absent grant denies use. |
sensitivity_tier | integer | Policy tier for the value and use. |
created_at, updated_at | timestamps | Record creation and evidence-update times in the example. |
expires_at | timestamp | Hard cutoff for serving. |
superseded_by | optional id | Replacement record for a correction. |
status | enum | active, candidate, or superseded in this notebook. |
Use the primary record for status and lifecycle. Combine its scope with the current grant before serving it. A derived vector or keyword index can help find candidates for recall. Resolve each result back to an eligible primary record. Superseded values leave the active view and stay available for authorized audit while policy permits it.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!