{% extends "base.html" %} {% block title %}{{ title }} · neuralgentics-web{% endblock %} {% block content %}

{{ title }}

Manage gateway policy YAML files in {{ policies_dir }} · {{ policies|length }} file{{ '' if policies|length == 1 else 's' }}

+ New policy
{# Gateway status panel (T-157): pull-based live view of what the gateway has currently loaded. Polls /modules/policy-editor/gateway-status every 5s via htmx. Falls back gracefully when the gateway is unreachable. #}
Gateway live status
loading gateway status…
{% for p in policies %} {% else %} {% endfor %}
Name Size Modified (UTC) Statements Valid Actions
{{ p.filename }} {{ p.size }} B {{ p.mtime.strftime("%Y-%m-%d %H:%M:%S") }} {{ p.statement_count }} {% if p.valid %} valid {% else %} invalid {% endif %} view edit {% if p.has_backup %} history {% endif %}
No policy files found in {{ policies_dir }}. Click "+ New policy" to create one.

The gateway loads *.yaml files from {{ policies_dir }} at startup (T-150). *.yml files are listed here for visibility but are silently ignored by the gateway loader.

{% endblock %}