{"repo":"NousResearch/hermes-agent","public_id":"103887","display_label":"Bot DM sender attribution and loop guard design","summary":"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.","subsystem":null,"counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":107520,"merged_at":"2026-09-10T17:27:08+00:00"},"resolution":{"state":"resolved","by":"pr-107520"},"freshness":{"state":"verified","last_verified_at":"2026-09-10T17:27:08+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":1.0},"fix_edges":[{"issue_number":91481,"pr_number":107520,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-09-10T17:27:08+00:00"},{"issue_number":103887,"pr_number":107520,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-09-10T17:27:08+00:00"}],"members":[{"kind":"issue","number":103887,"title":"bot mode: a2a dm transports carry no author, so memory providers attribute bot speech to the recipient's user","url":null,"state":"closed"},{"kind":"pr","number":103888,"title":"feat(bot-mode): carry a bot dm's sender into the recipient's turn; cap bot-to-bot loops","url":null,"state":"closed","close_reason":{"refs":[{"kind":"commit","value":"94f77dfa0d","number":0},{"kind":"pr","value":"#107520","number":107520},{"kind":"pr","value":"#91483","number":91483}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":107520,"title":"feat(bot-mode): bot DMs carry their sender into the recipient's turn; ALLOW_BOTS chats get a loop guard (#103887, #91481, salvage #103888)","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["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","run_agent.py","tests/agent/test_memory_provider.py","tests/agent/test_turn_author.py","tests/agent/test_turn_context.py","tests/cli/test_quiet_turn_author.py","tests/gateway/test_agent_cache.py","tests/gateway/test_api_server_runs.py","tests/gateway/test_bot_loop_guard.py","tests/gateway/test_session_api.py","tests/gateway/test_unauthorized_dm_behavior.py","tests/hermes_cli/test_peer_cmd.py","tests/run_agent/test_memory_sync_interrupted.py","tests/test_tui_gateway_queue_on_busy.py","tests/tools/test_bot_live_owner_delivery.py","tests/tools/test_bot_mode_dm.py","tests/tools/test_bot_relay.py","tests/tui_gateway/test_bot_live_owner_delivery.py","tests/tui_gateway/test_bot_relay_methods.py","tests/tui_gateway/test_relay_live_author.py","tools/bot_live_delivery.py","tools/bot_mode_dm.py","tools/bot_relay.py","tui_gateway/methods_bot_relay.py","tui_gateway/methods_prompt.py","tui_gateway/prompt_turn.py","tui_gateway/session_auto_continue.py","tui_gateway/session_notifications.py","website/docs/user-guide/messaging/discord.md","website/docs/user-guide/messaging/telegram.md"]}],"trust":{"default_tier":"verified","includes_suggested":false}}