aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / microjob / tools / check-collective.sh
| 1 | #!/usr/bin/env bash |
| 2 | # External verification instrument, discovered by the existing c-vectors gate. |
| 3 | set -euo pipefail |
| 4 | ROOT=$(cd "$(dirname "$0")/../../.." && pwd) |
| 5 | PKT=$ROOT/specs/microjob/collective-fixtures |
| 6 | for tool in cargo rustc; do command -v "$tool" >/dev/null || { echo "NOT_RUN: missing $tool"; exit 3; }; done |
| 7 | cargo --version |
| 8 | rustc --version |
| 9 | mkdir -p "$ROOT/target" |
| 10 | TASK=$(mktemp -d "$ROOT/target/collective-fixtures.XXXXXXXX") |
| 11 | trap 'rm -rf "$TASK"' EXIT |
| 12 | cargo build --offline --locked --release --manifest-path "$PKT/oracle/rust-probe/Cargo.toml" --target-dir "$TASK" |
| 13 | RUST_PROBE="$TASK/release/ocf-probe" bash "$PKT/run-host.sh" |