Example Input
agent_name: ResearchAssistant-7, agent_domain: competitive intelligence for SaaS startups, memory_lifespan: 30 days, existing_memory_json: {"nodes": [{"id": "m1", "unit": "User prefers bullet-point summaries", "confidence": 0.9, "decay": "PERMANENT"}, {"id": "m2", "unit": "Competitor Acme Corp raised $40M Series B in Jan 2026", "confidence": 0.95, "decay": "SLOW_DECAY"}]}, new_information: The user just told me they actually hate bullet points and want prose paragraphs. Also Acme Corp was just acquired by Salesforce for $200M.
Example Output
{
"ingestion_summary": "Two high-signal updates received: a user formatting preference reversal and a major competitive event (acquisition).",
"nutrients_extracted": [
{
"unit": "User prefers prose paragraphs over bullet points",
"type": "preference",
"decay": "PERMANENT",
"confidence": 0.95,
"links": ["m1"]
},
{
"unit": "Acme Corp acquired by Salesforce for $200M in April 2026",
"type": "event",
"decay": "SLOW_DECAY",
"confidence": 0.92,
"links": ["m2"]
}
],
"immune_events": [
{
"type": "contradiction",
"description": "New preference (prose) directly contradicts existing preference node m1 (bullet points). Recency favors new statement; user explicitly corrected prior belief.",
"resolution": "Node m1 archived with revision note. New preference node installed as PERMANENT with confidence 0.95."
}
],
"updated_memory_graph": {
"nodes": [
{"id": "m1", "unit": "User prefers bullet-point summaries", "confidence": 0.0, "status": "ARCHIVED", "archived_reason": "Superseded by explicit user correction on 2026-04-16"},
{"id": "m2", "unit": "Acme Corp raised $40M Series B in Jan 2026", "confidence": 0.3, "status": "SUPERSEDED", "note": "Company no longer independent"},
{"id": "m3", "unit": "User prefers prose paragraphs over bullet points", "confidence": 0.95, "decay": "PERMANENT"},
{"id": "m4", "unit": "Acme Corp acquired by Salesforce for $200M in April 2026", "confidence": 0.92, "decay": "SLOW_DECAY"},
{"id": "m5", "unit": "Acme Corp is no longer an independent competitor — now a Salesforce product line", "confidence": 0.88, "decay": "SLOW_DECAY", "type": "derived"}
]
},
"excreted_nodes": ["m1"],
"cascade_effects": ["Derived node m5 created: competitive threat profile for Acme Corp fundamentally changes — now represents Salesforce ecosystem expansion rather than independent SaaS threat. Any prior analysis comparing Acme Corp as standalone competitor should be flagged as outdated."],
"metabolism_health": {
"total_nodes": 4,
"high_confidence_nodes": 3,
"pending_conflicts": 0,
"memory_entropy_score": 0.12
}
}