Add send_input without breaking the wait mailbox - #682
Merged
Conversation
TheGreatAxios
force-pushed
the
fleet-send-input
branch
from
August 25, 2026 14:52
b87ba8d to
789f8ec
Compare
TheGreatAxios
force-pushed
the
fleet-list-agents
branch
from
August 25, 2026 15:49
c4a60e0 to
dbe78b8
Compare
TheGreatAxios
force-pushed
the
fleet-send-input
branch
from
August 25, 2026 16:02
b05ea20 to
0aa128b
Compare
Soft-deliver steers a running worker without completing wait_agents. interrupt:true uses the same mailbox flip as interrupt_agent so a parent wait unblocks once, then a later followup can become done only if that interrupt was never collected.
Nested interrupt/close/resume/followup now share send_input's assertCanTargetAgent check and fail closed without an actorId. Soft-interrupt wait_agents collects so a later followup cannot resurrect an already-observed interrupt as done.
TheGreatAxios
force-pushed
the
fleet-send-input
branch
from
August 25, 2026 16:02
0aa128b to
99c8780
Compare
TheGreatAxios
added a commit
that referenced
this pull request
Aug 27, 2026
* Add send_input without breaking the wait mailbox Soft-deliver steers a running worker without completing wait_agents. interrupt:true uses the same mailbox flip as interrupt_agent so a parent wait unblocks once, then a later followup can become done only if that interrupt was never collected. * Gate addressing fleet verbs with subtree authority Nested interrupt/close/resume/followup now share send_input's assertCanTargetAgent check and fail closed without an actorId. Soft-interrupt wait_agents collects so a later followup cannot resurrect an already-observed interrupt as done. * Format run.ts after send_input authority restack
TheGreatAxios
added a commit
that referenced
this pull request
Aug 27, 2026
* Add send_input without breaking the wait mailbox Soft-deliver steers a running worker without completing wait_agents. interrupt:true uses the same mailbox flip as interrupt_agent so a parent wait unblocks once, then a later followup can become done only if that interrupt was never collected. * Gate addressing fleet verbs with subtree authority Nested interrupt/close/resume/followup now share send_input's assertCanTargetAgent check and fail closed without an actorId. Soft-interrupt wait_agents collects so a later followup cannot resurrect an already-observed interrupt as done. * Format run.ts after send_input authority restack
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
send_inputsoft-delivers a mid-turn message without completingwait_agents.send_inputwithinterrupt:trueflips the same wait mailbox asinterrupt_agent, then queues a followup without awaiting it.doneonly if that interrupt was never collected. Nested orchestrators may only target descendants.Verification
bun run typecheck,bun run build, andbun run testpass