SOL-BASHRS-004 // bashrs

Anti-Vacuity File-Count Verifier

Fail-loud CI guard ensuring glob-matched artifact suites never pass silently when zero files are discovered.

Measured delta: Eliminates silent 0-file CI false passes (anti-vacuity >= 100)

Anti-Vacuity File-Count Verifier receipt poster
Verified CLI Version
bashrs 7.5.0 (commit: b634edc7642354d208deb431a9a6f2c0d76616b1)
Receipt SHA-256
04a8121b993a1c6396309003a283df0ffd2ad060e98b4cb767974c3f78b0adf5

Before (Failing Anti-Pattern)

#!/bin/bash
for f in site/public/*.html; do test -f "$f"; done # passes vacuously on 0 files

After (Verified Code)

#!/usr/bin/env bash
set -euo pipefail
COUNT="$(find site/public -name '*.html' | wc -l)"
if [ "${COUNT}" -lt 100 ]; then
  printf 'anti-vacuity fail: found %s html files\n' "${COUNT}" >&2
  exit 1
fi

Verification Contract

schema: bashrs.contract.v1
rules:
  - CI001: anti-vacuity-nonzero
  - SEC002: quoted-integer-compare
max_warnings: 0

Verified CLI Command & Output

$ bashrs lint --strict anti-vacuity.sh
bashrs lint: 0 errors, 0 warnings (anti-vacuity guard verified)