remove_relation
Remove one exact typed relation and its rationale from a source node. Defaults to dry-run, requires confirm:true to write, and checks expected_mtime to avoid conflicts.
Instructions
Safely remove one exact typed relation and its relation_notes rationale from a source node. Defaults to dry-run; pass confirm:true to write. Supports expected_mtime conflict protection. Use this instead of replacing a whole frontmatter array with patch_concept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target slug. | |
| from | Yes | Source slug. | |
| type | Yes | ||
| confirm | No | Actually remove when true; default is dry-run. | |
| expected_mtime | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| to | Yes | ||
| key | Yes | ||
| from | Yes | ||
| type | Yes | ||
| dryRun | Yes | ||
| exists | Yes | ||
| changed | Yes | ||
| canConfirm | Yes | True only when repeating the call with confirm:true can perform the previewed change without another explicit safety opt-in. | |
| wouldChange | Yes | True only when the dry-run predicts a disk or Git change. | |
| previewReady | Yes | True only when this response is a complete dry-run preview that an agent can review. | |
| blockedReasons | Yes | Machine-readable human explanations for every condition currently blocking confirmation. | |
| removedRationale | No | ||
| postWriteMaintenance | No | Compact maintenance_plan summary for post-write follow-up. Bucket maps describe the remaining queue after the write. |