route
Decides the correct memory operation — remember, correct, or revert — from any utterance, without requiring you to choose the action. Handles ambiguous restatements with 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. Returns {intent, action, key, ...} describing what was done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| text | Yes | ||
| object | No | ||
| policy | No | safe | |
| context | No | ||
| capability | No |