Repository navigation
fix(ctx_discord_policy): 3.0.2 — a turn in ambient mode that ends in NO_REPLY stays silent instead of drawing Hermes' silence-marker notice - #577
Conversation
…NO_REPLY stays silent instead of drawing Hermes' silence-marker notice In ambient mode the bot reads along and the prompt lets the model answer NO_REPLY. Hermes keeps a bare marker silent only for an event whose reply_expected is False (or with allow_silence configured); its Discord adapter leaves the field unset, so Hermes replaced the marker with the notice "The model returned only a silence marker for a message that needed a reply" and posted it into the channel. The event gate (A10) now sets reply_expected = False on the event of a route in ambient mode: only where the field exists and is still unset. An addressed message keeps Hermes' rule and its notice. A failure of the mark is logged and leaves the event as Hermes built it. Observed on a live server: five of nine answers within three days were that notice, four of them on ambient turns. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What was wrong
In a conversation (ambient) channel the bot reads along, and the plugin's prompt tells the model to answer exactly
NO_REPLYwhen it has nothing to add. Hermes keeps such an answer silent only when the event says that no reply is expected (MessageEvent.reply_expected is False) or whenallow_silenceis configured (gateway/response_filters.py: silence_allowed). Hermes' Discord adapter never sets the field, so the marker was rejected (silence marker rejected on a user turn) and the channel got Hermes' notice instead:On the live server five of the nine Discord answers between 2026-11-26 and 2026-11-28 were this notice; four of them belonged to ambient turns (all four ambient turns of that period).
The change
dsp/adapt/interventions.py: the event gate on the adapter'shandle_message(A10) setsreply_expected = Falseon the event of a route in ambient mode. Only an unset field is written, only on a Hermes whose event has the field. A message that addresses the bot (mention, reply, wake name, reaction) is a direct route and keeps Hermes' rule, so a bare marker there still draws the notice. If the mark fails, the error is logged and the event goes on as Hermes built it.tests/contract/test_ambient_silence.py: through Hermes' real admission and handler, an ambient message of a member and of the operator reaches the pipeline withreply_expected is False; an addressed message in the same channel keepsNone; Hermes' ownsilence_allowedaccepts the first and refuses the second.Evidence
interventions.pyat the base revision, 2 of the 3 new tests fail (Hermes 05c75446bc); with the change all 3 pass.tools/assemble_ui.py --checkclean.Not changed
Hermes' rule itself,
allow_silence, and direct turns: a model that answers an addressed message with a bare marker still gets the notice (seen once in the same period).🤖 Generated with Claude Code
Summary by CodeRabbit