#!/usr/bin/env bash # Run from the patched detached worktree. The packet stays in the canonical checkout. set -euo pipefail packet=/mnt/storage/src/mosaic-stack/agents/rocko/work/queue-94/r1 if [[ -n $(git branch --show-current) ]]; then echo 'verify requires a detached worktree' >&2 exit 2 fi sha256sum -c "$packet/candidate-manifest.sha256" git diff --check node --test packages/bus/tests/*.test.mjs node --test --test-concurrency=2 packages/cli/tests/*.test.mjs node --test --test-concurrency=2 packages/webui/tests/*.test.mjs python "$packet/gate.py" "${1:?pass an output directory}"