{# T55 scan debug page — terminal-brutalist re-skin. #} {# Header (always visible) + sticky tab bar + 5 panes. All panes are #} {# server-rendered; tiny inline JS toggles visibility on click and #} {# rewrites the URL via ``history.replaceState`` so a deep link to #} {# ``?tab=llm`` survives a reload AND stays shareable. #} {% extends "admin_layout.html" %} {% block page_title %}admin :: scan :: {{ scan_id_short }}{% endblock %} {% block breadcrumb %} admin/ scans/ {{ scan_id_short }} {% endblock %} {% block content %} {# Status pill mapping — keeps colour rules in one spot. #} {% set status_pill_class = { 'ready': 'ok', 'success': 'ok', 'errored': 'danger', 'error': 'danger', 'cancelled': 'muted', 'pending': 'accent', }.get(status, 'muted') %}
{{ scan_id }}{{ target_url }}{{ owner_email }}{{ synthesis_view.verdict }}{% else %}
(empty)
{% endif %}{{ synthesis_view.primary_recommendation or '(none)' }}
{{ synthesis_view.recommendation | tojson(indent=2) }}
{{ synthesis_view.starter_code | tojson(indent=2) }}
model-estimated replay survivability
{% else %}Skips the 30-day grace and wipes the scan + LLM-call rows + S3 objects immediately. Audit log entries for this scan are anonymized so the compliance trail survives. This cannot be undone.
Filter + synthesis are free; full re-run mints a new scan + costs 1 credit.
{{ req.response_summary }}
{{ ep.url_template }}
No signals captured.
{% endif %} {% if ep.rationale %}{{ ep.rationale }}{% endif %}
| when | prompt | model | in / out / cache | cost | latency | status | dump |
|---|---|---|---|---|---|---|---|
| {{ call.created_at }} |
{{ call.prompt_name }}
v{{ call.prompt_version }}
|
{{ call.model }} | {{ call.input_tokens }} / {{ call.output_tokens }} / {{ call.cache_read_tokens or 0 }}r+{{ call.cache_write_tokens or 0 }}w | ${{ '%.6f'|format(call.cost_usd) }} | {{ call.latency_ms }}ms |
{% if call.error_class %}
{{ call.error_class }}
{% if call.error_message %}
{{ call.error_message }}
{% endif %}
{% else %}
ok{% if call.retry_count %} (×{{ call.retry_count }}){% endif %}
{% endif %}
|
{% if is_admin %}
sandbox
{% endif %}
|
| timestamp | actor | action | metadata |
|---|---|---|---|
| {{ entry.timestamp }} | {{ entry.actor_email }} |
{{ entry.action }} |
{% if entry.metadata %}
{{ entry.metadata | tojson }}
{% else %}
—
{% endif %}
|