{% extends "base.html" %} {% block title %}Analysis detail · PromptShield{% endblock %} {% block content %} {% set q = ('?key=' + dashboard_key) if dashboard_key else '' %} ← Back to list

Analysis {{ analysis.id[:8] }}…

{{ analysis.risk_level }} {{ analysis.risk_score }}
{{ analysis.policy_action }}
{{ analysis.classification_label or '—' }}
hash {{ analysis.prompt_hash[:16] }}… · len {{ analysis.prompt_length }} · encrypted: {{ 'yes' if analysis.has_encrypted_prompt else 'no' }}

Findings (redacted)

{% for f in analysis.findings %}
{{ f.detector_name }} {{ f.category }} · {{ f.severity }} · w{{ f.weight }}
{{ f.matched_text_preview }}{{ f.redacted_text }}
{% if f.explanation %}

{{ f.explanation }}

{% endif %} {% if f.remediation %}{% endif %} {% if f.compliance_frameworks %}
{% for fw in f.compliance_frameworks %}{{ fw }} {% endfor %}
{% endif %}
{% else %} {% endfor %}
{% endblock %}