revise
Update an existing memory as a deliberate revision, preserving belief history. Use when correcting or superseding known facts; fails safely if the memory doesn't exist.
Instructions
Deliberately replace an existing memory, preserving belief revision.
Use this instead of `commit_mem` when you intend to correct or
supersede something you already know, so the change is recorded as a
revision rather than an accidental overwrite.
Fails with `memory_not_found` if the key does not exist: revise never
creates. Pass `expected_version` from a previous write to fail with
`version_conflict` instead of clobbering a concurrent change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| reason | No | ||
| strategy | No | entrenchment | |
| importance | No | ||
| idempotency_key | No | ||
| expected_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||