- Institutional / JVMTM / reserve-provenance / GRU transport + standards JSON - Validation and verify scripts (Blockscout labels, x402, GRU preflight, P1 local path) - Wormhole wiring in AGENTS, MCP_SETUP, MASTER_INDEX, 04-configuration README - Meta docs, integration gaps, live verification log, architecture updates - CI validate-config workflow updates Operator/LAN items, submodule working trees, and public token-aggregation edge routes remain follow-up (see TODOS_CONSOLIDATED P1). Made-with: Cursor
63 lines
2.6 KiB
Bash
Executable File
63 lines
2.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run all tasks that do NOT require LAN, Proxmox SSH, PRIVATE_KEY, or NPM_PASSWORD.
|
|
# Use from dev machine / WSL / CI. For tasks that need LAN/creds, see run-operator-tasks-from-lan.sh.
|
|
# Usage: ./scripts/run-completable-tasks-from-anywhere.sh [--dry-run]
|
|
# --dry-run Print the four steps only; do not run them (exit 0).
|
|
#
|
|
# Exit codes (Unix convention): 0 = success (all steps passed), non-zero = failure.
|
|
# Do not "fix" exit 0 — it means the script completed successfully.
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
cd "$PROJECT_ROOT"
|
|
|
|
DRY_RUN=false
|
|
for a in "$@"; do [[ "$a" == "--dry-run" ]] && DRY_RUN=true && break; done
|
|
|
|
if $DRY_RUN; then
|
|
echo "=== Completable from anywhere (--dry-run: commands only) ==="
|
|
echo ""
|
|
echo "1. Config validation: bash scripts/validation/validate-config-files.sh [--dry-run]"
|
|
echo " (optional: python3 -m pip install check-jsonschema — step 1 then validates config/dbis-institutional JSON Schemas too)"
|
|
echo "2. On-chain check (138): SKIP_EXIT=1 bash scripts/verify/check-contracts-on-chain-138.sh || true"
|
|
echo "3. All validation: bash scripts/verify/run-all-validation.sh --skip-genesis"
|
|
echo "4. Public report API: SKIP_EXIT=1 bash scripts/verify/check-public-report-api.sh || true"
|
|
echo "5. Reconcile .env: bash scripts/verify/reconcile-env-canonical.sh --print"
|
|
echo ""
|
|
echo "Run without --dry-run to execute. Exit 0 = success."
|
|
exit 0
|
|
fi
|
|
|
|
echo "=== Completable from anywhere (no LAN/creds) ==="
|
|
echo ""
|
|
|
|
# 1. Config validation
|
|
echo "[Step 1/5] Config validation..."
|
|
bash scripts/validation/validate-config-files.sh
|
|
echo ""
|
|
|
|
# 2. On-chain contract check (Chain 138) — may warn if RPC unreachable
|
|
echo "[Step 2/5] On-chain contract check (Chain 138)..."
|
|
SKIP_EXIT=1 bash scripts/verify/check-contracts-on-chain-138.sh || true
|
|
echo ""
|
|
|
|
# 3. Full validation (skip genesis to avoid RPC)
|
|
echo "[Step 3/5] Run all validation (--skip-genesis)..."
|
|
bash scripts/verify/run-all-validation.sh --skip-genesis
|
|
echo ""
|
|
|
|
# 4. Emit canonical .env lines for reconciliation
|
|
echo "[Step 4/5] Public report API / token-aggregation health..."
|
|
SKIP_EXIT=1 bash scripts/verify/check-public-report-api.sh || true
|
|
echo ""
|
|
|
|
# 5. Emit canonical .env lines for reconciliation
|
|
echo "[Step 5/5] Canonical .env (reconcile smom-dbis-138/.env)..."
|
|
bash scripts/verify/reconcile-env-canonical.sh --print
|
|
echo ""
|
|
|
|
echo "=== Done. Tasks requiring LAN or credentials: run scripts/run-operator-tasks-from-lan.sh from a host on LAN with NPM_PASSWORD/PRIVATE_KEY set. ==="
|
|
exit 0
|