Files
llm-intelligence/scripts/review/root_cause_summary_guard.sh

12 lines
225 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -euo pipefail
STATUS_FILE="${1:?phase status file required}"
if ! grep -q '^ROOT_CAUSE class=' "$STATUS_FILE"; then
echo "missing root cause summary" >&2
exit 1
fi
echo "ROOT_CAUSE_GUARD: PASS"