{# SPDX-FileCopyrightText: 2026 Ahmed Hemedan #} {# SPDX-License-Identifier: Apache-2.0 #} {% extends "base.html" %} {% block content %}

{% if plan %}{{ plan.plan.device }}{% else %}Decision ledger{% endif %}

{% if plan %}
Plan
{{ plan.plan.id }}, revision {{ plan.plan.revision }}, authorised {{ plan.plan.authorised }}
Anchor version
{{ plan.anchor_version }}
Agent may make
{% for m in plan.modifications if m.automatic %}{{ m.id }} {% else %}no modification without a person{% endfor %}
{% endif %} {% if not verification.ok %}

The ledger fails verification. Budgets are not shown. {% for p in verification.problems %}{{ p }}. {% endfor %}

{% elif history %}

Budgets

Looks at the locked test set
{{ history.looks_used }}{% if plan %} of {{ plan.data_management.locked_test_set.max_evaluations }}{% endif %}
Released updates
{{ history.releases|length }}{% if plan %} of {{ plan.max_updates }}{% endif %}
Alpha spent
{{ "%.5f"|format(history.alpha.spent if history.alpha else 0) }}{% if plan %} of {{ plan.performance.alpha_total }}{% endif %}
{% endif %}

Evaluations

{% if entries %}
{% for e in entries|reverse %} {% endfor %}
EntryRecordedKindVersionVerdictFailed checks
{{ e.seq }}{{ (e.recorded_at|string)[:19] }}{{ e.kind }}{{ e.candidate_version }} {{ e.verdict.replace("_", " ") }}{{ e.failed_checks|join(", ") or "none" }}
{% else %}

The ledger is empty.

{% endif %} {% endblock %}