{% extends "base.html" %} {% macro stage_header(number, anchor, name, description) %}
{{ number }}

{{ name }}

{{ description }}

{% endmacro %} {% block content %}

The governed agent lifecycle, on one page.

Six stages, top to bottom. Every action below is a click — run the demo incident, approve it, train the draft candidate, evaluate it, and promote it to active. Each panel refreshes itself after every action.

{{ stage_header("01", "define", "Define", "Agents and the guardrail policies they run under — all versioned YAML. The draft version below is the candidate that the rest of this page trains, evaluates, and promotes.") }}
{% include "_agents.html" %}
{{ stage_header("02", "run", "Run", "Execute the active agent through the governed pipeline: input guardrails → LLM → output guardrails → proposed actions → approval gate. The demo incident proposes a risk-5 action, so the run pauses for human approval in stage 03.") }}
One click — sends a replicated HSS capacity alarm and pauses at the approval gate.
{{ stage_header("03", "approve", "Approve", "Runs paused by the approval gate (HITL). The state lives in a checkpoint on disk, so it survives restarts. Approving resumes the graph exactly where it stopped; the completed run lands in stage 06.") }}
{% include "_approvals.html" %}
{{ stage_header("04", "train", "Train & evaluate", "Submit a fine-tuning job for the draft candidate to the configured MLOps backend, then evaluate it over the agent's canonical scenarios through the full governed runtime. A passing evaluation unlocks promotion.") }}
backend: {{ backend }} — the mock backend completes instantly.
{% include "_training.html" %}
{{ stage_header("05", "promote", "Promote", "Governance queue. A promotion requires a succeeded training run and a passing evaluation of the exact candidate version. Approving flips the candidate to active in the registry — check stage 01 after approving.") }}
{% include "_promotions.html" %}
{{ stage_header("06", "audit", "Audit", "Completed runs, persisted append-only with their full decision trail, violations, and approved actions.") }}
{% include "_history.html" %}
{% endblock %}