clawchain/scripts/check-mainnet-capacity-gate.sh
caelum0x 22a55b5f87 fix: make all 162 scripts executable + add P21 to execution board
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:00:00 +03:00

28 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
if [[ ! -f docs/mainnet-capacity-criteria.md ]]; then
echo "ERROR: missing docs/mainnet-capacity-criteria.md." >&2
exit 1
fi
if ! rg -n 'Acceptance Thresholds|Runtime readiness latency|Fresh-machine acceptance|Startup determinism|Peer baseline|Chain responsiveness' docs/mainnet-capacity-criteria.md >/dev/null; then
echo "ERROR: docs/mainnet-capacity-criteria.md missing required acceptance threshold sections." >&2
exit 1
fi
if ! rg -n 'fresh-machine-acceptance-gate|runtime-readiness-gate|release-evidence.json' docs/mainnet-capacity-criteria.md >/dev/null; then
echo "ERROR: docs/mainnet-capacity-criteria.md missing required gate/evidence references." >&2
exit 1
fi
if ! rg -n '^fresh-machine-acceptance-gate:|^runtime-readiness-gate:' Makefile >/dev/null; then
echo "ERROR: Makefile missing required readiness/capacity gate targets." >&2
exit 1
fi
echo "mainnet capacity gate passed."