{"category_id":"repository","default_severity":"warning","description":"Read every tracked .md file and resolve each relative inline link and reference definition, without its #fragment and ?query, against the file's directory. Warn once per file and target that is neither a tracked file nor a directory holding one, whose #fragment matches no GitHub heading slug or HTML id/name in its tracked .md target, or whose link text is a different .md filename than the target. Code blocks, code spans, URLs with a scheme, same-page #fragments and root-relative / links are skipped, as are #L line fragments and ?query links for anchors. In a Git comparison, also warn once per unchanged file and code span that is a path of two or more components ending a removed file's path and no tracked path.","examples":[{"after":"{\"tracked\":[\"docs/guide.md\"],\"readme\":\"[Guide](docs/guide.md)\"}","before":"{\"tracked\":[\"docs/guide.md\"],\"readme\":\"[Guide](docs/old.md)\"}","expected_severity":"warning","id":"sarj-documentation-local-links","language":"json","title":"Link the page at its tracked path"}],"fix":"Point the link and its text at the page's current tracked path and heading, remove it when the target was deleted, or use an absolute URL for content outside the repository. No autofix.","kind":"rule","references":[],"rule_id":"repository/documentation/local-links","rule_version":3,"slug":"markdown-local-links","source":{"path":"src/repo_standards/policy_sarj/policy.py","symbol":"repository/documentation/local-links"},"title":"Point relative Markdown links at tracked paths","topic_id":"documentation","why":"Deleting or moving a page leaves links elsewhere pointing nowhere, so readers and agents lose the canonical copy the link promised."}
