Skip to content

Fix Antigravity ACP channel IGNORE spam and direct-inbox read receipts - #5234

Merged
trissim merged 1 commit into
mainfrom
fix/direct-inbox-triage-and-receipts
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/direct-inbox-triage-and-receipts

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the #model IGNORE spam on AntigravityAcpBackend and both read-receipt bugs in InputDrain.drain_direct_inbox / _steer_direct_inbox:

  1. Unmentioned @mention channel posts no longer wake or mid-turn steer AntigravityAcpBackend members (src/agent_comms/messaging/response_policy.py, src/agent_comms/execution/input_drain.py):

    • Added ResponsePolicy.direct_wake_for(...) defaulting to required_responders (overridden on DirectPolicy to self.starts_turn). DirectPolicy and unmentioned CollectivePolicy posts keep waking; MentionedPolicy wakes only addressed members; InformationalPolicy wakes nobody.
    • Factored InputDrain._partition_direct_inbox shared by both _steer_direct_inbox and drain_direct_inbox (deleting the duplicated loop).
  2. Non-waking BoundedTriageWake posts settle to Not answering (IgnoredProgress) instead of sticking on Sent (src/agent_comms/cli_bridges/harness_delivery_states.py, src/agent_comms/coordination/assignment_states.py, src/agent_comms/coordination/tables/harness_deliveries.py, src/agent_comms/messaging/notification_progress.py, src/agent_comms/messaging/sending.py, src/agent_comms/agent_backend.py, src/agent_comms/execution/antigravity_backend.py, src/agent_comms/comms.py):

    • Added IgnoredMonitor + AssignmentState.harness_ignore (TriagePendingAssignment -> IgnoredAssignment) + DeliveryProgress.ignored() (PendingProgress -> IgnoredProgress) and Messaging.ignore_direct_turn_inputs(...).
    • Non-waking messages are settled with FilteredOutcome + IgnoredMonitor() and marked displayed via displayed.select(...) without advancing past waking messages.
  3. Waking messages survive restart before turn start (src/agent_comms/messaging/message_bus.py, src/agent_comms/messaging/sending.py, src/agent_comms/execution/input_drain.py):

    • drain_direct_inbox and _steer_direct_inbox no longer advance read_ledger for waking messages before delivery; Messaging.acknowledge_direct_turn_inputs calls MessageBus.mark_messages_displayed only after recording durable HarnessDelivery at TurnProgress.input_started.
  4. IGNORE channel replies are never posted to the channel (src/agent_comms/execution/selected/triage.py, src/agent_comms/messaging/channel_targets.py, src/agent_comms/execution/turn_progress.py):

    • Added SelectedTriage.suppresses_channel_reply (IgnoreSelectedTriage.suppresses_reply = True), ChannelTarget.suppresses_ignore_reply = True, and TurnProgress._publishable_reply_targets, suppressing IGNORE / {"decision": "IGNORE"} in both publish_progress and publish_success for channel targets.

Receipts

  • pytest -q -p no:xdist tests/test_antigravity_acp_backend.py tests/test_message_notifications.py tests/test_notification_recipient_window.py: 30 passed in 16.81s, rc=0 (3 new end-to-end tests covering all 4 fixes).
  • pytest -q -p no:xdist tests/test_agent_backend.py tests/test_triage_reask.py tests/test_harness_receipt_context.py tests/test_mentions.py tests/test_wake.py: passed (86/86 existing passed in prior run).
  • 120-detector NRA (--raw-findings --no-cache, Analysis: 66.282s) across all 9 touched src/ modules: 0 findings on touched/new symbols.
  • PY_COMPILE=OK, REL_IMPORTS=0.

@trissim
trissim merged commit 46644c9 into main Nov 28, 2026
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