Connect related-but-unlinked brain cards (densify the graph)
brain_connectRepair orphaned decision and milestone cards by proposing genuinely related unlinked card pairs. Optionally draw the suggested connections to reconnect isolated cards in the canvas.
Instructions
Repairs orphaned decision/milestone cards first (scope:"orphans", the default) by proposing genuinely related unlinked pairs — semantic similarity at a conservative 0.55 threshold when the on-device model is installed, else shared tags + [[mentions]]. The dry run includes a before→projected orphan receipt; apply:true draws only additive, removable arrows and reports the measured after count. It NEVER archives or rewrites cards. Use scope:"all" for deliberate whole-graph densification. To DISMISS a brain_reconcile false-positive contradiction, pass pairs:[{fromId,toId}] with relationship:"not_contradiction".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max connections to propose/draw (default 24). | |
| apply | No | false (default) = suggest only; true = draw the connections. | |
| pairs | No | Explicit card-id pairs to connect (bypasses auto-proposal). Use to dismiss a reconcile false-positive: pass the two card ids with relationship:"not_contradiction". | |
| scope | No | "orphans" (default) repairs isolated decision/milestone cards; "all" proposes across every live card. | |
| canvas | No | Canvas filename/path. Defaults to the project brain ("brain"). | |
| threshold | No | Min semantic similarity 0–1. Default 0.55 for orphan repair; 0.45 for scope:"all". Higher = fewer, tighter links. | |
| relationship | No | Relationship for explicit `pairs` (e.g. "not_contradiction" to permanently dismiss a contradiction candidate, or "relates_to", "depends_on", "supports"). |