#!/bin/bash set -euo pipefail echo "🧰 Verifying AI Brain chain..." OK=1 req=( "$HOME/Desktop/AI_Brain" "$HOME/Desktop/AI_Brain/logs" "$HOME/Desktop/AI_Brain/webroot" ) for p in "${req[@]}"; do if [ -e "$p" ]; then echo "✅ Exists: $p"; else echo "❌ Missing: $p"; OK=0; fi done echo "🔎 Recent logs:" ls -lt "$HOME/Desktop/AI_Brain/logs" 2>/dev/null | head || true [ "$OK" -eq 1 ] && echo "✅ Chain looks healthy." || { echo "🛠️ Run healer modules to auto-fix."; exit 1; }