swactor/tools/myelin-e2e-fuzz/scripted_safety_gate.sh
Zachery Aaron Shores-Chmielewski 6b8b1de897 fuzz: checkpoint reusable fleet campaigns and ordered qualification
Extend the existing IR, generated Python workloads, independent oracle, regression corpus, resource accounting, and shrinker for the five-node normal/recovery/survivor campaign. Retain exact fixture identities across attempts and persist coverage, failure, timing, and cleanup evidence.

Add raw Docker/SSH redeployment fixtures, bounded campaign execution, durable paid-run cleanup state, ordered gate attestation, and scripted-provider safety scenarios. Include the offline oracle reproduction utility for focused diagnosis. Preserve paid access guards; no paid acceptance is claimed.

Review verification: 169 harness library tests and 4 ordered-attestation tests passed. The retained ordered run passed Gate A and the full local campaign, then exceeded the complete workflow timing ceiling before later safety checks.
2026-09-14 12:21:09 +03:00

16 lines
783 B
Bash
Executable file

#!/usr/bin/env bash
# Gate B only: run after Gate A. Every scenario invokes the real paid CLI
# against an independently owned loopback HTTP provider and request ledger.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
OUT="${1:-$ROOT/target/vastai-gate-b-scripted-1}"
cd "$ROOT"
TARGET="${CARGO_TARGET_DIR:-$ROOT/target}"
# An ordered owner can supply its already-built immutable binary. Standalone
# invocation builds both required binaries once, never once per scenario.
if [ -z "${SCRIPTED_HARNESS_BINARY:-}" ]; then
cargo build --release -q -p myelin --bins -p myelin-e2e-fuzz
SCRIPTED_HARNESS_BINARY="$TARGET/release/myelin-e2e-fuzz"
fi
exec python3 -E -B "$ROOT/tools/myelin-e2e-fuzz/scripted_provider.py" \
--gate "$ROOT" "$OUT" "$SCRIPTED_HARNESS_BINARY"