Preventing bot-to-bot reply loops in gateway and Mattermost
Cluster 137027 · gateway · Feature. Data as of
1 open item. Fix merged in #148903 on 5 Nov 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #148903. Check it covers your case. No release data is tracked. Fix link checked: 5 Nov 2026.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #148903. That is separate from the fix event.
The three members all concern bots exchanging messages in endless loops, with one issue describing runtime notices being sent to bot peers and no way for a turn to stay silent. The two pull requests propose containing this, including limiting notices to bots and capping hops, though their outcomes aren't established here.
Open issues0
Open PRs1
- PR#151080feat(gateway): add channel or thread scope for bot exchange chains
Fixes on record
-
#148903 fix(gateway): end bot-to-bot ping-pong: no runtime notices to bots, runtime hop cap, replies need no reply (salvage #137037)
files:
agent/bot_chain.py,agent/compression_automation.py,agent/turn_author.py,agent/turn_context.py,gateway/authz_mixin.py,gateway/bot_loop_guard.py,gateway/bot_peer_notices.py,gateway/platforms/base.py,gateway/run_background.py,gateway/run_busy.py,gateway/run_inbound.py,gateway/run_notifications.py,gateway/run_turn.py,gateway/run_turn_hygiene.py,gateway/run_turn_persistence.py,gateway/run_turn_prepare.py,gateway/run_turn_progress.py,gateway/run_turn_runner.py,gateway/run_turn_runner_approval_settle.py,hermes_cli/config_defaults.py(+16 more)
1 PR closed without merging
From the close comments: done elsewhere 1
-
#137037 fix: contain Mattermost bot peer loops · done elsewhere →
4c466d8,#148903
Closed issues · 1
- Closed#137027Bot-to-bot DM ping-pong: runtime notices (busy-ack / redirect / model-fallback) are delivered to bot peers, and non-machinery turns can never be silent ⇒ no quiet state ⇒ unbounded loop
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.00means every pair is linked.