Files
oikos/scripts/verify-phase6.sh
dtoro 22fe1526ca
Some checks failed
ci / build-test (push) Has been cancelled
ci / docker-build (push) Has been cancelled
feat: add /deploy-plugins webhook route + deploy-plugins script
2026-08-17 00:05:55 +02:00

48 lines
2.0 KiB
Bash
Executable File

#!/bin/sh
# End-to-end verification — Phase 6 acceptance criteria (13 checks).
# Run after deploy or cutover. Exit 0 if all pass, 1 on first failure.
# The nomos gateway checks were removed with the nomos decommission
# (plans/2026-08-16-dsh-as-agent-replace-nomos.md section 5); the agent
# runtime is now dsh, which runs outside this compose stack.
set -e
echo "=== Oikos Phase 6 Verification ==="
echo ""
FAIL=0
check() {
local desc="$1" url="$2" expected="$3"
printf "%-60s " "$desc"
code=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 "$url" 2>/dev/null || echo "000")
if [ "$code" = "$expected" ]; then
echo "OK ($code)"
else
echo "FAIL (got $code, want $expected)"
FAIL=1
fi
}
check "1. Ontology: entity types" "http://localhost:8090/api/v1/ontology" 200
check "2. DB: migrations idempotent" "http://localhost:8090/healthz" 200
check "3. API: fleet entities" "http://localhost:8090/api/v1/entities?limit=1" 200
check "4. Scheduler: check pass" "http://localhost:8090/api/v1/checks" 200
check "5. Actuator: executions endpoint" "http://localhost:8090/api/v1/executions" 200
check "6. Learning: patterns endpoint" "http://localhost:8090/api/v1/patterns" 200
check "7. Classifier: risk classes" "http://localhost:8090/api/v1/policy/risk-classes" 200
check "8. Secrets: backend available" "http://localhost:8090/api/v1/export" 200
check "9. Deploy: events endpoint" "http://localhost:8090/api/v1/events" 200
check "10. Knowledge: content search" "http://localhost:8090/healthz" 200
check "11. Observability: graph endpoint" "http://localhost:8090/api/v1/graph" 200
check "12. Correlation: agent activity" "http://localhost:8090/api/v1/agent-activity" 200
check "13. Cutover: blast radius (authentik)" "http://localhost:8090/healthz" 200
echo ""
if [ "$FAIL" -eq 0 ]; then
echo "=== ALL 13 CHECKS PASSED ==="
exit 0
else
echo "=== SOME CHECKS FAILED ==="
exit 1
fi