{% import "macros.html" as m %}

This is the lease registry made visible — the warden’s single source of truth for what’s running. The console reads it; it never decides run-state. A second launch of a running test is coalesced (one execution, recorded); a different test queues.

{% if broker == 'down' %} warden down · fail-closed {% else %} warden up {% endif %} Authority live · ephemeral, not provenance
{% if not data.cards %} {{ m.empty('▮', 'Nothing running', 'No lease is held. Start a test from the Catalog, or via the CLI / agent / CI — they all funnel through this one warden.') }} {% else %} {% for card in data.cards %}
Lease {{ card.test_id }} key {{ card.key }} {{ card.origin }}{% if card.who %}:{{ card.who }}{% endif %} {% if card.origin == 'ci' %}CI · joined lease{% endif %} {{ 'STALLED' if card.stalled else 'running' }}
{{ card.progress_pct }}% run {{ card.run_id }} {% if card.stalled %}no heartbeat · {{ card.heartbeat_age }}s (TTL {{ card.ttl_s }}s){% else %}heartbeat {{ card.heartbeat_age }}s ago{% endif %} watchers {{ card.watchers }}
{% endfor %}
⬗ LIVE LOG · telemetry · {{ data.console|length }} events · run {% if data.cards|length > 1 %}{% else %}{{ data.selected_run }}{% endif %}
{% for line in data.console %}
#{{ line.seq }}{{ line.ts }}{{ line.kind }}{{ line.text }}
{% else %}
stream idle — no telemetry recorded for this run yet
{% endfor %}
{% endif %} {% if data.queue %}
Queue · serialized (one run at a time)
{% for q in data.queue %}
{{ q.position }}{{ q.test_id }}{{ m.origin_badge(q.origin) }}{{ q.run_id }}
{% endfor %}
{% endif %}
Authority auditvisible proof single-flight held
{% if data.audit %}
{% for a in data.audit %}
{{ a.ts }}{{ a.event }}{{ a.note or a.test_id }}{% if a.attached_to %} → {{ a.attached_to }}{% endif %}{% if a.origin %} · {{ a.origin }}{% endif %}
{% endfor %}
{% else %}
No coalesce / queue / reclaim events yet — every refusal will be recorded here as visible proof the lock held.
{% endif %}