clawchain/scripts/check-phase16-operator-ux-gate.sh
caelum0x 22a55b5f87 fix: make all 162 scripts executable + add P21 to execution board
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:00:00 +03:00

41 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
required_paths=(
scripts/weekly-maintenance.sh
docs/phase16-operator-ux-hardening.md
cmd/clawd/src/commands/release-summary.ts
)
for p in "${required_paths[@]}"; do
if [[ ! -f "$p" ]]; then
echo "ERROR: missing Phase 16 Track C artifact '$p'." >&2
exit 1
fi
done
if ! rg -n '^weekly-maintenance:' Makefile >/dev/null; then
echo "ERROR: Makefile missing weekly-maintenance target." >&2
exit 1
fi
if ! rg -n 'release-summary' cmd/clawd/src/main.ts cmd/clawd/src/commands/release-summary.ts >/dev/null; then
echo "ERROR: clawd release-summary command not wired." >&2
exit 1
fi
if ! rg -n 'remediationHint|getCheckRemediationHint' cmd/clawd/src/commands/doctor.ts >/dev/null; then
echo "ERROR: doctor --json remediation hints not present." >&2
exit 1
fi
if rg -n '\bTBD\b|\bPending\b' docs/phase16-operator-ux-hardening.md >/dev/null; then
echo "ERROR: operator UX hardening doc contains placeholder values." >&2
exit 1
fi
echo "phase16 operator UX gate passed."