#!/usr/bin/env bash set -euo pipefail packet=/mnt/storage/src/mosaic-stack/agents/rocko/work/queue-85/r1 [ -z "$(git branch --show-current)" ] || { echo 'detached worktree required' >&2;exit 2; } export DOCKER_HOST=unix:///nonexistent.sock sha256sum -c "$packet/candidate-manifest.sha256" git diff --check node --test --test-concurrency=2 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 absolute output directory}"