Repository navigation
Fix Antigravity ACP channel IGNORE spam and direct-inbox read receipts - #5234
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the
#modelIGNOREspam onAntigravityAcpBackendand both read-receipt bugs inInputDrain.drain_direct_inbox/_steer_direct_inbox:Unmentioned
@mentionchannel posts no longer wake or mid-turn steerAntigravityAcpBackendmembers (src/agent_comms/messaging/response_policy.py,src/agent_comms/execution/input_drain.py):ResponsePolicy.direct_wake_for(...)defaulting torequired_responders(overridden onDirectPolicytoself.starts_turn).DirectPolicyand unmentionedCollectivePolicyposts keep waking;MentionedPolicywakes only addressed members;InformationalPolicywakes nobody.InputDrain._partition_direct_inboxshared by both_steer_direct_inboxanddrain_direct_inbox(deleting the duplicated loop).Non-waking
BoundedTriageWakeposts settle toNot answering(IgnoredProgress) instead of sticking onSent(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):IgnoredMonitor+AssignmentState.harness_ignore(TriagePendingAssignment -> IgnoredAssignment) +DeliveryProgress.ignored()(PendingProgress -> IgnoredProgress) andMessaging.ignore_direct_turn_inputs(...).FilteredOutcome+IgnoredMonitor()and marked displayed viadisplayed.select(...)without advancing past waking messages.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_inboxand_steer_direct_inboxno longer advanceread_ledgerfor waking messages before delivery;Messaging.acknowledge_direct_turn_inputscallsMessageBus.mark_messages_displayedonly after recording durableHarnessDeliveryatTurnProgress.input_started.IGNOREchannel 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):SelectedTriage.suppresses_channel_reply(IgnoreSelectedTriage.suppresses_reply = True),ChannelTarget.suppresses_ignore_reply = True, andTurnProgress._publishable_reply_targets, suppressingIGNORE/{"decision": "IGNORE"}in bothpublish_progressandpublish_successfor 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).--raw-findings --no-cache,Analysis: 66.282s) across all 9 touchedsrc/modules: 0 findings on touched/new symbols.PY_COMPILE=OK,REL_IMPORTS=0.