Skip to main content

resolve_manual_links

Function resolve_manual_links 

Source
pub fn resolve_manual_links(
    links: &[ManualLinkConfig],
    nodes: &[Node],
    automatic_edges: &[Edge],
) -> Result<ManualLinkResolution, ManualLinkError>
Expand description

Resolves and applies exact manual relationships to an automatic edge set.

Endpoint values match only NodeId text or Node::stable_key text. A creation replaces an automatic edge with the same source, target, and relation so the resulting edge is backed only by explicit manual evidence. A suppression removes every automatic edge with that exact triple; the optional contract is audit context and never broadens or narrows edge matching.

ยงErrors

Returns ManualLinkError for invalid declarations, missing or ambiguous endpoints, resolved self-links, duplicate resolved relationships, or suppressions that match no automatic edge.