Verify Run
Path:
loom-builder/scripts/verify-run.shRelative: scripts/verify-run.shSubproject: loom-builderCategory: dispatch-scriptsLines: 80Bytes: 2,593Imports: 0Exports: 0
Content Preview
- #!/usr/bin/env bash
- # verify-run.sh — verify a loom-builder run directory.
- # Usage: scripts/verify-run.sh <runDir>
- # Exit 0 = verified, non-zero = one-line reason to stderr.
- set -euo pipefail
- RUN_DIR="${1:-}"
- if [[ -z "$RUN_DIR" ]]; then
- echo "usage: scripts/verify-run.sh <runDir>" >&2
- exit 1
- fi
- if [[ ! -d "$RUN_DIR" ]]; then
- echo "FAIL: run dir not found: $RUN_DIR" >&2
- exit 1
- fi
- # 1. MANIFEST.json must parse and have verdict=COMPLETE
- MANIFEST="$RUN_DIR/MANIFEST.json"
- if [[ ! -f "$MAN