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: