{"title":"El modelo de memoria","slug":"memory-model","category":"concepts","summary":"Cómo se estructuran las memorias — categorías, claves, etiquetas, prioridades, fuentes, verificación.","audience":["human","llm"],"tags":["concept","memory","model","structure"],"difficulty":"intermediate","updated":"2026-06-27","word_count":770,"read_minutes":4,"lang":"es","translated":true,"requested_lang":"es","content_markdown":"\n# El modelo de memoria\n\nEl modelo de memoria de Synapse está diseñado para agentes LLM — lo\nsuficientemente estructurado para recall fiable, lo suficientemente flexible\npara cualquier dominio.\n\n## Anatomía de una memoria\n\n```json\n{\n  \"id\": \"mem_abc123\",\n  \"category\": \"project\",\n  \"key\": \"project_synapse_status\",\n  \"content\": \"Synapse v1.5.0 deployed on vps1. CI green.\",\n  \"tags\": [\"synapse\", \"deployment\", \"v1.5.0\"],\n  \"priority\": \"high\",\n  \"source\": \"agent\",\n  \"verified\": false,\n  \"confidence\": 0.85,\n  \"expires_at\": null,\n  \"mind_id\": \"m_xyz789\",\n  \"created_at\": \"2026-06-27T...\",\n  \"updated_at\": \"2026-06-27T...\"\n}\n```\n\n## Campos\n\n| Campo | Tipo | Obligatorio | Descripción |\n|-------|------|----------|-------------|\n| `id` | string | auto | ID único (mem_xxx) |\n| `category` | enum | ✅ | Una de 8 categorías |\n| `key` | string | ✅ | Identificador estable (usado para actualizaciones) |\n| `content` | string | ✅ | El contenido de la memoria (cualquier texto) |\n| `tags` | string[] | – | Para búsqueda y filtrado |\n| `priority` | enum | – | low, normal, high, critical (predeterminado: normal) |\n| `source` | enum | auto | user, agent (quién la almacenó) |\n| `verified` | bool | auto | ¿La ha verificado un humano? |\n| `confidence` | float | – | 0.0 a 1.0 (predeterminado: 1.0 para user, 0.7 para agent) |\n| `expires_at` | timestamp | – | Cuándo olvidar esta memoria |\n| `mind_id` | string | auto | A qué mind pertenece |\n| `created_at` | timestamp | auto | Primera vez almacenada |\n| `updated_at` | timestamp | auto | Última modificación |\n\n## Categorías\n\nOcho categorías cubren los casos de uso comunes de agentes LLM:\n\n| Categoría | Propósito | Contenido de ejemplo |\n|----------|---------|-----------------|\n| `identity` | Quién es el usuario | \"User is Michael Schäfer, software engineer in Berlin\" |\n| `preference` | Preferencias del usuario | \"Prefers concise technical responses\" |\n| `fact` | Hechos verificables | \"Office is in Berlin, timezone Europe/Berlin\" |\n| `project` | Estado del proyecto | \"Synapse v1.5.0 deployed, working on v1.6.0 docs\" |\n| `skill` | Habilidades del usuario | \"Advanced Python, 10+ years\" |\n| `mistake` | Errores pasados | \"Forgot to bump npm version — CI failed\" |\n| `context` | Contexto de sesión | \"Currently reviewing PR #42\" |\n| `note` | Notas varias | \"Try Redis for caching next sprint\" |\n\n## Claves: identificadores estables\n\nEl campo `key` es crítico — es la forma de actualizar memorias sin crear\nduplicados.\n\n```python\n# First store\nstore(\"project\", \"project_synapse_status\", \"v1.4.0 deployed\", priority=\"high\")\n\n# Update with same key (overwrites, doesn't duplicate)\nstore(\"project\", \"project_synapse_status\", \"v1.5.0 deployed\", priority=\"high\")\n```\n\n**Reglas de key:**\n\n- Debe ser única dentro de (categoría, mind)\n- Use `snake_case`\n- Prefije con la categoría para claridad: `preference_communication`, `mistake_npm_version`\n- Manténgala estable — no cambie las keys tras la creación\n\n## Etiquetas: para búsqueda\n\nLas etiquetas permiten filtrado y búsqueda rápida:\n\n```bash\n# Find all memories with tag \"docker\"\nGET /memory/by-tag?tag=docker\n\n# FTS5 search within tagged subset\nGET /memory/search?q=swarm&tag=docker\n```\n\n**Mejores prácticas de etiquetado:**\n\n- 2-5 etiquetas por memoria (no etiquete en exceso)\n- Minúsculas para consistencia\n- Use nombres de proyecto, temas, tecnologías\n- Las etiquetas son insensibles a mayúsculas/minúsculas\n\n## Niveles de prioridad\n\n| Prioridad | Cuándo usarla | Comportamiento de recall |\n|----------|-------------|-----------------|\n| `critical` | Identidad, legal, irreversible | Siempre al inicio del recall |\n| `high` | Proyectos activos, preferencias clave | Destacada en el recall |\n| `normal` | La mayoría de memorias (predeterminado) | Orden de recall estándar |\n| `low` | Efímera, bueno saberlo | Puede resumirse |\n\n`/memory/recall` ordena por prioridad (critical primero), luego por recencia.\n\n## Origen: usuario vs agente\n\nLas memorias se etiquetan con `source`:\n\n- `user` — almacenada por un humano (vía JWT o interfaz humana)\n- `agent` — almacenada por un agente LLM (vía Mind Key)\n\nEsto afecta:\n\n- **Verificación**: las memorias `user` se auto-verifican, las `agent` no\n- **Confianza**: `user` por defecto a 1.0, `agent` a 0.7\n- **Recall**: `/memory/recall` marca las memorias no verificadas con \"(unverified)\"\n\n> [!NOTE]\n> Trate las memorias con origen `agent` con el escepticismo apropiado. Pueden\n> estar inferidas o asumidas en lugar de haber sido declaradas directamente por\n> el usuario.\n\n## Verificación\n\nEl flag `verified` indica que un humano ha confirmado la memoria:\n\n- memorias `user`: auto-verificadas (`true`)\n- memorias `agent`: por defecto no verificadas (`false`)\n\nVerifique memorias vía:\n\n```bash\ncurl -X POST https://synapse.schaefer.zone/memory/mem_001/verify \\\n  -H \"Authorization: Bearer YOUR_JWT\"\n```\n\n> [!NOTE]\n> La verificación requiere JWT (auth humana), no Mind Key (auth de agente).\n> Esto garantiza que solo los humanos puedan marcar memorias como verificadas.\n\n## Confianza\n\nEl campo `confidence` (0.0 a 1.0) indica cuán fiable es la memoria:\n\n- 1.0 — declarada directamente por el usuario\n- 0.7 — inferida por el agente\n- 0.5 — incierta, necesita verificación\n- 0.0 — explícitamente dudosa\n\nEstablezca la confianza al almacenar:\n\n```json\n{\n  \"category\": \"preference\",\n  \"key\": \"prefers_dark_mode\",\n  \"content\": \"User seems to prefer dark mode (based on their IDE screenshots)\",\n  \"confidence\": 0.5,\n  \"source\": \"agent\"\n}\n```\n\n## Expiración\n\nEstablezca `expires_at` para memorias sensibles al tiempo:\n\n```json\n{\n  \"category\": \"context\",\n  \"key\": \"current_meeting_topic\",\n  \"content\": \"Discussing Q3 roadmap\",\n  \"expires_at\": \"2026-06-28T00:00:00Z\"\n}\n```\n\nLas memorias expiradas no se devuelven en `/memory/recall` (pero siguen\nexistentes en la BD). Use `/memory/expiring?within=7d` para ver memorias que\nexpiran pronto.\n\n## Ciclo de vida de una memoria\n\n```\n                  ┌─────────────────┐\n                  │     Create      │\n                  │  POST /memory   │\n                  └────────┬────────┘\n                           │\n                           ▼\n                  ┌─────────────────┐\n                  │     Active      │ ◀──── PUT /memory/:id (update)\n                  │  (in recall)    │\n                  └────────┬────────┘\n                           │\n              ┌────────────┼────────────┐\n              │            │            │\n              ▼            ▼            ▼\n        ┌──────────┐ ┌──────────┐ ┌──────────┐\n        │ Expired  │ │ Verified │ │ Deleted  │\n        │ (in DB)  │ │ (flag)   │ │ (gone)   │\n        └──────────┘ └──────────┘ └──────────┘\n```\n\n## Comportamiento de recall\n\n`GET /memory/recall` devuelve un resumen en texto plano optimizado para el\ncontexto del LLM:\n\n```\nMind: Michael's Mind\nMemories: 12 total (10 verified, 2 unverified)\n\n[001] identity (CRITICAL) [verified]\n  user_name\n  Michael Schäfer\n  Tags: person, identity\n\n[002] preference (HIGH) [verified]\n  communication_style\n  Prefers concise technical responses\n  Tags: communication\n\n[003] project (HIGH) [unverified]\n  synapse_status\n  v1.5.0 deployed, working on v1.6.0 docs\n  Tags: synapse, deployment\n\n...\n```\n\n- Ordenado por prioridad (critical → low), luego por recencia\n- Las memorias no verificadas se marcan con `[unverified]`\n- Etiquetas incluidas para contexto\n- Texto plano (no se necesita parsing JSON)\n\n## Próximos pasos\n\n- [API de Memory](/docs/api/memory)\n- [Mejores prácticas de memoria](/docs/guides/memory-best-practices)\n- [Búsqueda FTS5](/docs/concepts/fts5-search)\n","content_html":"<h1>El modelo de memoria</h1>\n<p>El modelo de memoria de Synapse está diseñado para agentes LLM — lo\nsuficientemente estructurado para recall fiable, lo suficientemente flexible\npara cualquier dominio.</p>\n<h2>Anatomía de una memoria</h2>\n<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">&quot;id&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;mem_abc123&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;category&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;project&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;key&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;project_synapse_status&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;content&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;Synapse v1.5.0 deployed on vps1. CI green.&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;tags&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span><span class=\"hljs-string\">&quot;synapse&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;deployment&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;v1.5.0&quot;</span><span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;priority&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;high&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;source&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;agent&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;verified&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-literal\"><span class=\"hljs-keyword\">false</span></span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;confidence&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-number\">0.85</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;expires_at&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-literal\"><span class=\"hljs-keyword\">null</span></span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;mind_id&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;m_xyz789&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;created_at&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;2026-06-27T...&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;updated_at&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;2026-06-27T...&quot;</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><h2>Campos</h2>\n<table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Tipo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>auto</td>\n<td>ID único (mem_xxx)</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>enum</td>\n<td>✅</td>\n<td>Una de 8 categorías</td>\n</tr>\n<tr>\n<td><code>key</code></td>\n<td>string</td>\n<td>✅</td>\n<td>Identificador estable (usado para actualizaciones)</td>\n</tr>\n<tr>\n<td><code>content</code></td>\n<td>string</td>\n<td>✅</td>\n<td>El contenido de la memoria (cualquier texto)</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td>string[]</td>\n<td>–</td>\n<td>Para búsqueda y filtrado</td>\n</tr>\n<tr>\n<td><code>priority</code></td>\n<td>enum</td>\n<td>–</td>\n<td>low, normal, high, critical (predeterminado: normal)</td>\n</tr>\n<tr>\n<td><code>source</code></td>\n<td>enum</td>\n<td>auto</td>\n<td>user, agent (quién la almacenó)</td>\n</tr>\n<tr>\n<td><code>verified</code></td>\n<td>bool</td>\n<td>auto</td>\n<td>¿La ha verificado un humano?</td>\n</tr>\n<tr>\n<td><code>confidence</code></td>\n<td>float</td>\n<td>–</td>\n<td>0.0 a 1.0 (predeterminado: 1.0 para user, 0.7 para agent)</td>\n</tr>\n<tr>\n<td><code>expires_at</code></td>\n<td>timestamp</td>\n<td>–</td>\n<td>Cuándo olvidar esta memoria</td>\n</tr>\n<tr>\n<td><code>mind_id</code></td>\n<td>string</td>\n<td>auto</td>\n<td>A qué mind pertenece</td>\n</tr>\n<tr>\n<td><code>created_at</code></td>\n<td>timestamp</td>\n<td>auto</td>\n<td>Primera vez almacenada</td>\n</tr>\n<tr>\n<td><code>updated_at</code></td>\n<td>timestamp</td>\n<td>auto</td>\n<td>Última modificación</td>\n</tr>\n</tbody></table>\n<h2>Categorías</h2>\n<p>Ocho categorías cubren los casos de uso comunes de agentes LLM:</p>\n<table>\n<thead>\n<tr>\n<th>Categoría</th>\n<th>Propósito</th>\n<th>Contenido de ejemplo</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>identity</code></td>\n<td>Quién es el usuario</td>\n<td>&quot;User is Michael Schäfer, software engineer in Berlin&quot;</td>\n</tr>\n<tr>\n<td><code>preference</code></td>\n<td>Preferencias del usuario</td>\n<td>&quot;Prefers concise technical responses&quot;</td>\n</tr>\n<tr>\n<td><code>fact</code></td>\n<td>Hechos verificables</td>\n<td>&quot;Office is in Berlin, timezone Europe/Berlin&quot;</td>\n</tr>\n<tr>\n<td><code>project</code></td>\n<td>Estado del proyecto</td>\n<td>&quot;Synapse v1.5.0 deployed, working on v1.6.0 docs&quot;</td>\n</tr>\n<tr>\n<td><code>skill</code></td>\n<td>Habilidades del usuario</td>\n<td>&quot;Advanced Python, 10+ years&quot;</td>\n</tr>\n<tr>\n<td><code>mistake</code></td>\n<td>Errores pasados</td>\n<td>&quot;Forgot to bump npm version — CI failed&quot;</td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Contexto de sesión</td>\n<td>&quot;Currently reviewing PR #42&quot;</td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td>Notas varias</td>\n<td>&quot;Try Redis for caching next sprint&quot;</td>\n</tr>\n</tbody></table>\n<h2>Claves: identificadores estables</h2>\n<p>El campo <code>key</code> es crítico — es la forma de actualizar memorias sin crear\nduplicados.</p>\n<pre><code class=\"hljs language-python\"><span class=\"hljs-comment\"># First store</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;project_synapse_status&quot;</span>, <span class=\"hljs-string\">&quot;v1.4.0 deployed&quot;</span>, priority=<span class=\"hljs-string\">&quot;high&quot;</span>)\n\n<span class=\"hljs-comment\"># Update with same key (overwrites, doesn&#x27;t duplicate)</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;project_synapse_status&quot;</span>, <span class=\"hljs-string\">&quot;v1.5.0 deployed&quot;</span>, priority=<span class=\"hljs-string\">&quot;high&quot;</span>)</code></pre><p><strong>Reglas de key:</strong></p>\n<ul>\n<li>Debe ser única dentro de (categoría, mind)</li>\n<li>Use <code>snake_case</code></li>\n<li>Prefije con la categoría para claridad: <code>preference_communication</code>, <code>mistake_npm_version</code></li>\n<li>Manténgala estable — no cambie las keys tras la creación</li>\n</ul>\n<h2>Etiquetas: para búsqueda</h2>\n<p>Las etiquetas permiten filtrado y búsqueda rápida:</p>\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># Find all memories with tag &quot;docker&quot;</span>\nGET /memory/by-tag?tag=docker\n\n<span class=\"hljs-comment\"># FTS5 search within tagged subset</span>\nGET /memory/search?q=swarm&amp;tag=docker</code></pre><p><strong>Mejores prácticas de etiquetado:</strong></p>\n<ul>\n<li>2-5 etiquetas por memoria (no etiquete en exceso)</li>\n<li>Minúsculas para consistencia</li>\n<li>Use nombres de proyecto, temas, tecnologías</li>\n<li>Las etiquetas son insensibles a mayúsculas/minúsculas</li>\n</ul>\n<h2>Niveles de prioridad</h2>\n<table>\n<thead>\n<tr>\n<th>Prioridad</th>\n<th>Cuándo usarla</th>\n<th>Comportamiento de recall</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>critical</code></td>\n<td>Identidad, legal, irreversible</td>\n<td>Siempre al inicio del recall</td>\n</tr>\n<tr>\n<td><code>high</code></td>\n<td>Proyectos activos, preferencias clave</td>\n<td>Destacada en el recall</td>\n</tr>\n<tr>\n<td><code>normal</code></td>\n<td>La mayoría de memorias (predeterminado)</td>\n<td>Orden de recall estándar</td>\n</tr>\n<tr>\n<td><code>low</code></td>\n<td>Efímera, bueno saberlo</td>\n<td>Puede resumirse</td>\n</tr>\n</tbody></table>\n<p><code>/memory/recall</code> ordena por prioridad (critical primero), luego por recencia.</p>\n<h2>Origen: usuario vs agente</h2>\n<p>Las memorias se etiquetan con <code>source</code>:</p>\n<ul>\n<li><code>user</code> — almacenada por un humano (vía JWT o interfaz humana)</li>\n<li><code>agent</code> — almacenada por un agente LLM (vía Mind Key)</li>\n</ul>\n<p>Esto afecta:</p>\n<ul>\n<li><strong>Verificación</strong>: las memorias <code>user</code> se auto-verifican, las <code>agent</code> no</li>\n<li><strong>Confianza</strong>: <code>user</code> por defecto a 1.0, <code>agent</code> a 0.7</li>\n<li><strong>Recall</strong>: <code>/memory/recall</code> marca las memorias no verificadas con &quot;(unverified)&quot;</li>\n</ul>\n<div class=\"callout callout-note\">Trate las memorias con origen `agent` con el escepticismo apropiado. Pueden\nestar inferidas o asumidas en lugar de haber sido declaradas directamente por\nel usuario.</div><h2>Verificación</h2>\n<p>El flag <code>verified</code> indica que un humano ha confirmado la memoria:</p>\n<ul>\n<li>memorias <code>user</code>: auto-verificadas (<code>true</code>)</li>\n<li>memorias <code>agent</code>: por defecto no verificadas (<code>false</code>)</li>\n</ul>\n<p>Verifique memorias vía:</p>\n<pre><code class=\"hljs language-bash\">curl -X POST https://synapse.schaefer.zone/memory/mem_001/verify \\\n  -H <span class=\"hljs-string\">&quot;Authorization: Bearer YOUR_JWT&quot;</span></code></pre><div class=\"callout callout-note\">La verificación requiere JWT (auth humana), no Mind Key (auth de agente).\nEsto garantiza que solo los humanos puedan marcar memorias como verificadas.</div><h2>Confianza</h2>\n<p>El campo <code>confidence</code> (0.0 a 1.0) indica cuán fiable es la memoria:</p>\n<ul>\n<li>1.0 — declarada directamente por el usuario</li>\n<li>0.7 — inferida por el agente</li>\n<li>0.5 — incierta, necesita verificación</li>\n<li>0.0 — explícitamente dudosa</li>\n</ul>\n<p>Establezca la confianza al almacenar:</p>\n<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">&quot;category&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;preference&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;key&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;prefers_dark_mode&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;content&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;User seems to prefer dark mode (based on their IDE screenshots)&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;confidence&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-number\">0.5</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;source&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;agent&quot;</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><h2>Expiración</h2>\n<p>Establezca <code>expires_at</code> para memorias sensibles al tiempo:</p>\n<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">&quot;category&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;context&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;key&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;current_meeting_topic&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;content&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;Discussing Q3 roadmap&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;expires_at&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;2026-06-28T00:00:00Z&quot;</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><p>Las memorias expiradas no se devuelven en <code>/memory/recall</code> (pero siguen\nexistentes en la BD). Use <code>/memory/expiring?within=7d</code> para ver memorias que\nexpiran pronto.</p>\n<h2>Ciclo de vida de una memoria</h2>\n<pre><code class=\"hljs language-plaintext\">                  ┌─────────────────┐\n                  │     Create      │\n                  │  POST /memory   │\n                  └────────┬────────┘\n                           │\n                           ▼\n                  ┌─────────────────┐\n                  │     Active      │ ◀──── PUT /memory/:id (update)\n                  │  (in recall)    │\n                  └────────┬────────┘\n                           │\n              ┌────────────┼────────────┐\n              │            │            │\n              ▼            ▼            ▼\n        ┌──────────┐ ┌──────────┐ ┌──────────┐\n        │ Expired  │ │ Verified │ │ Deleted  │\n        │ (in DB)  │ │ (flag)   │ │ (gone)   │\n        └──────────┘ └──────────┘ └──────────┘</code></pre><h2>Comportamiento de recall</h2>\n<p><code>GET /memory/recall</code> devuelve un resumen en texto plano optimizado para el\ncontexto del LLM:</p>\n<pre><code class=\"hljs language-plaintext\">Mind: Michael&#x27;s Mind\nMemories: 12 total (10 verified, 2 unverified)\n\n[001] identity (CRITICAL) [verified]\n  user_name\n  Michael Schäfer\n  Tags: person, identity\n\n[002] preference (HIGH) [verified]\n  communication_style\n  Prefers concise technical responses\n  Tags: communication\n\n[003] project (HIGH) [unverified]\n  synapse_status\n  v1.5.0 deployed, working on v1.6.0 docs\n  Tags: synapse, deployment\n\n...</code></pre><ul>\n<li>Ordenado por prioridad (critical → low), luego por recencia</li>\n<li>Las memorias no verificadas se marcan con <code>[unverified]</code></li>\n<li>Etiquetas incluidas para contexto</li>\n<li>Texto plano (no se necesita parsing JSON)</li>\n</ul>\n<h2>Próximos pasos</h2>\n<ul>\n<li><a href=\"/docs/api/memory\">API de Memory</a></li>\n<li><a href=\"/docs/guides/memory-best-practices\">Mejores prácticas de memoria</a></li>\n<li><a href=\"/docs/concepts/fts5-search\">Búsqueda FTS5</a></li>\n</ul>\n","urls":{"html":"/docs/concepts/memory-model","text":"/docs/concepts/memory-model?format=text","json":"/docs/concepts/memory-model?format=json","llm":"/docs/concepts/memory-model?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}