Selbstkritik-Feed: Journal-Syntax, doppelte Nullen, Allowlist-blinde Messung

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-07-03 15:04:42 +02:00
parent 8b0e14db7c
commit a682e3c4e7
+10 -10
View File
@@ -17,23 +17,23 @@ echo "### Token-Verbrauch / Cloud-Ersparnis:"
curl -sf --max-time 15 http://127.0.0.1:9001/api/system/token-stats | jq -c . 2>/dev/null \
|| echo "(nicht erreichbar)"
echo
echo "### Prompt-Größen je Lane (Diät-Kontrolle; Voice sollte DEUTLICH unter cli liegen):"
for p in api_server cli telegram; do
echo "$p:"
bash -lc "hermes prompt-size --platform $p" 2>/dev/null | grep -E "total|Tool schemas" || echo " (Messung fehlgeschlagen)"
done
echo "### Prompt-Budget (Hinweis: prompt-size ist Allowlist-blind — die Voice-Lane hat real"
echo "### deutlich weniger Tools; als Trend-Wächter für den GESAMT-Bestand trotzdem nützlich):"
bash -lc "hermes prompt-size" 2>/dev/null | grep -E "total|skills index|Tool schemas" || echo " (Messung fehlgeschlagen)"
echo
echo "### Gateway-Journal: häufigste Warnungen/Fehler der letzten 30 Tage (Anzahl · Muster):"
journalctl --user -u hermes-gateway -p warning --since "-30 days" --no-pager 2>/dev/null \
journalctl --user -u hermes-gateway -p warning --since "30 days ago" --no-pager 2>/dev/null \
| grep -oE "(WARNING|ERROR)[^:]*: .{0,90}" | sed "s/[0-9]\{3,\}/N/g" | sort | uniq -c | sort -rn | head -12 \
|| echo "(Journal nicht lesbar)"
|| echo "(keine oder Journal nicht lesbar)"
echo
echo "### Tool-Loop-Guardrail-Treffer (letzte 30 Tage):"
journalctl --user -u hermes-gateway --since "-30 days" --no-pager 2>/dev/null \
| grep -ci "loop guard\|hard_stop\|tool loop" || echo "0"
n=$(journalctl --user -u hermes-gateway --since "30 days ago" --no-pager 2>/dev/null \
| grep -ci "loop guard\|hard_stop\|tool loop" || true)
echo "${n:-0}"
echo
echo "### Skill-Bestand & Curator:"
bash -lc "hermes curator status" 2>/dev/null | head -14 || echo "(Curator-Status fehlgeschlagen)"
echo
echo "### Meldeweg-Ausfälle (notify.sh-Fallbacks, letzte 30 Tage):"
grep -c "FALLBACK" "$HOME/mc2-notify.log" 2>/dev/null || echo "0"
n=$(grep -c "FALLBACK" "$HOME/mc2-notify.log" 2>/dev/null || true)
echo "${n:-0}"