mem_update
Update an existing memory's text or metadata while preserving prior versions in SHA256-chained history and requiring a reason; owner approval drops when approved words change.
Instructions
Change the text or metadata of an existing memory. WRITES: replaces title/body/fields, keeps the previous version in the SHA256-chained history under the required reason, marks the text origin='agent' and DROPS the owner's approval — approval belongs to the words that were approved. Same text with new metadata changes only the metadata and keeps approval. Fields omitted stay as they were, a field sent as null is cleared; ttl_days cannot be changed here. Fails for an unknown or deleted slug (create with mem_write), an archived one, and a record the owner wrote or approved (only the owner changes it; write a proposal under a new slug). Returns ok, slug and the history length. Use mem_reinforce to report how a skill worked instead of editing it; retiring a record retire a record without editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| kind | No | ||
| slug | Yes | ||
| tags | No | ||
| title | No | ||
| reason | Yes | Why this update was made. | |
| topics | No | ||
| project | No |