{% 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 %}
Advanced (severity ceiling, documents, file URI)

The maximum severity the judge will assign if the target fails this scenario. E.g. set to "medium" so a failure is capped at medium rather than escalating to critical. Used by all judges (severity, score, yes/no). Leave empty to let the judge assign any severity.

Context documents injected into the auditor's prompt (RAG). JSON array of file names or document objects, e.g. ["policy.pdf"]. Leave empty for none.

Path or URL of an image/file attached to the scenario for vision-based audits (e.g. /data/screenshots/login.png). Leave empty unless the scenario needs a visual input.

{% 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 %}