Skip to content

feat: wikilink [[...]] indexing (edges + backlinks) - #75

Merged
srobinson merged 3 commits into
design/federated-knowledge-layerfrom
feat/wikilinks
Jul 21, 2026
Merged

feat: wikilink [[...]] indexing (edges + backlinks)#75
srobinson merged 3 commits into
design/federated-knowledge-layerfrom
feat/wikilinks

Conversation

@srobinson

Copy link
Copy Markdown
Owner

Adds [[wikilink]] support so Obsidian/Foam/Logseq vaults (core target audience) get edges + backlinks. Parses [[target]], [[target|alias]] (alias display-only), [[target#heading]], [[folder/target]]. Resolution: path-shaped → exact relative; else case-insensitive basename → DocumentKey (new index built from the existing document index, sole name-resolution owner); ambiguity → shortest-path + lexical + DocumentKey tiebreak with diagnostic; unresolved → existing broken-link path; #heading → section edge if resolvable else doc edge. Both syntaxes flow through the SAME resolveInternalLink → resolveDocumentLinks → applyDocument pipeline (no forked builder); mixed corpora supported. Edge model changed to {documentPath, sectionId?}; INDEX_VERSION bumped to 3 so the version guard force-rebuilds pre-feature indexes (no migration). index-build.ts extracted (→ index-build-files.ts, now 577 LOC). Full suite 1760 pass. Review: codex + opus (grok out); plan pre-vetted by both.

@srobinson
srobinson merged commit 3dfe804 into design/federated-knowledge-layer Jul 21, 2026
8 checks passed
@srobinson
srobinson deleted the feat/wikilinks branch July 21, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant