beh-11: addressed-only channels — silent unless mentioned, replied to, or named; scheduled tasks skip them

This commit is contained in:
Oleksandr Kozachuk
2026-07-23 15:26:06 +02:00
parent f3c25de310
commit 1cdd240d98
3 changed files with 112 additions and 2 deletions
+13
View File
@@ -82,3 +82,16 @@ opening hours, release dates, news lookups get the stronger tier
while small talk stays on the cheap default. Unset = no change. The
`retry-model` override still wins on retry, and vision inputs keep
using `model-vision`.
### BEH-11 — Addressed-only channels answer only when spoken to (coverage: test)
Channels matching `addressed-only-channels` (fnmatch patterns like
BEH-09) never get spontaneous participation: the handler returns
before the classifier gate unless the message addresses the bot — an
@mention or DM, a Discord reply to one of the bot's messages, or the
bot's name appearing in the message text (case-insensitive). No
model call, no emoji reaction otherwise. Scheduled tasks
(idle-impulse, follow-up) targeting such a channel are skipped at
execution time — the bot never posts there unprompted, whatever a
generator proposes. Unlike BEH-09 the bot still answers when
addressed; DMs are unaffected.