Skip to content

The agent that grows with you

docs(shared-metrics): connector naming, error classes and the three new rows

Siddharth Balyanafdc89ca820c
diff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.md
index fac8da071de..967827e71a5 100644
--- a/website/docs/developer-guide/relay-shared-metrics.md
+++ b/website/docs/developer-guide/relay-shared-metrics.md
@@ -378,11 +378,22 @@ tool or plugin names. The same terminal event also feeds
`hermes.tool.usage.count` with `tool_name`, `outcome` and `error_class`.
`tool_name` is exported only for tools declared in the repository's static
`toolsets.TOOLSETS` (`toolsets.BUILTIN_TOOL_NAMES`, captured before any runtime
-custom toolset is created); MCP tools report `mcp` and every plugin or custom
-tool reports `plugin`. `error_class` maps Hermes's own `error_type` values
+custom toolset is created) and for the Tool Search bridge tools (`tool_search`,
+`tool_describe`, `tool_call`); MCP tools report `mcp`, hosted connector tools
+(`connectors__*`) report `connector` with tool category `connector`, and every
+plugin or custom tool reports `plugin`. The connector slug and tool name are
+never exported. Each entry of a `tool_call` batch of connector calls is its own
+call: one row per entry, and the `tool_call` wrapper is not counted on top
+(a batch refused before any entry ran still counts once as `tool_call`).
+`error_class` maps Hermes's own `error_type` values
(`tool_error`, `timeout`, `interrupted`, `invalid_arguments`, `blocked`,
`contract_violation`); any other value, such as an exception class name,
-collapses to `exception`. Hermes does not infer retries from repeated tool names or
+collapses to `exception`. A failed connector entry is classed by the tool
+gateway's error code in its result: `connection_required` (connection required
+or expired), `not_allowed`, `alias` (alias required or unknown),
+`invalid_arguments`, and `connector_backend` for every backend-family code
+(vendor error, rate limit, timeout, policy or gateway failure); other codes keep
+`tool_error`. Hermes does not infer retries from repeated tool names or
adjacent calls; when the
hook does not provide an explicit retry relationship, the retry bucket is
`unknown`. Approval decisions are emitted as `hermes.tool_approval` marks and
@@ -533,6 +544,16 @@ row they would rewrite.
| `hermes.model_friction.count` | provider, model, signal (`retry`, `undo`, `interrupt`, `quick_abandon`, `switch_away`) | Which models users fight with. Attributed to the model that produced the turn: `/retry` and `/undo` where they execute, a user interrupt of an interactive turn, a session that ends within 60 seconds of a failed turn, and `/model` switching away from the model. |
| `hermes.context_peak.count` | provider, model, peak fill bucket, window bucket (`lt_32k` … `gte_1m`), limit hit (`yes`/`no`) | How close sessions get to each model's context window, and how often they overflow it. One row per closed conversation: the session ids a compression rotation hands it to report once, with the fullest segment; `limit_hit` means a primary call was rejected as too large (context overflow or HTTP 413), the rejections Hermes answers with a forced compression. |
+#### Tool Search and connectors
+
+Added inside package schema v4. No connector slug, tool name or query text appears in any dimension.
+
+| Metric | Dimensions | Question it answers |
+|---|---|---|
+| `hermes.tool_search.count` | scope (`local`, `connector`, `both`: which catalogs the search read), hits bucket (`0` … `gte_11`, distinct tools returned), outcome (`hits`, `no_hits`, `connector_unavailable`, `error`) | Does `tool_search` find tools, and how often does the hosted connector leg fail. One row per `tool_search` call. |
+| `hermes.tool_batch.count` | provider, model, size bucket (logical calls; each `tool_call` entry counts once), connector share (`none`, `some`, `all`) | How many calls a model packs into one reply, and how much of it is connector work. One row per model reply that calls tools. |
+| `hermes.connector_chain.count` | searches-before bucket (`tool_search` calls since the previous connector execute), described first (`yes`/`no`: the tool was named in an earlier `tool_describe` of the conversation), outcome (the tool outcome) | Do models search and describe before they execute a connector tool, and does skipping it fail more. One row per executed connector entry. |
+
<!-- ---- v5 harness ---- -->
#### Agent-harness accuracy