Skip to content

Harden group chat routing#169

Merged
pmbstyle merged 1 commit into
mainfrom
improve-group-chat-routing
Jun 11, 2026
Merged

Harden group chat routing#169
pmbstyle merged 1 commit into
mainfrom
improve-group-chat-routing

Conversation

@pmbstyle

Copy link
Copy Markdown
Owner

Summary

  • Add recent group context to the semantic group-addressing gate for Telegram and WhatsApp.
  • Require a structured semantic review before non-ignore group responses.
  • Clamp contradictory or high-loop-risk gate decisions to silence.
  • Keep targeted Telegram bot commands on the existing fast path while routing quote replies through loop-safe review.

Why

Group chats need to support natural follow-ups and agent-to-agent questions without letting agents keep a conversation alive by talking to themselves. This change makes reply decisions depend on whether the next response would change the useful state of the conversation.

Validation

  • uv run pytest tests/test_telegram_react_tag_sanitization.py tests/test_group_addressing.py tests/test_whatsapp_runtime.py
  • uv run ruff check src/octopal/channels/group_addressing.py src/octopal/channels/telegram/handlers.py src/octopal/channels/whatsapp/runtime.py tests/test_group_addressing.py tests/test_whatsapp_runtime.py tests/test_telegram_react_tag_sanitization.py
  • uv run black --check src/octopal/channels/group_addressing.py src/octopal/channels/telegram/handlers.py src/octopal/channels/whatsapp/runtime.py tests/test_group_addressing.py tests/test_whatsapp_runtime.py tests/test_telegram_react_tag_sanitization.py

@pmbstyle pmbstyle self-assigned this Jun 11, 2026
@pmbstyle pmbstyle marked this pull request as ready for review June 11, 2026 22:58
@pmbstyle pmbstyle merged commit 1fa3819 into main Jun 11, 2026
4 checks passed
@pmbstyle pmbstyle deleted the improve-group-chat-routing branch June 11, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant