invariance_memory_write
Store or update an agent's belief about a subject, with confidence and optional evidence provenance. Enables downstream divergence checks against authoritative records.
Instructions
Record a memory write by an agent: set or update a belief (claim) about a subject. Returns the new MemoryAccess + MemoryRecord. Defaults: source="agent_write", confidence=1.0. Provide provenance (EvidenceRef[] as JSON) when the claim is derived from authoritative records (CRM/ticket/policy doc) so downstream divergence checks can verify it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | Value of the claim, JSON-encoded. Example: "\"email\"" or "{\"tier\":\"gold\"}". | |
| run_id | No | ||
| source | No | Origin of the claim. Defaults to agent_write. | |
| node_id | No | ||
| used_for | Yes | ||
| confidence | No | Confidence in the claim, [0,1]. Defaults to 1.0. | |
| provenance | No | EvidenceRef[] as a JSON-encoded array. Example: [{"kind":"document","id":"doc_1"}] | |
| subject_id | Yes | ||
| valid_until | No | ISO8601 expiry. null means open-ended. | |
| subject_type | Yes |