{% extends "base.html" %} {% load json_filters %} {% block title %}Scenarios — SimpleAudit{% endblock %} {% block content %}

Scenario Library

{% csrf_token %}
{% if selected %}

{{ selected.name }}

{% if viewing_version %}{% include "partials/version_badge.html" with number=viewing_version.version latest=viewing_is_latest count=versions|length %}{% endif %}
{% csrf_token %}
{% if versions %}
{% if viewing_version and viewing_version != versions.0 %}
{% csrf_token %}
{% endif %} {% if viewing_version and viewing_version.version > 1 %} {% endif %}
{% endif %}
{% for item in items %}
{{ item.scenario.title }} {% if item.scenario.category %}{{ item.scenario.category }}{% endif %} rev {{ item.revision.revision }}
{% csrf_token %}
{{ item.revision.description|truncatechars:200 }}
{% empty %}

No scenarios in this version.

{% endfor %}
{% csrf_token %}
{% include "partials/agentic_controls.html" with agentic=None %}
Agentic metadata preview (read-only)

Live, read-only view of exactly what will be saved. Edit the structured fields above — this updates in real time. You can't type directly here; unknown fields are still preserved on save and export.

Advanced options (usually leave empty)

Caps the max severity the judge can assign when the target fails. Use when you know a scenario's worst case (e.g. set "medium" so it never escalates to critical even if the judge thinks it should). Passed to the engine as the scenario's severity field. Most scenarios don't need this — leave empty to let the judge decide freely.

Extra context documents injected into the auditor's prompt so the judge has reference material (e.g. a policy PDF the agent should follow). Only needed when your scenario tests compliance against a specific document. JSON array: ["policy.pdf", "terms.txt"]. Most scenarios leave this empty.

Path or URL of an image/screenshot the agent must analyze. Only needed for vision-based scenarios (e.g. "does the UI show a warning?"). The file is passed to the model as a multimodal input. Most scenarios leave this empty.

{% else %}

Select a scenario set to view its contents.

{% endif %}
{% if selected %} {% endif %} {% if selected and versions|length > 1 %} {% include "partials/version_diff_modal.html" with id="set-diff" title="What changed" versions=versions %} {% include "partials/version_diff_modal.html" with id="revert-diff" title="Compare & revert" confirm="Confirm revert" %} {% endif %} {% include "partials/version_diff_js.html" %} {% if selected %} {% endif %} {% if selected %} {% include "partials/text_file_modal.html" %} {% endif %} {% endblock %}