connect
Create typed, narrative relationships between memory nodes to link concepts with causality, dependency, or conflict. Supports single and batch operations.
Instructions
Connect memories with typed, narrative relationships. Valid relationship types are: caused_by, led_to, blocked_by, unblocks, connects_to, contradicts, depends_on, is_example_of, governed_by, resolved, resolved_by, supersedes — and all memory IDs must already exist before calling this.
Single mode (omit items): provide from_memory, to_memory, relationship directly.
Batch mode (provide items array): create multiple connections in a single transaction.
Relationship guidance: caused_by / led_to describe the same link from opposite ends (A caused_by B ≡ B led_to A). blocked_by / unblocks describe dependency on resolving an external issue. depends_on is a hard technical or logical prerequisite. contradicts marks a direct conflict. is_example_of marks an illustration. governed_by links a memory to a standing rule or constraint that it must satisfy. connects_to is the general fallback — use it only when no typed relationship fits.
Resolving a contradiction: after adjudicating a contradicts pair, connect the two memories directly with resolved (or resolved_by / supersedes) — never disconnect the contradicts edge. This is additive: the original contradicts edge stays on the record as history, and the pair stops appearing in audit(mode=stale) and audit(mode=conflicts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Batch mode: array of edge objects. Each must have from_memory, to_memory, relationship (string). Optional: narrative (string), verdict (string, resolved only). | |
| verdict | No | Optional outcome classification when relationship=resolved. Ignored (not stored) for other relationship types, but invalid enum values are still rejected. Values: false_positive, reconciled, superseded. | |
| narrative | No | The story of this connection - why these two things are linked | |
| to_memory | No | ID of the target memory. Required in single mode; omit when using items. | |
| from_memory | No | ID of the source memory. Required in single mode; omit when using items. | |
| relationship | No | Type of relationship. Required in single mode. Use resolved (or resolved_by / supersedes) to adjudicate a contradicts pair — additive, does not remove the contradicts edge. |