forgeplan unlink
Remove a typed relation between two artifacts. The inverse of
forgeplan link. Use unlink to fix mistakes — wrong
direction, wrong relation type, stale edge left over from a superseded
decision — without rewriting markdown by hand.
forgeplan unlink [OPTIONS] <SOURCE> <TARGET>Arguments
Section titled “Arguments” <SOURCE> Source artifact ID <TARGET> Target artifact IDOptions
Section titled “Options” --relation <RELATION> Relationship type to remove [default: informs] -h, --help Print help -V, --version Print versionWhat it does
Section titled “What it does”- Looks up the relation in the LanceDB
linkstable keyed on(source, target, relation). - Deletes the row if found.
- Refreshes any derived caches —
score,graph, andblockedwill reflect the change on next run. - Exits cleanly even if no matching relation exists, making the command idempotent and safe to script.
Unlinking does not delete either artifact. It only removes the edge.
Examples
Section titled “Examples”Fix a wrong-direction link:
forgeplan unlink PRD-001 EVID-001 --relation informsforgeplan link EVID-001 PRD-001 --relation informsRemove a stale based_on after superseding the parent:
forgeplan unlink RFC-006 PRD-025 --relation based_onforgeplan link RFC-006 PRD-030 --relation based_onDrop a contradicts edge that was recorded in error:
forgeplan unlink EVID-017 ADR-004 --relation contradictsRelation type must match
Section titled “Relation type must match”The --relation flag must match the type of the edge you want to remove. If
you linked EVID-001 → PRD-001 with --relation informs, calling
forgeplan unlink EVID-001 PRD-001 --relation based_on will be a no-op because
no such edge exists.
When in doubt, inspect the graph first:
forgeplan graph PRD-001 # see all edges touching PRD-001forgeplan show PRD-001 --links # list links in tabular formSelf-link guard (PROB-019)
Section titled “Self-link guard (PROB-019)”Since self-links cannot be created (see forgeplan link),
forgeplan unlink PRD-001 PRD-001 will never find a match and exits as a
no-op.
Side effects
Section titled “Side effects”forgeplan scorerecomputes R_eff for the target. If you remove the only supportinginformsedge, the score drops to 0 and the artifact becomes a blind spot onforgeplan health.forgeplan blockedandforgeplan orderre-run topological sort.- The Mermaid graph from
forgeplan graphloses the edge.
- Unlink is idempotent — running it twice has the same effect as running it once. No error on a missing edge.
- To remove an artifact entirely (including all its links), use
forgeplan delete— it cascade-deletes relations in a single pass. - Direct edits to
.forgeplan/<kind>s/<id>.mdnever touch thelinkstable. If you need to hand-edit relations, runforgeplan scan-importafterward.
See also
Section titled “See also”- CLI overview
forgeplan link— create a relationforgeplan graph— visualize current relationsforgeplan score— recompute R_eff after unlinking- Methodology guide