The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(relay): document the summarizer fields as free-form identifiers
mnajafian-nvb4d771148017
diff --git a/agent/compaction_events.py b/agent/compaction_events.pyindex 2c79f7292c3..95e5f22007a 100644--- a/agent/compaction_events.py+++ b/agent/compaction_events.py@@ -4,8 +4,9 @@ One record per ``compress_context`` attempt (built from the attempt telemetry semicro-compaction pass, per committed proactive tool-result prune, and per Codex-native threadcompaction Hermes observes. A persistence-detached fork (background review) shares the live session idbut rewrites only its own throwaway transcript, so it publishes nothing. The payload is flat because OpenTelemetry exporters flatten only top-level-keys; every categorical field comes from a closed set with an ``other`` fallback; no field carries-message, summary, focus-topic, error or path text. Publishing never raises into compaction.+keys; every categorical field except the free-form ``summarizer_provider`` / ``summarizer_model`` identifiers+comes from a closed set with an ``other`` fallback; no field carries message, summary, focus-topic, error or+path text. Publishing never raises into compaction."""from __future__ import annotationsdiff --git a/website/docs/developer-guide/relay-shared-metrics.md b/website/docs/developer-guide/relay-shared-metrics.mdindex e60265876f1..6fb5c6878f9 100644--- a/website/docs/developer-guide/relay-shared-metrics.md+++ b/website/docs/developer-guide/relay-shared-metrics.md@@ -175,7 +175,8 @@ their compaction rewrites only their own transcript.`data` is flat so OpenTelemetry flattens every field into`nemo_relay.mark.data.<key>`. Every v1 key is present on every mark; a value-that does not apply is `null`. Categorical fields come from these closed sets:+that does not apply is `null`. Categorical fields come from these closed sets,+except the two summarizer identifiers:| Field | v1 values ||---|---|@@ -189,8 +190,9 @@ that does not apply is `null`. Categorical fields come from these closed sets:| `split_status` | `not_applicable`, `in_place_committed`, `rotated_committed`, `failed_not_indexed`, `aborted`, or `null` || `token_count_method` | `estimate_rough`, or `null` || `overflow_reason` | `context_overflow`, `payload_too_large`, `long_context_tier` (the error classifier's reason for the provider rejection a `trigger: overflow` attempt recovers from), or `null` for every other trigger |+| `summarizer_provider`, `summarizer_model` | Free-form, not a closed set: the provider and model identifiers Hermes resolved for the summary call, or `null` when the attempt recorded none. A micro-compaction mark carries only `summarizer_model`, the configured summary model |-A value outside its set reads `other`. `failure_class` uses the+A value outside a closed set reads `other`. `failure_class` uses the`hermes.compression.count` classes plus the attempt-only classes (guard exitssuch as `blocked:cooldown`, Codex route exits such as `codex_auto_native`, thelease exits `session_ownership_lost`, `session_ownership_unreadable` and