Skip to content

fix(server): exempt append-only log from broken-link reporting#683

Open
hannut wants to merge 1 commit into
inkeep:mainfrom
hannut:fix/log-md-broken-links-exempt
Open

fix(server): exempt append-only log from broken-link reporting#683
hannut wants to merge 1 commit into
inkeep:mainfrom
hannut:fix/log-md-broken-links-exempt

Conversation

@hannut

@hannut hannut commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Problem

An append-only audit log (log.md) legitimately references docs that were later moved
or deleted — a broken outbound link there is expected history, not an authoring defect.
Today the write path re-surfaces a broken-link warning on every log append, so the
Problems panel keeps flagging historical links that are working as intended.

Fix

Exempt documents whose basename is log from broken-link reporting in
packages/server/src/backlink-index.ts. A log.md with a [[missing]] reference now
returns brokenLinks: [], while a non-log doc with the same reference still flags
no-such-doc.

Testing

  • New regression test in backlink-index.test.ts covering the log-exempt vs
    non-log-flagged behaviour.
  • backlink-index.test.ts: 95 passed.

A changeset ('@inkeep/open-knowledge': patch) is included.

An append-only audit trail legitimately references docs that were later
moved or deleted, so a broken outbound link in log.md is expected history,
not an authoring defect. Stop the write path re-surfacing the warning on
every log append.
@hannut
hannut requested a deployment to inkeep-oss-sync July 18, 2026 06:56 — with GitHub Actions Waiting
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