NousResearch/hermes-agent

Fix summary role alternation for strict-template backends

Cluster 74086 · agent. Data as of

Nothing open on GitHub. Fix merged in #74087 on 30 Jul 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #74087. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #74087. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and PRs address a bug where context compaction or compression emits a summary message with the wrong role (e.g., user instead of assistant) on backends that enforce strict role alternation, such as Mistral-template models. The fixes resolve the role by inspecting template-visible predecessors rather than raw message roles.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #74087 fix(compression): choose summary role by template-visible alternation

    merged to main

    files: agent/context_compressor.py, tests/agent/test_summary_role_template_alternation.py

2 PRs closed without merging

From the close comments: done elsewhere 2

  • #74111 fix(context-compressor): resolve tool role to semantic predecessor for strict alternation backends · done elsewhere → #74086, #74087
  • #74720 fix(agent): use template-visible roles for summary alternation (#74086) · done elsewhere → 7965462, #74087
Closed issues · 1
  • Closed#74086Context compaction permanently poisons sessions on Mistral-template backends (summary emitted as role:user after a tool-flow head)
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#74087
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
30 Jul 2026

For your agent

The same facts, typed.