Correct a fact
correct_factReplace a wrong recorded fact by supplying its hash, corrected value, reason, and operation ID; the old fact stays in history as superseded.
Instructions
Use when a recorded fact is wrong and you know the right value. Give the hash of the fact to replace and a reason. The old fact stays in history, marked as superseded, so the correction can itself be undone. When the result includes a receipt link, include it when you tell a person about the change, so they can check it and undo it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The corrected value. Any JSON. | |
| reason | Yes | Why the earlier fact was wrong. | |
| evidence | No | Where the fact came from, so a person can check it. | |
| entity_id | Yes | Stable ID of the thing the fact is about, such as customer:42 or ticket:T-1009. Not a display name. | |
| predicate | No | Predicate of the corrected fact. Defaults to the predicate of the fact being corrected. | |
| supersedes | Yes | Hash of the fact being corrected, from get_entity or an earlier write. | |
| observed_at | No | When the corrected value was observed, RFC 3339. | |
| operation_id | Yes | Your ID for this one write, 8-200 characters. Reuse it when retrying the same write so it is not recorded twice. Never reuse it for a different write. |