Files
llm-intelligence/scripts/review/root_cause_summary_guard.sh
2026-05-29 18:48:48 +08:00

12 lines
225 B
Bash
Executable File

#!/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"