#!/bin/bash # .claude/helpers/pre_commit_behavioral_suite.sh # # SP15 Phase 2 — behavioral suite gate. Blocks argo-train.sh if any # behavioral test fails. Suite runs <10 min on dev RTX 3050 Ti. set -euo pipefail cd "$(git rev-parse --show-toplevel)" echo "Running SP15 behavioral suite (gate for argo-train.sh)..." if ! SQLX_OFFLINE=true CUDA_COMPUTE_CAP=86 \ cargo test -p ml --test behavioral_suite --features cuda \ -- --include-ignored --test-threads=1 2>&1 \ | tee /tmp/sp15_behavioral_suite.log; then echo "Behavioral suite FAILED. argo-train.sh blocked." echo " See /tmp/sp15_behavioral_suite.log for details." exit 1 fi echo "Behavioral suite PASS — argo-train.sh unblocked."