#!/usr/bin/bash
# overdeck-seat-guard v3 — DO NOT EDIT. Reinstall with ~/.claude/bin/install-seat-guard
if grep -qE '(^|/)agent-seat-[^/]+\.scope' /proc/self/cgroup 2>/dev/null; then
  cat >&2 <<'MSG'
BLOCKED: claude-code-proxy may not run inside an agent seat scope.

Use the seat launcher for nested Claude/claudex/proxy work inside seats.
MSG
  exit 97
fi
echo "seat-guard: claude-code-proxy wrapper is block-only; operator PATH must not prepend guard bin" >&2
exit 126
