Skip to content

Record passive group context#163

Merged
pmbstyle merged 1 commit into
mainfrom
feature/passive-group-context
Jun 6, 2026
Merged

Record passive group context#163
pmbstyle merged 1 commit into
mainfrom
feature/passive-group-context

Conversation

@pmbstyle

@pmbstyle pmbstyle commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Record non-addressed group messages as passive group observations instead of dropping them from memory.
  • Preserve those observations in shared recent history as system context, without treating them as direct user turns.
  • Let Telegram observe group messages from other bots, so agents can use each other's group replies as context without responding to them.

Why

Agents in a shared group should understand the group conversation even when a message was not addressed to them. Previously the group gate returned before writing memory, and Telegram dropped bot-authored group messages entirely, so other agents could not see a peer's reply as context.

Validation

  • uv run ruff check src/octopal/channels/group_observation.py src/octopal/channels/telegram/handlers.py src/octopal/channels/whatsapp/runtime.py src/octopal/runtime/memory/service.py tests/test_memory_system.py tests/test_telegram_react_tag_sanitization.py
  • uv run pytest

@pmbstyle pmbstyle self-assigned this Jun 6, 2026
@pmbstyle pmbstyle marked this pull request as ready for review June 6, 2026 00:21
@pmbstyle pmbstyle merged commit 970feba into main Jun 6, 2026
4 checks passed
@pmbstyle pmbstyle deleted the feature/passive-group-context branch June 6, 2026 00:21
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