#!/bin/bash # z-ai harness init — verifies ESO secret mount exists # M22 Phase 9 Wave 4 set -euo pipefail echo "=== z-ai/v1 init ===" SECRETS_DIR="/run/agent/secrets/z-ai" if [ ! -d "$SECRETS_DIR" ]; then echo "ERROR: ESO secret mount not found at $SECRETS_DIR" >&2 echo "Has the dispatcher been configured with ESO-managed secrets?" >&2 exit 1 fi echo "z-ai ESO secret mount verified at $SECRETS_DIR" echo "=== z-ai/v1 init complete ==="