Link memories
memory_relateCreate or remove directed links between memories (supports, contradicts, supersedes, refines, duplicates, related) to map relationships; backlinks become visible when retrieving a memory.
Instructions
Create or remove directed links between memories (the relationship graph): e.g. tie a decision to the facts it depends on, or a history entry to the decision it records. Targets must exist; backlinks are visible via memory_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Source memory id | |
| kind | No | Edge kind (plan §4.7): supports | contradicts | supersedes | refines | duplicates | related | related |
| action | No | add (default) creates links, remove deletes them | add |
| related | Yes | Target memory ids to link to / unlink from |