{% extends "base.html" %} {% load scoped_tags %} {% block title %}Health{% endblock %} {% block page_title %}System Health{% endblock %} {% block page_subtitle %}Health checks and compliance reporting (Layer 0){% endblock %} {% block layer_indicator %}L0 Compliance{% endblock %} {% block content %} {# Overall Status #}
{% if overall_status == "HEALTHY" %}✓{% elif overall_status == "UNHEALTHY" %}✗{% else %}?{% endif %}

{{ overall_status }}

{{ pass_count }} passed, {{ fail_count }} failed of {{ checks|length }} check{{ checks|length|pluralize }}

{# Health Checks #}

Health Checks

{% if checks %}
{% for check in checks %} {% endfor %}
Check Status Message Duration
{{ check.name }} {% if check.status == "PASS" or check.status == "OK" or check.status == "HEALTHY" %} PASS {% elif check.status == "FAIL" or check.status == "ERROR" or check.status == "UNHEALTHY" %} FAIL {% else %} {{ check.status }} {% endif %} {{ check.message|default:"--" }} {% if check.duration_ms %}{{ check.duration_ms }}ms{% else %}--{% endif %}
{% else %} {% include "components/_empty_state.html" with title="No health checks" message="Health checks could not be executed. Ensure the Scoped backend is properly initialized." %} {% endif %}
{# Compliance Report #} {% if compliance %}

Compliance Report

{{ compliance.total }}

Total Checks

{{ compliance.passed }}

Passed

{{ compliance.failed }}

Failed

{% if compliance.failures %}

Failures

    {% for failure in compliance.failures %}
  • {{ failure }}
  • {% endfor %}
{% endif %} {% if compliance.warnings %}

Warnings

    {% for warning in compliance.warnings %}
  • ! {{ warning }}
  • {% endfor %}
{% endif %}
{% endif %} {# System Info #} {% if system_info %}

System Info

{% if system_info.version %}
Scoped Version
{{ system_info.version }}
{% endif %} {% if system_info.backend %}
Storage Backend
{{ system_info.backend }}
{% endif %} {% if system_info.layers_loaded %}
Services Loaded
{{ system_info.layers_loaded }}
{% endif %}
{% endif %} {% endblock %}