{% extends "base.html" %} {% block content %}
Audit verification

Hash chain integrity

{% if audit.get("chain_valid") %} VALID {% else %} ATTENTION {% endif %}
Chain status {% if audit.get("chain_valid") %}Valid{% else %}Needs review{% endif %}
Records checked {{ audit.get("records", "-") }}
Verification time {{ "%.1f"|format(audit.get("verify_latency_ms", 0)) }}ms
{% if audit.get("error") %}
Error

Verification could not complete

{{ audit.get("error") }}

{% elif audit.get("chain_valid") %}
Verified

No tampering detected

The sidecar recomputed the audit hash chain and every link matched the persisted chain.

{% else %}
Invalid

Chain mismatch detected

The stored trace chain failed verification. Treat this as evidence of tampering or storage corruption until investigated.

{% endif %}
{% endblock %}