{% extends "base.html" %} {% block content %}

System Maintenance

Superuser tools for data cleanup (current user scope).

{% if notice_message %}
{{ notice_message }}
{% endif %}

Purge Non-OSINT Data

Removes message/workspace/AI/mitigation runtime rows but keeps OSINT setup objects.

Chat Sessions: {{ counts.chat_sessions }} Messages: {{ counts.messages }} Queued: {{ counts.queued_messages }} Events: {{ counts.message_events }} Behavioral Events: {{ counts.behavioral_event_rows }} Event Shadow Rows: {{ counts.conversation_event_shadow_rows }} Workspace: {{ counts.workspace_conversations }} Snapshots: {{ counts.workspace_snapshots }} AI Requests: {{ counts.ai_requests }} AI Results: {{ counts.ai_results }} Memory: {{ counts.memory_items }} Mitigation Plans: {{ counts.mitigation_plans }}
{% csrf_token %}

Diagnostics Quick Checks

Run projection shadow, event ledger smoke, and trace diagnostics from one place.

Pick a session to compare message table vs event projection.

Checks whether recent actions were written to the behavioral event ledger in Manticore, with Django shadow rows as fallback context.

Optional required event types (comma-separated).

Use a trace id from the dropdown (recent traces), Event Ledger Smoke `sample[].trace_id`, or UR logs.

Query memory index and inspect top matches.

{% for row in diagnostics_options.sessions %} {% endfor %} {% for trace_id in diagnostics_options.trace_ids %} {% endfor %} {% for service in diagnostics_options.services %} {% endfor %} {% for event_type in diagnostics_options.event_types %} {% endfor %}

          

Purge OSINT Setup Categories

Category-specific cleanup controls.

{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% csrf_token %}
{% endblock %}