25 lines
866 B
Bash
25 lines
866 B
Bash
#!/usr/bin/env bash
|
|
# Sol-lane daily profile-state triage -- gate for 2026-10-27.
|
|
#
|
|
# Two legs, one command:
|
|
# 1. Re-derive the report from the live profile (build_daily_triage_2026-10-27.py).
|
|
# 2. Re-derive the counts from the live filesystem (verify_daily_triage_2026-10-27.py)
|
|
# and assert the regenerated report matches. Exit 0 only if leg 2 passes.
|
|
#
|
|
# The exit code of this script IS the verdict (0 = correct, nonzero = wrong).
|
|
set -u
|
|
cd "$(dirname "$0")" || exit 2
|
|
|
|
echo '== leg 1: build report from the live profile =='
|
|
python3 build_daily_triage_2026-10-27.py >/dev/null || { echo 'GEN LEG FAIL'; exit 1; }
|
|
|
|
echo '== leg 2: verify report against live filesystem =='
|
|
python3 verify_daily_triage_2026-10-27.py
|
|
rc=$?
|
|
if [ "$rc" -eq 0 ]; then
|
|
echo '== GEN_AND_VERIFY GREEN =='
|
|
else
|
|
echo "== GEN_AND_VERIFY RED (verify rc=$rc) =="
|
|
fi
|
|
exit "$rc"
|