#!/bin/bash # WEVIA self_meta diagnostic - 22avr2026 echo "=== WEVIA MASTER SELF_META ===" REG=/opt/wevia-brain/wevia-tool-registry.json if [ -f "$REG" ]; then V=$(jq -r .v $REG 2>/dev/null) C=$(jq -r .count $REG 2>/dev/null) T=$(jq -r '.tools | length' $REG 2>/dev/null) echo "Tool registry: v$V count=$C tools_array=$T" fi PI=$(wc -l < /opt/wevia-brain/priority-intents-nl.json 2>/dev/null) echo "Priority intents NL: $PI lines" BJ=$(find /opt/wevia-brain -maxdepth 2 -name "*.json" 2>/dev/null | wc -l) echo "Brain knowledge JSONs: $BJ" TI=$(ls /opt/weval-ops/top-ia/ 2>/dev/null | wc -l) echo "Top-IA scripts: $TI" PL=$(find /opt/weval-plugins -maxdepth 2 -type d 2>/dev/null | wc -l) echo "Plugins dirs: $PL" DF=$(find /opt/deer-flow -name "*.py" 2>/dev/null | wc -l) echo "DeerFlow Python scripts: $DF" DC=$(ls /var/www/html/wiki/doctrine-*.md 2>/dev/null | wc -l) echo "Doctrines wiki: $DC" CR=$(ls /etc/cron.d/wevia* 2>/dev/null | wc -l) echo "Active WEVIA crons: $CR" echo "" echo "=== ARCHITECTURE ===" echo "S204 nginx PHP-FPM dual-pool · S95 PMTA email PostgreSQL · 0eur/month all sovereign" echo "Pipeline: nl-priority(80) -> pareto -> fast-path-v3 -> opus-intents(66) -> conv-guard -> arena -> dynamic-resolver -> wave200 -> gap-intents -> master-router -> LLM"