{% extends "base.html" %} {% block title %}Starfleet — MoE Sovereign{% endblock %} {% block head_extra %}{% endblock %} {% block content %}
MoE Sovereign
Starfleet Operations Center
LCARS v2.0 ⟳ {{ refresh_secs }}s
{{ system_state }}
{% if system_state == 'NOMINAL' %}All systems operating within normal parameters{% endif %} {% if system_state == 'DEGRADED' %}One or more systems require attention{% endif %} {% if system_state == 'CRITICAL' %}⚠ Critical condition — immediate action required{% endif %} {% if system_state == 'BENCHMARK' %}Active benchmark in progress — elevated load expected{% endif %} {% if system_state == 'UNREACHABLE' %}Orchestrator unreachable — check network and container status{% endif %}
{% if system_state == 'NOMINAL' %}{% endif %} {% if system_state == 'DEGRADED' %}{% endif %} {% if system_state == 'CRITICAL' %}{% endif %} {% if system_state == 'BENCHMARK' %}{% endif %} {% if system_state == 'UNREACHABLE' %}{% endif %}
{{ alerts | length }}
Active Alerts
{{ features | length }}
Features
{{ features.values() | selectattr('enabled') | list | length }}
Features Active
{% if mission_ctx and mission_ctx.open_tasks %}{{ mission_ctx.open_tasks | length }}{% else %}—{% endif %}
Open Tasks
{% if mission_ctx and mission_ctx.title %}{{ mission_ctx.title[:18] }}{% else %}—{% endif %}
Current Mission
{{ t(request, 'starfleet_features') }}
{% set feature_meta = { 'watchdog': {'icon': 'bi-broadcast', 'label': t(request, 'feat_watchdog')}, 'mission_context': {'icon': 'bi-journal-text', 'label': t(request, 'feat_mission_context')}, 'adaptive_ui': {'icon': 'bi-display', 'label': t(request, 'feat_adaptive_ui')}, 'infra_mcp': {'icon': 'bi-cpu', 'label': t(request, 'feat_infra_mcp')}, } %} {% for name, info in features.items() %} {% set meta = feature_meta.get(name, {'icon': 'bi-gear', 'label': name}) %} {% endfor %}
{{ t(request, 'feature') }} {{ t(request, 'status') }} {{ t(request, 'source') }} {{ t(request, 'action') }}
{{ meta.label }} {% if info.get('requires_restart') %} restart req. {% endif %} {% if info.enabled %} ON {% else %} OFF {% endif %} {{ info.get('source', '—') }}
{% if mission_ctx and mission_ctx.get('title') %}
{{ t(request, 'mission_context') }} {% if mission_ctx.updated_at %} {{ mission_ctx.updated_at[:16] | replace('T', ' ') }} UTC {% endif %}
{{ mission_ctx.title }}
{% if mission_ctx.description %}

{{ mission_ctx.description }}

{% endif %} {% if mission_ctx.open_tasks %}
{{ t(request, 'open_tasks') }}
    {% for task in mission_ctx.open_tasks %}
  • {{ task }}
  • {% endfor %}
{% endif %} {% if mission_ctx.recent_decisions %}
{{ t(request, 'recent_decisions') }} {% for d in mission_ctx.recent_decisions[-3:] %}
{{ d.at[:10] if d.at else '' }}{{ d.text }}
{% endfor %}
{% endif %} {% if mission_ctx.tags %}
{% for tag in mission_ctx.tags %} {{ tag }} {% endfor %}
{% endif %}
{% endif %}
{{ t(request, 'loading') }}…
Inference Nodes ⟳ 15s
Loading…
{{ t(request, 'watchdog_alerts') }} {% set fresh_count = alerts | selectattr('stale', 'equalto', false) | list | length %} {% if fresh_count > 0 %} {{ fresh_count }} fresh {% endif %} {% if alerts | selectattr('stale') | list | length > 0 %} {{ alerts | selectattr('stale') | list | length }} stale {% endif %}
{% if alerts %}
{% for alert in alerts %}
{% if alert.severity == 'critical' %} {% elif alert.severity == 'warning' %} {% else %} {% endif %} {{ alert.type | replace('_', ' ') | upper }} {% if alert.node %} {{ alert.node }} {% endif %} {% if alert.stale %} (stale) {% endif %}
{{ alert.ts[:16] | replace('T', ' ') if alert.ts else '' }}
{{ alert.message }}
{% endfor %}
{% else %}

{{ t(request, 'no_alerts') }}

{% endif %}
{% endblock %}