File AI-detected Varaverk defects as deduped reports, surfaced on the AI tab and counted in the coffee report

This commit is contained in:
Gmer4Lfe
2026-08-05 20:48:54 -04:00
parent 9d4a62fa5e
commit 2c5e412d91
5 changed files with 213 additions and 1 deletions
@@ -184,6 +184,19 @@ echo "━━━━━ ☕ COFFEE REPORT SUMMARY ━━━━━"
echo "🖥️ Host: $MY_ID"
echo "⏱️ Done: $(date '+%Y-%m-%d %H:%M:%S')"
# Anything the Scheduler troubleshooter concluded was a Varaverk defect rather than a setting.
# Counted here because a finding filed on a Tuesday and read on a Tuesday is a finding nobody
# acts on — this report is the weekly moment the operator is actually looking. Count only: the
# detail lives on the AI tab, and a report that reprints every open bug stops being skimmable.
# Silent when there are none, and silent when AI is off, so a host without it reads the same as
# it always has.
if [[ "${AI_ENABLED:-false}" == true && -d "$DATA_DIR/ai_bugs" ]]; then
_ai_bugs_open=$(grep -l '"open": true' "$DATA_DIR"/ai_bugs/*.json 2>/dev/null | wc -l)
if [[ "${_ai_bugs_open:-0}" -gt 0 ]]; then
echo "🐞 AI bugs: $_ai_bugs_open open — see the AI tab"
fi
fi
if [[ ${#JOB_PASS[@]} -gt 0 ]]; then
echo "✅ Passed: ${JOB_PASS[*]}"
fi