KB-50FF

FIX7 P0 planning packet — commands.sh

2 min read Revision 1
tool-kiem-thufix7p0implementation-planningnon-authority2026-06-11

#!/usr/bin/env bash

FIX7 P0 implementation-planning packet — executable gate runner.

Paper-only: runs the planning validator + adversarial probes. Mutates nothing

in production; touches no PG/Directus/registry-row/system_issues; no REAL_RUN.

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

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

python3 planning_packet_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}"

Compare against committed exit_codes.json (byte-stable expectation).

if [ -f exit_codes.json ]; then EXP_V=$(python3 -c "import json;print(json.load(open('exit_codes.json'))['planning_packet_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-implementation-planning-packet-2026-06-11/commands.sh