{% extends "base.html" %} {% from "macros.html" import pill, sparkline %} {% block title %}Health — Agent Wasp{% endblock %} {% block page_css %} {% endblock %} {% block content %} {# ── Helpers ──────────────────────────────────────────────────────────────── #} {%- set score_color = "text-success" if score and score >= 80 else "text-warning" if score and score >= 50 else "text-error" -%} {%- set score_label = "Excellent" if score and score >= 80 else "Good" if score and score >= 60 else "Degraded" if score and score >= 40 else "Critical" -%}
Real-time system status · auto-refresh 30s
| Time | Redis | Postgres | Ollama | Disk | RAM | CPU | Check ms |
|---|---|---|---|---|---|---|---|
| {{ entry.timestamp[:16].replace("T"," ") if entry.timestamp else "—" }} | {% for svc in ["redis", "postgres", "ollama"] %} {%- set info = entry.get("services",{}).get(svc,{}) -%}{% if info.get("healthy") %} ✓ {% else %} ✗ {% endif %} | {% endfor %} {%- set d = entry.get("system",{}).get("disk",{}) -%} {%- set r = entry.get("system",{}).get("ram",{}) -%} {%- set c = entry.get("system",{}).get("cpu",{}) -%}{{ d.get("percent","?") }}% | {{ r.get("percent","?") }}% | {{ c.get("percent","?") }}% | {{ entry.get("check_ms","?") }}ms |
{{ safety_data.gate_reason }}
{% endif %} {% else %}No self-improve executions yet
{% endif %}Critical-path self-edits today
hash: {{ safety_data.saccadic_hash }}…
{% endif %} {% else %}No perception events yet
{% endif %}Near cap — LLM storm risk
{% elif behavioral_pending >= 20 %}High — corrections pending analysis
{% else %}Corrections pending LLM analysis
{% endif %}