resolve_memory
Settle a memory conflict flagged by save_memory by comparing the pending fact with candidates and selecting new, duplicate, update, or contradiction; target ID is needed for update or contradiction.
Instructions
Settle a possible conflict after save_memory returned needs_resolution.
Compare the new fact with the candidates it returned and pick a decision. For update
or contradiction, the candidate is kept in history as superseded and the new fact
becomes current.
Do NOT use for any other purpose; to change a fact you already know the id of, use
update_memory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pending_id": "<pending_id>",
"decision": "<decision>"
},
"name": "resolve_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | Yes | new: a different fact, keep both. duplicate: same as a candidate. update: replaces a candidate with a newer value. contradiction: a candidate is no longer true. | |
| target_id | No | The candidate's id; required for update and contradiction. | |
| pending_id | Yes | memory_id from a needs_resolution save. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | resolved | |
| message | Yes | ||
| decision | Yes | ||
| active_id | Yes | The fact that is now current, if any. | |
| superseded_id | No |