From 51fec836dbf68dd66ce430e3cbebc787034ad5e5 Mon Sep 17 00:00:00 2001 From: L4XB Date: Fri, 23 Oct 2026 02:56:22 +0200 Subject: [PATCH] fix(docs-governance): look for a blanked comment in the link destination, not its title A title may hold comment-shaped text, as in [x](missing.md ""). The filter for blanked comments looked at the whole target, title included, so it dropped that link and its broken destination went unreported. The filter now strips the title first, with the same pattern normalize_link_target uses, which moves to LINK_TITLE_RE. --- .../docs-governance/scripts/markdown_links.py | 26 ++++++++++++------- manifests/context-packs/skill-triggers@1.json | 2 +- .../docs-governance/scripts/markdown_links.py | 26 ++++++++++++------- .../docs-governance/scripts/markdown_links.py | 26 ++++++++++++------- tests/test_docs_governance_audit.py | 9 +++++-- 5 files changed, 59 insertions(+), 30 deletions(-) diff --git a/.agents/skills/docs-governance/scripts/markdown_links.py b/.agents/skills/docs-governance/scripts/markdown_links.py index b8aab58dd..e2ad8a714 100644 --- a/.agents/skills/docs-governance/scripts/markdown_links.py +++ b/.agents/skills/docs-governance/scripts/markdown_links.py @@ -18,6 +18,9 @@ REFERENCE_DEFINITION_RE = re.compile( REFERENCE_USAGE_RE = re.compile( r"(?[^\]\n]+)\](?:\[(?P