diff --git a/scripts/wiki/lint.ps1 b/scripts/wiki/lint.ps1 index 9160373..fc4ed78 100644 --- a/scripts/wiki/lint.ps1 +++ b/scripts/wiki/lint.ps1 @@ -26,9 +26,10 @@ repository the evidence can cite: a citation from a repository left off the list reads dead. EVIDENCE LINT CANNOT CHECK IS COUNTED AS UNCHECKED, never as passing and never as dead: an Owner - ruling, a `memory:` source, any citation when no -EvidenceRepo is given, and a pull request - without -Online. The report prints the count, so a zero dead count over nothing checked cannot - be read as clean. + ruling, a `memory:` source, any citation when no -EvidenceRepo is given, a pull request + without -Online, and an all-digit token of more than eight digits that resolves as no commit + (a comment or run id). The report prints the count, so a zero dead count over nothing checked + cannot be read as clean. PROMOTION IS LISTED, NEVER ACTED ON. Drafting the playbook pull request is the scheduled Claude Code job's work. It opens that pull request as a DRAFT titled `wiki promotion: ` from a @@ -237,6 +238,10 @@ foreach ($k in $byKey.Keys) { # ------------------------------------------------------------------------------------ 2. dead evidence $shaRx = [regex]'\b(?=[0-9a-f]*[0-9])[0-9a-f]{7,40}\b' +# More than eight digits and no letter is a GitHub comment or Actions run id far more often than a +# commit (wiki event 20261017T191602866Z-e4idhk). It is still looked up, so a real all-digit short +# sha resolves; one that resolves nowhere is unchecked rather than dead. +$digitIdRx = [regex]'^\d{9,}$' $refPathRx = [regex]'(?