{#- SPDX-License-Identifier: Apache-2.0 -#} {#- General (ADR 0013, CORE_52): information first. The pipeline and its queue, the kinds that have no stage of their own, usage and the audit log. The stages themselves (triage, embed, enrich) and the capabilities are pages of their own in the masthead. No script: tabs are radio inputs, every action is a form. /refresh.js and the chart only update live numbers. -#} {% extends "_base.html" %} {% import "_macros.html" as m with context %} {% import "_plugins.html" as pl with context %} {% block title %}General · Oaken Mail{% endblock %} {% block body_attrs %} data-refresh="/general.json?tab={{ tab }}" data-refresh-seconds="15"{% if tab == "ingest" %} data-lazy{% endif %}{% endblock %} {% block main %}

General

{{ core.version }}{% if core.uptime_seconds is not none %} · up {{ (core.uptime_seconds // 60) | int }} min{% endif %}

{% set tabs = [("ingest","Ingest"),("queue","Queue"),("audit","Audit log")] %} {# ---- Ingest: every stage, and the live throughput ---- #} {% if tab == "ingest" %}
{% if pipeline %}
Pipeline Model stages {{ m.switch("stage", "/general?tab=ingest", not pipeline.llm_paused, "Run the model stages", {}, "run", "on", "off") }}

{{ "{:,}".format(pipeline.docs) }} docs · {{ "{:,}".format(pipeline.chunks) }} chunks · {{ "{:,}".format(pipeline.vectors) }} vectors · {{ pipeline.quarantined_files }} quarantined {% if pipeline.llm_paused %}· model paused{% endif %} {% if pipeline.backfill_paused %}· backfill paused{% endif %} {% if pipeline.embeddings_stale %}· embeddings stale{% endif %}

{% for name, s in pipeline.stages.items() %} {% endfor %}
StagePendingRetryingRunningFailedOldestPer secETAStateAt once
{{ name }} {{ s.pending if s.loaded else "…" }} {{ s.retrying if s.loaded else "…" }} {{ s.running if s.loaded else "…" }} {{ s.failed if s.loaded else "…" }} {{ "…" if not s.loaded else (((s.oldest_pending_seconds | int) ~ "s") if s.oldest_pending_seconds is not none else "—") }} {{ ("%.2f" | format(s.per_second)) if s.loaded else "…" }} {{ "…" if not s.loaded else (((s.eta_seconds | int) ~ "s") if s.eta_seconds is not none else "—") }} {% if name in ("parse", "triage", "embed", "enrich") %}{{ pl.stage_toggle(name, s, "/general?tab=ingest") }}{% endif %} {{ (s.concurrency or "—") if s.loaded else "…" }}
Throughput (last 10 min)
{% else %}
The ingest pipeline is not running.
{% endif %}
{% endif %} {# ---- Queue: the jobs, and the ones parked as failed ---- #} {% if tab == "queue" %}
Jobs queue
{% for j in jobs %} {% else %} {% endfor %}
JobKindStatusAttemptsErrorActions
{{ j.id }} {{ j.kind }} {{ j.status }} {{ j.attempts }}/{{ j.max_attempts }} {{ j.last_error or "" }} {% set back = "/general?tab=queue&status=" ~ status if status else "/general?tab=queue" %} {% if j.status in ("queued", "running") %}{{ m.confirm("cancel", back, "Cancel the job", "Cancel this job?", "Cancel job", {"job_id": j.id}, "x") }}{% endif %} {% if j.status in ("failed", "cancelled") %}{% call m.post("retry", back) %}{% endcall %}{% endif %}
No jobs.
{% if parked %}
Parked jobs {% call m.post("retry-parked", "/general?tab=queue") %}{% endcall %}
{% for j in parked %} {% endfor %}
JobStageMessageAttemptsError
{{ j.job_id }}{{ j.stage }} {{ j.message_id or "—" }}{{ j.attempts }} {{ j.error }}
{% endif %} {% if agents %}{{ pl.agents_card(agents, "/general?tab=queue", "Agents not tied to a stage") }}{% endif %}
{% endif %} {# ---- Audit log ---- #} {% if tab == "audit" %}
Recent audit log
{% for e in audit %} {% else %} {% endfor %}
WhenActorOperationCountReasonState
{{ e.ts }}{{ e.actor }}{{ e.op }} {{ e.count }}{{ e.reason }} {% if e.undone_by %}undone{% else %}applied{% endif %}
No audit entries yet.

Ids and metadata only. The audit log never records message text.

{% endif %}
{% endblock %} {% block scripts %}{% endblock %}