connect
Create one or more typed connections between memories. relationship: connects_to (default) | depends_on | led_to | blocked_by | contradicts | resolved | caused_by | unblocks | is_example_of — or any custom type. relationship=resolved adjudicates a contradiction between the exact from_memory/to_memory ids you pass: it is pure-additive and does NOT remove any existing contradicts connection between the pair — both remain on the record, preserving the full contradicts-then-resolved timeline. "Works on any pair" means you do not need to have called connect(relationship=contradicts) first — it does NOT mean any topically-similar pair will do. If you are resolving a hit from audit(mode=stale) or a possible_contradicts suggestion, verify the exact two ids first with why_connected rather than inferring them from labels alone — a newer or related memory with a similar label has a different id from the one actually holding the contradicts connection, and resolving the wrong pair leaves the real contradiction unadjudicated with no error to warn you. Optionally pass verdict (false_positive | reconciled | superseded) to classify the outcome; stored on the connection and returned by recall. Once resolved, the pair stops surfacing in audit(mode=stale) and its contradicts penalty in significance(mode=trust) is lifted. When relationship=resolved and either endpoint is human-owned by another workspace member, override_reason (required) and override_confirm=true (required) are needed — Editor or Owner role only; agent-owned or your own human-owned endpoints need no override. override_reason/override_confirm apply to the single-memory form only — batch connect has no override path for such resolutions; call connect individually instead. Single: pass fields directly. Batch: {items:[{from_memory,to_memory,relationship,narrative},...]} — returns {edges_created:N} and, when present, rejections:[{from_memory,to_memory,error_class,message}] for items that could not be applied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| verdict | No | ||
| narrative | No | ||
| to_memory | No | ||
| from_memory | No | ||
| relationship | No | ||
| override_reason | No | ||
| override_confirm | No |