From e41e2ccd6529f053b39f59d43ad18cdf1ca515c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Thu, 1 Oct 2026 09:23:18 -0400 Subject: [PATCH] Stopped the disclosure check failing on the guide that documents it repo_checks has been red on dev since the contribution guide landed. The guide explains the disclosure convention, so it spells the accepted text and discusses AI assistance in prose, and the near-miss rule flags any line mentioning AI assistance that is not the fixed text character for character. Documenting the rule was therefore a violation of it. The guide is now excluded from the scan, for the same reason this script already excludes itself: it has to spell the text in order to explain it. GUIX carried the same defect and took the same fix. Verified that the check still catches what it is for: a second disclosure line in a source file still fails it, and the tree passes without one. Assisted-by: Claude Code (Opus 5) --- scripts/check_ai_disclosure.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/check_ai_disclosure.sh b/scripts/check_ai_disclosure.sh index d9707ac9..6dc8a2f2 100755 --- a/scripts/check_ai_disclosure.sh +++ b/scripts/check_ai_disclosure.sh @@ -52,13 +52,19 @@ set -euo pipefail readonly ROOT="$(cd "$(dirname "$(realpath "$0")")/.." && pwd)" readonly SELF='scripts/check_ai_disclosure.sh' + +# The contribution guide is excluded for the same reason this script is: it has +# to spell the disclosure text in order to explain it, and it discusses AI +# assistance in prose besides. Scanning it turns documenting the rule into a +# violation of it. +readonly GUIDE='CONTRIBUTING.md' readonly FIXED='Portions of this file were generated with AI assistance.' cd "${ROOT}" # Tracked files only. A build tree is not this repository's text to police, # and scanning one would make the check depend on whether somebody had built. -mapfile -d '' -t FILES < <(git ls-files -z | grep -zZv "^${SELF}$") +mapfile -d '' -t FILES < <(git ls-files -z | grep -zZv "^${SELF}$" | grep -zZv "^${GUIDE}$") status=0