{% extends "base.html" %} {% from "macros/summary.html" import summary_stat %} {% set active_page = 'governance' %} {% block title %}Compliance — Maude Front Desk{% endblock %} {% block content %}

Compliance Audit

Constitutional compliance across all projects
Overview Accountability Compliance Report
{% if not audit_available %} {# ── No audit results yet ─────────────────────────────────────────── #}
No Audit Results

Run the compliance audit to generate results.

python tools/audit-compliance.py --all
{% else %} {# ── Summary Bar ───────────────────────────────────────────────────── #} {% set s = audit.get('summary', {}) %}
{{ summary_stat(s.get('total_checks', 0), 'Total Checks') }} {{ summary_stat(s.get('pass', 0), 'Passing', 'ok') }} {{ summary_stat(s.get('fail', 0), 'Failing', 'error') }} {{ summary_stat(s.get('warn', 0) if s.get('warn') else s.get('warning', 0), 'Warnings', 'warn') }} {{ summary_stat(s.get('skip', 0), 'Skipped', 'quiet') }}
{# ── Filters ───────────────────────────────────────────────────────── #}
{# ── Project Cards ─────────────────────────────────────────────────── #}
{% for project_key, project in audit.get('projects', {}).items() %} {% set proj_pass = project.get('summary', {}).get('pass', 0) %} {% set proj_fail = project.get('summary', {}).get('fail', 0) %} {% set proj_warn = project.get('summary', {}).get('warn', project.get('summary', {}).get('warning', 0)) %} {% set checks = project.get('checks', {}) %} {% set failing_checks = checks.items() | selectattr('1.status', 'in', ['fail', 'warn']) | list %}

{{ project_key }}

{% if proj_pass > 0 %} {{ proj_pass }} pass {% endif %} {% if proj_fail > 0 %} {{ proj_fail }} fail {% endif %} {% if proj_warn > 0 %} {{ proj_warn }} warn {% endif %}
{% if failing_checks %}
{% for check_id, check in checks.items() %} {% if check.get('status') in ['fail', 'warn'] %}
{{ check_id }} {{ check.get('detail', check.get('message', '')) }} {% set sev = check.get('severity', 'medium') %} {{ sev }}
{% endif %} {% endfor %}
{% else %}
All checks passing
{% endif %}
{% endfor %}
{% endif %} {% endblock %} {% block extra_js %} {% if audit_available %} {% endif %} {% endblock %}