Skip to content

Crews: message the whole crew in one call #686

Closed as not planned
Closed as not planned

Description

@bryantderosier

Item 10 of 11 in the Crews: organic teamwork milestone. Last in line on purpose.

The problem

Telling the whole crew something ("the API shape changed," "stop, we're switching approach," "PR is up") takes one j5_send_message per seat. It's tedious, agents skip people, and every send is its own message the receiver has to process.

Where this sits

This is the last communication item because it's the one most likely to make the queue problem worse if it lands first: a crew-wide send to 5 seats is 5 more queued messages. With #677 (busy seats read everything in one turn) and #683 (progress goes on the notepad, not in messages), the cases left for a crew-wide message are rare and real: a change of plan, a stop, a shared blocker.

First step: decide whether we still need it. After #677 and #683 ship, look at whether Captains are still sending the same message to every seat one at a time. If they aren't, close this.

Definition

The docs PR on j5/crew-teamwork-docs writes the end state into the definitions, so read these first; this issue builds to them. It's in the "Later" list of Crews, not in the definition. If we build it, the same PR moves it out of Later and into the definitions.

What we already have

Proposal

j5_send_message accepts a crew as the recipient (to_crew: crew_instance_id). It's a plain send only, and it becomes one ordinary message per recipient, so delivery, receipts, folding, and not-delivered notices all work exactly as they do for single sends.

Acceptance criteria

  1. Before building, the PR (or a comment here) shows whether Captains still send the same message to every seat after Crews: a busy agent reads every message that arrived in one catch-up turn #677 and Crews: a shared crew notepad (Captain plan page plus one page per seat) #683. If not, close this as not needed.
  2. to_crew is accepted from that crew's Captain and its live seats. Anyone else is refused, naming the crew's Captain as who to message.
  3. A crew send is plain only: expect_reply, exchange_id, regarding, mode, and urgency are refused with it, naming a single send as the way to ask.
  4. It goes to every live seat and the Captain except the sender, as one ordinary message each, and they share an id that ties them together.
  5. The result lists each recipient's outcome (queued, delivered, or refused with the reason).
  6. Each recipient's envelope says it went to the whole crew.
  7. docs/j5/product/a2a/agent-tools.md is rewritten for the field.
  8. Focused tests cover: fan-out from the Captain and from a seat, non-member refused, asks refused, and per-recipient results.

Dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsize:M

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions