Files
openclaw/docs/spam-fix-final-2026-02-17.md
Clawd Bot ca9b510922 chore: align with upstream openclaw/openclaw and overlay local additions
- Reset master to upstream/main (16,697 commits)
- Overlay 2,271 local-only files (skills, tools, workspace, configs, apps)
- Restore IDENTITY.md and USER.md templates
- Build verified, gateway running, Discord working

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 07:40:46 +01:00

2.2 KiB

Spam Fix - Final (2026-02-17)

Problem

User kept receiving spam notifications from Jarvis health checks, including:

  • Test critical alerts appearing in Discord
  • Repeated Pi disk warnings
  • Prediction spam

Solutions Applied

1. Removed Test Alerts

  • Cleaned test entries from critical log
  • Cleared pending/deferred logs
  • Reset alert state files

2. Made Daily Summary SILENT

  • Filters out test entries
  • Only outputs if REAL critical issues exist
  • No output = no Discord spam

3. Updated Cron Jobs

All output redirected to /dev/null:

0 * * * *   jarvis-health-check.sh    >/dev/null 2>&1
0 */2 * * * jarvis-delegate.sh        >> logs/delegation.log 2>&1
0 16 * * *  github-daily-sync.sh      >/dev/null 2>&1
0 20 * * *  jarvis-daily-summary.sh   >/dev/null 2>&1

4. Disabled Prediction Spam

  • Moved jarvis-predict.sh → jarvis-predict.sh.disabled
  • Created silent Pi auto-cleanup (runs when >85%)

5. Smart Alert Deduplication

  • Same error within 1 hour → deferred (no spam)
  • Only first occurrence or >1h apart triggers alert

What User Will See

Normal Operation (99% of time):

NOTHING

  • All auto-fixes happen silently
  • Logs are written but no notifications
  • Discord stays quiet

Critical Failure (rare):

ONE ALERT (first occurrence only)

  • Example: "Gateway CANNOT be auto-fixed"
  • Deferred alerts batched to 20:00 summary
  • 90% spam reduction even in crisis

Daily Summary (20:00):

SILENT unless real critical issues

  • No test alerts
  • No Discord spam
  • Only real problems reported

Current State

Logs Status:

  • Critical: 0 entries (clean)
  • Pending: 0 entries (clean)
  • Silent fixes: Will accumulate normally
  • Alert state: Reset

Services:

  • Health check: Running hourly (silent)
  • Auto-delegation: Running every 2 hours (logged)
  • GitHub sync: Running daily 16:00 (silent)
  • Daily summary: Running 20:00 (silent unless critical)

NO MORE SPAM! 🎉

User will ONLY see:

  1. Real unfixable critical issues (first time)
  2. Nothing (99% of the time)

Test alerts: REMOVED Discord spam: STOPPED Pi warnings: AUTO-FIXED SILENT Prediction spam: DISABLED