Run {{ run.run_id }}

Agent: {{ run.agent_name }} · Status: {{ run.status.value }}
{% if has_conflict %}
ROLLBACK_CONFLICT Detected: One or more records were modified externally after agent execution. RevertX halted compensation to prevent lost updates—human reconciliation required.
{% endif %} {% if has_shadow %}
Shadow Mode Dry-Run: Simulated mutations (WOULD_*) were evaluated without calling downstream executors.
{% endif %} {% if last_report %}
Rollback Outcome: {{ last_report.final_run_status.value }} · Compensated: {{ last_report.compensated_steps|length }} · Idempotent Skipped: {{ last_report.skipped_idempotent_steps|length }} · Conflicts: {{ last_report.conflict_steps|length }} · Manual Follow-Up: {{ last_report.manual_followup_steps|length }}
{% endif %} {% for item in steps %} {% set act = item.step %}
#{{ act.sequence_num }} · {{ act.tool_name }} {{ act.recovery_contract.value }} {% set st = act.status.value %} {{ st }}
Step {{ act.step_id[:8] }} {% if act.parent_step_id %}· Parent {{ act.parent_step_id[:8] }}{% endif %} {% if act.version_before is not none or act.version_after is not none %} · OCC v{{ act.version_before if act.version_before is not none else '?' }} → v{{ act.version_after if act.version_after is not none else '?' }} {% endif %}
Arguments:
{{ item.args_pretty }}
{% if item.before_pretty or item.after_pretty %}
Before State Snapshot
{{ item.before_pretty or 'N/A' }}
After State Snapshot
{{ item.after_pretty or 'N/A' }}
{% endif %} {% if item.output_pretty %}
{% if st.startswith('WOULD_') %}Shadow Diff Preview{% else %}Tool Output{% endif %}
{{ item.output_pretty }}
{% endif %} {% if item.approval %}
Approval: {{ item.approval.decision.value }} · Action Hash: {{ item.approval.action_hash[:16] }} · Target: {{ item.approval.target_resource }} {% if item.approval.decided_by %}· By: {{ item.approval.decided_by }}{% endif %}
{% endif %}
{% endfor %} {% if rollbacks %}

Rollback Audit Log

{% for rb in rollbacks %} {% endfor %}
Step Outcome Idempotency Key Detail
{{ rb.step_id[:8] }} {{ rb.outcome }} {{ rb.idempotency_key }} {{ rb.error_detail or 'Verified restored' }}
{% endif %}