route
Automatically determine the correct ledger operation—remember, supersede, or revert—for any statement, without requiring the old value. Handles ambiguous restatements via configurable policy.
Instructions
ONE-CALL WRITE ROUTER: hand it any utterance and it decides the right ledger operation — a new fact is remembered, a marked correction supersedes, and a revert instruction ("go back to what we had", "restore the original") is resolved against the key's version timeline and executed through the sanctioned revert channel, WITHOUT the caller naming the old value. Use it when you don't want to pick between remember/revert yourself.
The honest limit (measured): an UNMARKED restatement of a superseded value ("the region is osaka",
said after the correction) is ambiguous by construction — a stale echo and a deliberate reaffirm can
be byte-identical, and no classifier separates them. policy picks the failure mode: "safe"
(default) never restores on an unmarked restatement; "context" restores when the preceding turn
(pass it as context) shows change-awareness — forgeable, use only if that channel is trusted;
"trusting" always restores; any other policy is refused. Every record it writes is stamped with this server's PROJECT scope.
Returns {intent, action, key, ...} describing what was done and, when it wrote a record, the verdict
on that write as remember gives it: a write a guard retired on arrival comes back blocked: true
with action: "blocked", never as remembered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| text | Yes | ||
| object | No | ||
| policy | No | safe | |
| source | No | ||
| context | No | ||
| capability | No |