Allow standing triage disclosure link

Change-source: pulse-maintainer
This commit is contained in:
rcourtman
2026-08-26 11:11:04 +01:00
parent 4442322d2a
commit 420368e8e2
@@ -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: