Repository navigation
Description
Item 11 of 11 in the Crews: organic teamwork milestone.
The problem
Two things make growing a crew clunky:
- One seat per request.
j5_request_crew_memberasks for one agent at a time. When a Captain realizes it needs a Sitter and a second Builder, I get two separate Inbox items to approve. - The request only shows in the Inbox. I decided on 2026-09-14 that additions go on the bell with no indicator anywhere else, because I might be anywhere mid-run. That still holds when I'm away, but when I'm sitting in the Captain's thread watching it ask for a seat, I have to leave and go to the Inbox to approve it. Guests who can write to the Captain's thread don't see the Inbox at all, which is Sharing v2: a Crew's seat requests go to the inbox, which a guest collaborator never sees #534's stall.
Decision
I'm reversing my 2026-09-14 call: an addition request also shows inline in the Captain's thread, the same way the first roster does, and stays in the Inbox and on the bell. First answer wins everywhere. @Jacksondr5 lmk if you see a problem with that before anyone builds it.
Where this sits
The gate stays the authority: I still approve every seat. This just puts the gate where I already am and lets a Captain ask for what it actually needs in one go. It fits the "organic" goal of the milestone: the crew grows in a conversation, not through a series of separate approvals somewhere else.
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. Crews AC10, AC11, and AC23 (and the History line recording the reversal), Agent tool surface AC41, and Inbox AC19.
What we already have
J5RequestCrewMemberInputinapps/server/src/j5/a2a/mcp/tools.ts:436, and the proposal and gate services:AgentCrewProposalService.ts,CrewProposalService.ts,crewProposalProjection.ts.- The inline roster card above the Captain's composer and the Inbox addition card on web (web
src/j5). They already share the seat editor and the server preview (crews.md AC2–AC3). - The 12-seat cap counts open requests (
crewLimits.ts, crews.md AC11). Resolve-once on every proposal (crews.md AC6–AC7). - Several people (crews.md AC23) and Sharing v2: a Crew's seat requests go to the inbox, which a guest collaborator never sees #534 / Crews: an agent is not told where a first roster is approved, and guesses the inbox #603 for guest visibility.
Acceptance criteria
j5_request_crew_memberaccepts one or more seats in a single request. All of them count against the 12-seat cap while the request is open, and the whole request is refused if it would go over.- One request is one gate: one Inbox item, one approval or decline, one snapshot version bump. The person can still drop individual seats on the card before approving.
- An open addition request shows inline above the Captain's composer with the same card and preview as the Inbox item, and stays in the Inbox and on the bell.
- The first answer from any surface settles it, and the other surface shows it as resolved. A second answer is refused and changes nothing.
- Everyone who can write to the Captain's thread sees the inline card (crews.md AC23).
- The launch report, the roster-changed notice (Crews: tell existing seats when someone joins the crew #681 if it's landed), and the gate notice to the Captain cover every seat in the request.
- The quoted tool descriptions in
agent-tools.mdstay as shipped until the code changes them, so this PR updates the shippedj5_request_crew_memberdescription and its quoted copy together (EnvelopeFormatter.test.tscompares thej5_send_messageone). The definitions already carry the rest. - Focused tests cover a multi-seat request over the cap, partial drop on the card, and answer-once across surfaces.
Dependencies
- None blocking.
- Related: Sharing v2: a Crew's seat requests go to the inbox, which a guest collaborator never sees #534 and Crews: an agent is not told where a first roster is approved, and guesses the inbox #603 (guests and the gate). This should close or shrink Sharing v2: a Crew's seat requests go to the inbox, which a guest collaborator never sees #534.
Activity