# NousResearch/hermes-agent · Compression attempt telemetry fields lost during flush

## Open now

- Nothing open on GitHub.

These items address a bug where telemetry fields for compression attempts (such as aux_prompt_tokens and middle_window_tokens) are dropped or nulled out, with fixes aimed at preserving that data across memory flush and commit boundaries.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #136083. Verify it addresses your case.
- **Recommended:** read PR #136083 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-136083`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #118580: \[Bug\] Compression attempt telemetry never carries seeded fields (aux_prompt_tokens, middle_window_tokens always null)

## Prior & competing PRs

- **#136083: fix(compression): honest compaction — refusal rollback, attempt telemetry, Relay marks (salvage #135866 #135807 #135808)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/codex_runtime.py`, `agent/compaction_events.py`, `agent/compression_facade.py`, `agent/context_compressor.py`, `agent/context_compressor_telemetry.py`, `agent/conversation_compression.py`, `agent/conversation_compression_codex.py`, `agent/conversation_compression_telemetry.py`, `agent/micro_compaction.py`, `agent/relay_compaction.py`, `agent/relay_runtime.py`, `agent/turn_context_compaction.py`, `agent/turn_finalizer.py`, `agent/turn_overflow.py`, `agent/turn_preflight.py`, `agent/turn_recovery.py`, `gateway/run.py`, `gateway/run_turn.py`, `hermes_cli/observability/shared_metrics_events.py`, `hermes_cli/observability/shared_metrics_fields.py` (+16 more)
- **#118642: fix(compression): preserve active attempt telemetry**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `f925b01791`, `#118580`, `#136083`
- **#127043: fix(compression): hold attempt telemetry across commit-time memory flush**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `1c05c6a6e713`
- **#135807: fix(compression): name the automatic trigger and effect in attempt telemetry**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `f925b01791`, `#136083`, `#135866`, `#135807`, `#135808`, `#135807`, `#135866`, `#118580`, `#136083`

## Fix status

- Merged to main in PR #136083 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-10`.
- Subsystem: `agent`
