{% extends "base.html" %} {% block title %}Undo {{ a.name }}{% endblock %} {% block body %}

Agents

Undo changes by {{ a.name }}

{% if done %}
Restored {{ done.restored|length }}, removed {{ done.removed|length }}, skipped {{ done.skipped|length }}; rejected {{ rejected }} open proposal{{ 's' if rejected != 1 }} and dropped {{ dropped }} unmerged note{{ 's' if dropped != 1 }}.{% if a.revoked_at %} The agent is revoked.{% endif %}
{% if done.skipped %}

Left alone

{% for i in done.skipped %}{% endfor %}
RecordWhy
{{ i.name }}{{ i.why }}
{% endif %}

Back to agents

{% else %}

Puts every record this agent changed back the way it was, including merges built from its notes. Records someone else edited afterwards are left alone.

{% for i in plan.items %} {% else %}{% endfor %}
RecordWhat happensEdits
{{ i.name }} {% if i.action == 'restore' %}put back{% elif i.action == 'remove' %}removed (it created it){% else %}left alone: {{ i.why }}{% endif %} {{ i.changes }}
No changes by this agent in that period.

Also rejects {{ open_props }} open proposal{{ 's' if open_props != 1 }} and drops {{ new_notes }} unmerged note{{ 's' if new_notes != 1 }} from this agent.

{% if plan.doable or open_props or new_notes %}
{% if not a.revoked_at %}{% endif %} Needs a fresh check that it’s you.
{% endif %} {% endif %} {% endblock %}