invariance_memory_read
Log an agent's memory read against a subject, creating an auditable access event that flags stale or unsupported beliefs for divergence detection.
Instructions
Record a memory read by an agent against a subject (customer/account/policy/...) and return the current MemoryRecord (if any). Use this whenever an agent consults a remembered belief — it produces an auditable MemoryAccess event tying that belief to a node in the run, which the divergence detectors use to flag stale or unsupported memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Belief key, e.g. "preferred_contact_channel" or "tier". | |
| run_id | No | Run to attach the access event to. Falls back to the server-side request context if omitted. | |
| node_id | No | Node within the run that performed the read. Falls back to request context. | |
| used_for | Yes | Free-text purpose for the read (used by divergence reasoning). Example: "select-channel". | |
| subject_id | Yes | ID of the subject (e.g. customer ID, policy ID). | |
| subject_type | Yes |