File AI-detected Varaverk defects as deduped reports, surfaced on the AI tab and counted in the coffee report
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user