KB-2B9E

commands.sh

2 min read Revision 1

#!/usr/bin/env bash

FIX7 P0 dry-run + execution-readiness packet — executable gate runner.

Staging/paper evidence only: runs the dry-run validator + adversarial probes.

Mutates nothing in production; touches no PG/Directus/registry-row/system_issues;

no REAL_RUN/QT001/cutover.

set -u cd "$(dirname "$0")"

echo "== FIX7 P0 DRYRUN PACKET — commands.sh =="

python3 dryrun_validator.py V_EXIT=$? echo "validator_exit=${V_EXIT}"

python3 bad_input_probes.py P_EXIT=$? echo "probes_exit=${P_EXIT}"

OVERALL="PASS" if [ "${V_EXIT}" -ne 0 ] || [ "${P_EXIT}" -ne 0 ]; then OVERALL="FAIL" fi echo "OVERALL_RESULT: ${OVERALL}"

if [ -f exit_codes.json ]; then EXP_V=$(python3 -c "import json;print(json.load(open('exit_codes.json'))['dryrun_validator.py'])") EXP_P=$(python3 -c "import json;print(json.load(open('exit_codes.json'))['bad_input_probes.py'])") if [ "${V_EXIT}" = "${EXP_V}" ] && [ "${P_EXIT}" = "${EXP_P}" ]; then echo "EXIT_CODES_MATCH: YES" else echo "EXIT_CODES_MATCH: NO (got ${V_EXIT}/${P_EXIT} expected ${EXP_V}/${EXP_P})" OVERALL="FAIL" fi fi

[ "${OVERALL}" = "PASS" ] && exit 0 || exit 1

Back to Knowledge Hub knowledge/dev/reports/architecture/fix7-p0-dryrun-and-execution-readiness-packet-2026-06-11/commands.sh