{"at":"2026-11-23T04:15:30.720Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T04:15:32.175Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:15:32.326Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T04:15:33.717Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"instructions":"Engram is this user's long-term memory, kept on their own computer. Before answering a request that may depend on earlier work, decisions, preferences, people or projects, call engram_recall with the user's message (and the project folder, if you know it); it returns only clearly relevant memories, or says nothing matched. When the user makes a decision or states a lasting fact or preference, save it with engram_add_memory. When something changed, call engram_correct on the old memory instead of adding a contradicting one. Memories marked OUTDATED are history: use the current version. Say where a memory came from with 'source' (user, primary, secondary, tool, inference) and, when you save a conclusion, link it to the memories it rests on with 'based_on'. When asked why you believe something, or before relying on a conclusion, call engram_why: it shows the evidence, whether that evidence has since been corrected, and what is inference rather than record.","protocolVersion":"2024-11-05","serverInfo":{"name":"engram","version":"1.10.5"}}}}
{"at":"2026-11-23T04:15:33.717Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:15:33.717Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:15:33.717Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Semantic search across the château. Returns ranked results with recency weighting.","inputSchema":{"properties":{"n":{"default":10,"type":"integer"},"no_decay":{"default":false,"type":"boolean"},"query":{"description":"Search query","type":"string"},"room":{"type":"string"},"wing":{"type":"string"}},"required":["query"],"type":"object"},"name":"engram_search"},{"description":"Store a new memory drawer in the château. The result lists 'possible_updates': existing memories this one may replace. If it does, call engram_supersede (or pass 'supersedes' here).","inputSchema":{"properties":{"based_on":{"description":"IDs of memories that are evidence for this one","items":{"type":"string"},"type":"array"},"content":{"description":"Memory content to store","type":"string"},"derived_from":{"description":"IDs of memories this one was inferred from","items":{"type":"string"},"type":"array"},"hall":{"default":"facts","enum":["facts","events","discoveries","preferences","advice"],"type":"string"},"pinned":{"default":false,"type":"boolean"},"reason":{"description":"Why it replaces it (used with 'supersedes')","type":"string"},"room":{"default":"general","type":"string"},"source":{"description":"Where it came from: user (the person said it), primary (original document, law, ruling, data), secondary (reporting or analysis), tool (search or program output), inference (your own conclusion)","enum":["user","primary","secondary","tool","inference"],"type":"string"},"source_ref":{"description":"Citation, URL or document it came from","type":"string"},"supersedes":{"description":"ID of a memory this one replaces (optional)","type":"string"},"wing":{"default":"default","type":"string"}},"required":["content"],"type":"object"},"name":"engram_add_memory"},{"description":"Return L0+L1 cold-start context (~170 tokens). Load this at the start of every session.","inputSchema":{"properties":{"rebuild_l1":{"default":false,"type":"boolean"},"wing":{"type":"string"}},"type":"object"},"name":"engram_wake_up"},{"description":"Return L2 context for a specific room (ES-compressed closets for all halls).","inputSchema":{"properties":{"room":{"type":"string"},"wing":{"type":"string"}},"required":["wing","room"],"type":"object"},"name":"engram_load_room"},{"description":"Compress text into Engram Shorthand (ES).","inputSchema":{"properties":{"confidence":{"maximum":5,"minimum":1,"type":"integer"},"is_code":{"default":false,"type":"boolean"},"text":{"type":"string"}},"required":["text"],"type":"object"},"name":"engram_compress"},{"description":"Decompress Engram Shorthand (ES) back to natural language.","inputSchema":{"properties":{"text":{"type":"string"}},"required":["text"],"type":"object"},"name":"engram_decompress"},{"description":"Query the temporal knowledge graph for an entity.","inputSchema":{"properties":{"active_only":{"default":true,"type":"boolean"},"entity":{"type":"string"},"predicate":{"type":"string"}},"required":["entity"],"type":"object"},"name":"engram_kg_query"},{"description":"Add a triple to the knowledge graph.","inputSchema":{"properties":{"confidence":{"default":1.0,"type":"number"},"object":{"type":"string"},"predicate":{"type":"string"},"subject":{"type":"string"},"valid_from":{"type":"string"},"valid_until":{"type":"string"}},"required":["subject","predicate","object"],"type":"object"},"name":"engram_kg_add"},{"description":"Invalidate (end) a KG triple.","inputSchema":{"properties":{"ended":{"type":"string"},"object":{"type":"string"},"predicate":{"type":"string"},"subject":{"type":"string"}},"required":["subject","predicate","object"],"type":"object"},"name":"engram_kg_invalidate"},{"description":"Return chronological timeline of all triples for an entity.","inputSchema":{"properties":{"entity":{"type":"string"}},"required":["entity"],"type":"object"},"name":"engram_kg_timeline"},{"description":"List all wings in the château.","inputSchema":{"properties":{},"type":"object"},"name":"engram_list_wings"},{"description":"List all rooms in a wing.","inputSchema":{"properties":{"wing":{"type":"string"}},"required":["wing"],"type":"object"},"name":"engram_list_rooms"},{"description":"Fetch a specific drawer by ID.","inputSchema":{"properties":{"drawer_id":{"type":"string"},"hall":{"type":"string"},"room":{"type":"string"},"wing":{"type":"string"}},"required":["drawer_id"],"type":"object"},"name":"engram_get_drawer"},{"description":"Delete a drawer from the château.","inputSchema":{"properties":{"drawer_id":{"type":"string"},"hall":{"type":"string"},"room":{"type":"string"},"wing":{"type":"string"}},"required":["wing","room","hall","drawer_id"],"type":"object"},"name":"engram_delete_drawer"},{"description":"Create a new wing in the château.","inputSchema":{"properties":{"description":{"type":"string"},"name":{"type":"string"}},"required":["name"],"type":"object"},"name":"engram_create_wing"},{"description":"Create a new room within a wing.","inputSchema":{"properties":{"description":{"type":"string"},"name":{"type":"string"},"wing":{"type":"string"}},"required":["wing","name"],"type":"object"},"name":"engram_create_room"},{"description":"Write a diary entry for a specialist agent.","inputSchema":{"properties":{"agent":{"type":"string"},"entry":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"}},"required":["agent","entry"],"type":"object"},"name":"engram_diary_write"},{"description":"Read recent diary entries for a specialist agent.","inputSchema":{"properties":{"agent":{"type":"string"},"last_n":{"default":10,"type":"integer"}},"required":["agent"],"type":"object"},"name":"engram_diary_read"},{"description":"Return château statistics (wings, rooms, drawers, closets).","inputSchema":{"properties":{},"type":"object"},"name":"engram_status"},{"description":"Run a memory health audit. Returns JSON summary of issues found.","inputSchema":{"properties":{"fix":{"default":false,"description":"Auto-resolve safe issues.","type":"boolean"}},"type":"object"},"name":"engram_audit"},{"description":"Return the chronological story of a room (session replay).","inputSchema":{"properties":{"format":{"default":"text","enum":["text","json"],"type":"string"},"limit":{"default":50,"type":"integer"},"room":{"type":"string"},"wing":{"type":"string"}},"required":["room"],"type":"object"},"name":"engram_replay"},{"description":"Pin a drawer so it bypasses recency decay.","inputSchema":{"properties":{"drawer_id":{"type":"string"}},"required":["drawer_id"],"type":"object"},"name":"engram_pin"},{"description":"The few memories clearly relevant to a message, current versions first, or a note that nothing matched. Call it before answering anything that may depend on past work, decisions or preferences.","inputSchema":{"properties":{"cwd":{"description":"Project folder, if known (its memories come first)","type":"string"},"message":{"description":"The user's message or the task at hand","type":"string"}},"required":["message"],"type":"object"},"name":"engram_recall"},{"description":"Save a correction: a new memory that replaces an outdated one (same wing/room/hall). The old memory stays searchable but is marked superseded, and search shows the correction first. Safe to retry.","inputSchema":{"properties":{"based_on":{"description":"IDs of memories that support the corrected version","items":{"type":"string"},"type":"array"},"content":{"description":"The corrected, current information","type":"string"},"memory_id":{"description":"ID (or unique prefix) of the outdated memory","type":"string"},"reason":{"description":"Why it changed","type":"string"},"source":{"description":"Where it came from: user (the person said it), primary (original document, law, ruling, data), secondary (reporting or analysis), tool (search or program output), inference (your own conclusion)","enum":["user","primary","secondary","tool","inference"],"type":"string"},"source_ref":{"description":"Citation, URL or document it came from","type":"string"}},"required":["memory_id","content"],"type":"object"},"name":"engram_correct"},{"description":"Record that one stored memory replaces another (e.g. 'we moved to PostgreSQL' replaces 'we use SQLite'). Set undo=true to make the old memory current again. Safe to retry.","inputSchema":{"properties":{"new_id":{"description":"ID of the memory that replaces it","type":"string"},"old_id":{"description":"ID of the outdated memory","type":"string"},"reason":{"type":"string"},"undo":{"default":false,"type":"boolean"}},"required":["old_id"],"type":"object"},"name":"engram_supersede"},{"description":"Mark two memories as conflicting when it is not yet clear which is right.","inputSchema":{"properties":{"id_a":{"type":"string"},"id_b":{"type":"string"},"reason":{"type":"string"}},"required":["id_a","id_b"],"type":"object"},"name":"engram_dispute"},{"description":"A memory's status (current, superseded or disputed), what replaced it, what it replaced, when and why.","inputSchema":{"properties":{"memory_id":{"type":"string"}},"required":["memory_id"],"type":"object"},"name":"engram_history"},{"description":"Record how two stored memories relate: 'memory_id <relation> target_id'. based_on: target is evidence for memory. derived_from: memory was inferred from target. contradicts: they conflict, undecided. supersedes: memory replaces target. undo=true removes the link. Safe to retry.","inputSchema":{"properties":{"memory_id":{"type":"string"},"reason":{"type":"string"},"relation":{"enum":["based_on","derived_from","contradicts","supersedes"],"type":"string"},"target_id":{"type":"string"},"undo":{"default":false,"type":"boolean"}},"required":["memory_id","relation","target_id"],"type":"object"},"name":"engram_link"},{"description":"Record where a stored memory came from (and optionally the citation or URL).","inputSchema":{"properties":{"memory_id":{"type":"string"},"source":{"description":"Where it came from: user (the person said it), primary (original document, law, ruling, data), secondary (reporting or analysis), tool (search or program output), inference (your own conclusion)","enum":["user","primary","secondary","tool","inference"],"type":"string"},"source_ref":{"description":"Citation, URL or document it came from","type":"string"}},"required":["memory_id","source"],"type":"object"},"name":"engram_source"},{"description":"Explain a memory: where it came from, when, whether it is record or inference, the evidence it rests on (and whether that evidence was since corrected or disputed), earlier versions and their evidence, conflicts, and, given the query, why search ranked it. Use it before relying on a conclusion or when asked to justify one.","inputSchema":{"properties":{"memory_id":{"type":"string"},"query":{"description":"The question it was retrieved for (optional)","type":"string"}},"required":["memory_id"],"type":"object"},"name":"engram_why"},{"description":"Memory maintenance report: conclusions whose evidence was corrected or disputed, inferences with no evidence, unresolved conflicts, broken links. Changes nothing.","inputSchema":{"properties":{},"type":"object"},"name":"engram_check"}]}}}
