Self-healing dashboard:

Self-healing dashboard: show only currently-failed agents, not historical failures. WhatsBlockingCard showed ALL failures in 24h — during deployment, expected container-rebuild failures flood dashboard. Fix: Use DISTINCT ON (agent_id) ORDER BY agent_id, created_at DESC CTE to get only each agent’s LATEST run, then filter status=failed. Agents whose latest run succeeded automatically clear. Rule: For any needs-attention dashboard query, show CURRENT state (latest per entity), not historical accumulation.