Skip to content

The agent that grows with you

fix(telemetry): relay-shared-metrics doc — valid gateway table, owner rulings

teknium1d19b204b3320
diff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.md
index 202d82f369a..0b04539c2e3 100644
--- a/website/docs/developer-guide/relay-shared-metrics.md
+++ b/website/docs/developer-guide/relay-shared-metrics.md
@@ -311,18 +311,19 @@ itself ships.
| `hermes.platform.health` | platform, event (`connect_ok`/`connect_failed`/`reconnect`/`disconnect`), error class (`auth`/`network`/`rate_limited`/`config`/`other`) | Which messaging platforms fail to connect or drop, and why. Classified from exception types, HTTP statuses and Hermes's own fatal codes, never error text. |
| `hermes.platform.delivery` | platform, outcome (`sent`/`failed`), failure class (`rate_limited`/`too_long`/`auth`/`network`/`forbidden`/`other`) | How often replies fail to reach the user per platform (one count per logical reply, retries included). |
| `hermes.gateway.reply_latency` | platform, first-response bucket (`lt_2s` … `gte_60s`) | Time from an accepted inbound message to the first visible reply text (stream first chunk or final message). |
-
-Replies the relay connector carries report the platform the conversation lives
-on (the inbound's platform, else the platform the connector fronts when it
-fronts exactly one), never `relay`; `relay` remains only when neither is known.
-A turn whose inbound the connector did not stamp is still a gateway message
-(`execution_surface=gateway`, task/session `platform=relay`).
| `hermes.cron.run` | outcome (`success`/`failed`/`missed`/`skipped`), delivery kind (`local`/`platform`/`webhook`/`none`/`other`), duration bucket | Do scheduled jobs run, fail, get skipped by a gate or overlap, or get missed while Hermes was down. Job names, prompts, schedules and targets are never included. |
| `hermes.startup.latency` | surface (`cli`, `tui`, `desktop_attach`, `gateway_boot`, `serve_boot`), latency bucket (`lt_500ms` … `gte_10s`) | How long each surface takes from launch to usable, so startup regressions show per surface and release. One row per process start: CLI = process start to first rendered prompt (or a `-q` query dispatched; Kanban workers excluded), TUI = Ink process start to gateway ready, Desktop = app start to backend attached, gateway = process start to adapters connected, `hermes serve` = process start to listening. Not counted: a process re-exec'd in place (e.g. `hermes sessions browse` resuming a session) and each dashboard Chat-tab terminal; a TUI/Desktop reconnect to the same backend never re-counts. |
| `hermes.update.run` | kind, outcome, failed_stage, duration_bucket, from_version_age_bucket, apply_mode | Whether updates succeed, how long they take, where they fail, and how stale the version being updated from was. `hermes update` rows are derived from the final update receipt, once per run (`kind` is `desktop` when Desktop's source-checkout hand-off ran it); a run the pre-update interpreter finishes is parked locally with only these fields, only while collection is on, and counted by the next start; Desktop packaged self-updates (`apply_mode=package`) are reported once by the app, after the restart that applies them. |
| `hermes.update.stage` | stage, outcome, duration_bucket | Per-stage result and wall time of `hermes update` (plan, snapshot, apply, deps, build, restart, verify), from the receipt's stage timestamps. |
| `hermes.process.exit` | process_kind, exit_kind, crash_class | How CLI / TUI / gateway / serve / cron-tick processes end (`clean`, `crash` with an exception family only, `killed`, `watchdog`), reported by the next start in the same profile from a local marker (a start with collection off deletes these markers, and pending `provider_setup` ones, unreported). Turns aborted by a turn watchdog also count as `exit_kind=watchdog`. |
+Replies the relay connector carries report the platform the conversation lives
+on (the inbound's platform, else the platform the connector fronts when it
+fronts exactly one), never `relay`; `relay` remains only when neither is known.
+A turn whose inbound the connector did not stamp is still a gateway message
+(`execution_surface=gateway`, task/session `platform=relay`). `hermes.platform.health`
+for the relay connector stays `relay`: its one socket fronts several platforms,
+so a connect or drop belongs to none of them alone.
<!-- ---- v5 desktop ---- -->
#### Desktop app: what gets used, what gets in the way, what gets turned off
@@ -359,10 +360,12 @@ an in-tree `plugins/model-providers/` profile or a public models.dev id) and its
model id; custom endpoints, provider plugins installed under
`$HERMES_HOME/plugins/model-providers/` or from pip (names and aliases included),
the local-server aliases of `custom` (`ollama`, `local`, `vllm`, `llamacpp`,
-`llama.cpp`) and loopback servers read `custom`, and a model whose provider is
-unknown, or whose id is a URL, a file path or a network address (`host:port`, an
-IP address, `localhost`), reads `custom`. The local subscriber re-runs these rules
-on the provider/model fields of every mark and drops a row they would rewrite.
+`llama-cpp`, `llama.cpp`) and loopback servers read `custom`. A shipped provider
+whose endpoint is a loopback server (`lmstudio`) keeps its name, but its model reads
+`custom`. A model whose provider is unknown, or whose id is a URL, a file path or a
+network address (`host:port`, an IP address, `localhost`), reads `custom`. The local
+subscriber re-runs these rules on the provider/model fields of every mark and drops a
+row they would rewrite.
| Metric | Dimensions | Question it answers |
|---|---|---|
@@ -374,7 +377,8 @@ on the provider/model fields of every mark and drops a row they would rewrite.
#### Agent-harness accuracy
These tune the agent loop itself. Hermes' own background review and curator
-loops never count; command text, file paths, tool arguments and reply text never
+loops never count; delegated subagents do (their tool calls, loops and replies
+are model behaviour too). Command text, file paths, tool arguments and reply text never
leave — only the closed values below.
| Metric | Dimensions | Question it answers |
@@ -391,7 +395,9 @@ leave — only the closed values below.
Provider and model follow the model-route rules above. A "user turn" is one user
message through its final reply; Hermes-owned work (background memory/skill review,
-the curator, delegated subagents' own turns) is not a user turn.
+the curator, delegated subagents' own turns) is not a user turn. `cache_break` and
+`tool_output_truncation` describe model and tool behaviour, so delegated
+subagents count there; background review and the curator never do.
| Metric | Dimensions | Question it answers |
|---|---|---|