# NousResearch/hermes-agent · Bot DM sender attribution and loop guard design

## Open now

- Nothing open on GitHub.

These items address a bug where bot-authored direct messages lack sender identity, causing memory providers to misattribute speech to the recipient. The work involves carrying the bot sender into the recipient's turn and adding a loop guard for bot-to-bot chat scenarios.

## 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 #107520. Verify it addresses your case.
- **Recommended:** read PR #107520 (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-107520`. 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 `1.00`: 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

- #103887: bot mode: a2a dm transports carry no author, so memory providers attribute bot speech to the recipient's user

## Prior & competing PRs

- **#107520: feat(bot-mode): bot DMs carry their sender into the recipient's turn; ALLOW_BOTS chats get a loop guard (#103887, #91481, salvage #103888)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/conversation_loop.py`, `agent/memory_manager.py`, `agent/memory_provider.py`, `agent/turn_author.py`, `agent/turn_context.py`, `agent/turn_facade.py`, `apps/desktop/src/plugins/hermes-bots/relay.test.ts`, `apps/desktop/src/plugins/hermes-bots/relay.ts`, `cli.py`, `gateway/authz_mixin.py`, `gateway/bot_loop_guard.py`, `gateway/platforms/api_server.py`, `gateway/platforms/api_server_runs.py`, `gateway/run.py`, `gateway/run_agent_cache.py`, `gateway/run_busy.py`, `gateway/run_inbound.py`, `gateway/run_turn_runner.py`, `hermes_cli/config_defaults.py`, `hermes_cli/subcommands/peer.py` (+29 more)
- **#103888: feat(bot-mode): carry a bot dm's sender into the recipient's turn; cap bot-to-bot loops**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `94f77dfa0d`, `#107520`, `#91483`

## Fix status

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