# NousResearch/hermes-agent · Agent loop-detector ignores volatile execution metadata

## Open now

- Nothing open on GitHub.

These items address a bug where volatile or per-call metadata (such as execution timestamps or transient fields) was included in the loop-detection hash, causing the agent to fail to recognize repeated tool results as loops. One report documents a severe real-world consequence: a wait loop for background subagents ran to the iteration ceiling, wasting 190 calls over 84 minutes before human intervention.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #124724. Verify it addresses your case.
- **Recommended:** read PR #124724 (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-124724`. 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.67`: 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

- #124072: \[Bug\]: Waiting on background subagents can deadlock a turn — execute_code-only wait loop ran to the iteration ceiling with zero guard activity (84 min, 190 wasted calls, human abort)

## Prior & competing PRs

- **#124724: fix(agent): ignore execute_code per-call metadata in the loop-detector result hash**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/tool_guardrails.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_tool_guardrails.py`
- **#124276: fix(agent): ignore volatile execution metadata in tool-result loop hash**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`

## Fix status

- Merged to main in PR #124724 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-27`.
