#!/bin/bash # run_entry_gate.sh — Run all 5 anti-smuggle layers. # Exit on first failure. set -euo pipefail echo "============================================" echo " Anti-Smuggle Entry Gate" echo "============================================" echo "" echo "=== Layer 0: Determinism ===" python3 scripts/check_determinism.py --seed 0 --check-all || exit 1 echo "" echo "=== Layer 1: Cross-Validation ===" # Cross-validation requires two independently generated proofs. # Skipped by default — run manually with: # python3 scripts/cross_validate.py --model-a A.lean --model-b B.lean echo " SKIP (manual: cross_validate.py --model-a FILE --model-b FILE)" echo "" echo "=== Layer 2: Mutation Testing ===" python3 -m scripts.qc_flag.mutation_generator 2>/dev/null echo " Generate: python3 -c \"from scripts.qc_flag.mutation_generator import *; generate_all()\"" echo " Run: for mut in scripts/qc_flag/mutations/*.lean; do ... done" echo "" echo "=== Layer 3: CAS/SMT Grounding ===" python3 scripts/verify_with_sympy.py || exit 1 echo "" echo "=== Layer 4: Build Gate ===" echo " lake build SilverSightRRC" echo "" echo "============================================" echo " Entry gate complete" echo "============================================"