Skip to main content

Module autolink

Module autolink 

Source
Expand description

Orphan detection and soft auto-links (algorithmic, low weight).

Explicit edges (relates_to, anchors, …) are user/agent-authored. Auto edges use relation_type values prefixed with auto_ and lower weights so context hops prefer human links.

Structs§

AutoLinkReport
Report from run_auto_link.
AutoLinkSuggestion
One proposed or applied soft edge endpoint.
OrphanNote
A note with no explicit (non-auto) graph edges.

Constants§

REL_AUTO_FILENAME
Soft edge: same filename stem under different paths (e.g. goals/x.md ↔ concepts/x.md).
REL_AUTO_TAG
Soft edge: shared tag (excluding trivial type-only tags).
WEIGHT_AUTO_FILENAME
Default weight for filename-stem matches.
WEIGHT_AUTO_TAG
Default weight for shared-tag matches.

Functions§

is_auto_relation
True when relation_type is a soft auto-link.
is_explicit_relation
True when the relation is user/agent-authored (not auto).
list_orphan_notes
List non-symbol notes that have zero explicit edges (auto edges ignored).
normalize_target_arg
Normalize a user path argument to something resolve_target can use.
path_stem
Filename stem for auto-filename matching (docs/goals/rust-fluency.mdrust-fluency).
run_auto_link
Create soft auto-links for all orphans, or for one file/path/node id.