Skip to content

Lint: resolve non-record links the way Obsidian does (0.4.3) - #10

Merged
moderniselife merged 1 commit into
mainfrom
fix/lint-obsidian-paths
Nov 23, 2026
Merged

moderniselife merged 1 commit into
mainfrom
fix/lint-obsidian-paths

Conversation

@moderniselife

Copy link
Copy Markdown
Owner

Problem

Lint reported every [[a/b]] link that wasn't a record as "isn't a record reference". Links to agent cards ([[tess/card]]) and other notes resolve fine in Obsidian, but they appeared as hundreds of broken links in brains that use them.

Fix

  • A link that isn't a record now resolves the way Obsidian resolves it: lint looks for a file in the vault whose path ends with the link. The same applies to a record link that isn't in this brain.
  • The vault is the outermost registered brain that contains this one, so a team brain nested in a company brain can link to the company's records and notes.
  • Links that match no file are still reported (matches no file), and missing records still show as doesn't exist.

Tests

npm test: 53/53 pass. The new test covers a nested team brain, card links, aliases, and both kinds of genuinely broken link.

🤖 Generated with Claude Code

Lint called every [[a/b]] link that wasn't a record "not a record
reference", so links to agent cards ([[tess/card]]) and other notes,
which Obsidian resolves fine, showed up as hundreds of broken links.

Now a link that isn't a record, or a record link that isn't in this
brain, resolves like Obsidian: some file in the vault whose path ends
with it. The vault is the outermost registered brain this one sits in,
so a team brain can link to its company brain's notes and records.
Links that match no file are still reported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@moderniselife
moderniselife merged commit 47bba6c into main Nov 23, 2026
5 checks passed
@moderniselife
moderniselife deleted the fix/lint-obsidian-paths branch November 23, 2026 04:21
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