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

15 lines
334 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
REPORT_PATH="${1:?review file required}"
CONTENT="$(cat "$REPORT_PATH")"
if [[ "$CONTENT" == *'替换'* ]]; then
if [[ "$CONTENT" != *'freshness_hint=same-day-blocker-switch'* ]]; then
echo "missing blocker switch freshness hint" >&2
exit 1
fi
fi
echo "BLOCKER_SWITCH_GUARD: PASS"