KB-69BD

FIX7 P0 Final Pre-Real-Data — commands.sh

2 min read Revision 1
tool-kiem-thufix7p0final-pre-real-datareadiness-packet2026-06-12

#!/bin/sh

FIX7 P0 - final pre-real-data readiness packet :: command evidence.

Regenerates the surrogate in a FRESH mktemp staging dir and re-proves the

whole chain. NO production contact, NO CI trigger, NO secrets.

set -u HERE=$(cd "$(dirname "$0")" && pwd) cd "$HERE" overall=0

STAGE=$(mktemp -d /private/tmp/fix7-final-surrogate.XXXXXX) || exit 1 echo "staging: $STAGE (isolated mktemp; disposed at the end)"

echo "== [1/4] generate production-shaped surrogate (deterministic) ==" python3 generate_production_shaped_surrogate.py "$STAGE/surrogate_birth_clone.db" || overall=1

echo "== [2/4] rehearsal: before -> gated birth -> rollback (writes rollback-evidence.json + surrogate-rehearsal-execution-evidence.json) ==" python3 surrogate_rehearsal.py "$STAGE/surrogate_birth_clone.db" "$HERE" || overall=1

echo "== [3/4] canonical hardened validator (writes hardened-validator-result.json) ==" python3 run_hardened_validator.py || overall=1

echo "== [4/4] bad-input probes (writes bad-input-probes.json) ==" python3 bad_input_probes.py || overall=1

rm -rf "$STAGE" echo "staging disposed"

if [ "$overall" -eq 0 ]; then echo "FINAL_PRE_REAL_DATA_COMMANDS: OVERALL PASS" else echo "FINAL_PRE_REAL_DATA_COMMANDS: OVERALL FAIL" fi exit "$overall"

Back to Knowledge Hub knowledge/dev/reports/architecture/fix7-p0-final-pre-real-data-readiness-packet-2026-06-12/commands.sh