palinode_orphan_repair
Repair broken wikilinks by finding semantically similar existing files. Proposes redirects or provides context to create missing target files.
Instructions
Given a [[wikilink]] whose target file does not exist, return existing memory files semantically near the link target text. Use during wiki-maintenance passes to either propose a redirect (rename the link to point at an existing file) or to create the missing target file with informed context about its semantic neighbours. Accepts either [[name]] or bare name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Maximum number of candidate files to return. Default 10. | |
| broken_link | Yes | The wikilink text (e.g. '[[alice-meeting]]') or bare target slug. | |
| min_similarity | No | Minimum cosine similarity to surface (0.0–1.0). Default 0.65 — looser than dedup_suggest because the LLM picks from a wider slate. |