FIX7 P0 No-Production Execution — commands.sh
#!/usr/bin/env bash
FIX7 P0 NO-PRODUCTION implementation-execution & review packet -- gate runner.
No production mutation; touches no PG/Directus/system_issues/registry-row/CI; no REAL_RUN/QT001/cutover.
(1) mandatory hardened rollback gate; (2) 15 execution-specific bad-input probes.
set -u cd "$(dirname "$0")"
echo "== FIX7 P0 NO-PRODUCTION EXECUTION -- commands.sh =="
python3 rollback_gate_driver.py G_EXIT=$? echo "gate_exit=${G_EXIT}"
python3 execution_bad_input_probes.py P_EXIT=$? echo "probes_exit=${P_EXIT}"
OVERALL="PASS" if [ "${G_EXIT}" -ne 0 ] || [ "${P_EXIT}" -ne 0 ]; then OVERALL="FAIL" fi
if [ -f exit_codes.json ]; then EXP_G=$(python3 -c "import json;print(json.load(open('exit_codes.json'))['rollback_gate_driver.py'])") EXP_P=$(python3 -c "import json;print(json.load(open('exit_codes.json'))['execution_bad_input_probes.py'])") if [ "${G_EXIT}" = "${EXP_G}" ] && [ "${P_EXIT}" = "${EXP_P}" ]; then echo "EXIT_CODES_MATCH: YES" else echo "EXIT_CODES_MATCH: NO (got ${G_EXIT}/${P_EXIT} expected ${EXP_G}/${EXP_P})" OVERALL="FAIL" fi fi
echo "OVERALL_RESULT: ${OVERALL}" [ "${OVERALL}" = "PASS" ] && exit 0 || exit 1