From 420368e8e2508bb4fa67c2b7aba5ea91d819772b Mon Sep 17 00:00:00 2001 From: rcourtman Date: Wed, 26 Aug 2026 11:11:04 +0100 Subject: [PATCH] Allow standing triage disclosure link Change-source: pulse-maintainer --- scripts/tests/test_repo_docs_link_drift.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/tests/test_repo_docs_link_drift.py b/scripts/tests/test_repo_docs_link_drift.py index f17c97e2f..eae0c5f2a 100644 --- a/scripts/tests/test_repo_docs_link_drift.py +++ b/scripts/tests/test_repo_docs_link_drift.py @@ -16,6 +16,11 @@ FORBIDDEN_PATTERNS = ( re.compile(r"https://raw\.githubusercontent\.com/[^/\s\"')]+/[^/\s\"')]+/(?:main|master)/docs/"), ) +ALLOWED_BRANCH_TIP_DOC_URLS = { + # Triage replies must always link to the current process disclosure. + "https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md", +} + SKIP_DIR_NAMES = { ".claude", ".git", @@ -80,6 +85,9 @@ class RepoDocsLinkDriftTest(unittest.TestCase): except UnicodeDecodeError: continue + for allowed_url in ALLOWED_BRANCH_TIP_DOC_URLS: + content = content.replace(allowed_url, "") + for pattern in FORBIDDEN_PATTERNS: match = pattern.search(content) if match: