Files
dotfiles/scripts
GandClaude Fable 5 5bf16cb34c fix(ci): a failed fetch is not a finding — the audit now withholds what it cannot see (#33)
Two defects in the auditor itself, both found by turning its own
discipline back on it:

1. Every remote read was `gh api ... 2>/dev/null`, and the empty string
   a failure yields was read as a FACT. One sweep produced four wrong
   verdicts: vitareba and aoz-housing (live Next.js apps) vanished as
   "not a JS repo"; ai-forms and fleetcrown were accused of never
   running `verify` when their ci.yml does exactly that. Fetches now
   return three states — fetched / genuinely absent (404) / could not
   look — and every caller withholds its verdict on the third instead
   of charging the repo. A 404 is an answer and is not retried; neither
   is an exhausted rate limit (seconds of backoff cannot outlive an
   hour-long window). Transient failures retry with backoff.

2. `⊗ UNCALLED` string-matched `npm run verify`, but the property that
   matters is weaker: every gate `verify` composes runs in CI,
   unsoftened. aoz-housing satisfies it by fanning the gates into
   parallel jobs — the rule was asking a conforming repo to serialize
   the fleet-slowest pipeline to please a regex. Decomposed wiring now
   reports as informational `≡ DECOMPOSED`; botsmann's shape (hand-copy
   with --if-present on every step) is still caught.

The transport lives in verify-predicates.sh so tests can stub `gh`:
29 cases cover both rules in both directions and all three fetch
states, and a mutation run (collapse `return 1` into `return 2`)
turns exactly the two relevant cases red. Post-fix sweep: 23 repos
inspected, 0 below floor, 3 fetch failures withheld instead of
reported as findings.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 12:33:27 +00:00
..