Repository navigation
Closed
Description
Item 7 of 9 in the Crews: organic teamwork milestone.
The problem
When a Crew hits a decision only I can make, there's no single place it shows up.
- If the Captain uses its native question tool, the question only exists in the Captain's thread. The Inbox deliberately leaves Captains out.
- If it asks me with
j5_send_message, the ask lands in the Inbox, but the Captain's thread only shows a tool-call row, and I can't answer it there.
Either way I have to know where to look, and nothing tells me two things are the same decision.
Where this sits
This is the "Adjudication" row and the "One actionable decision" direction of Crews proposal v2 (25 October). The Captain settles technical disagreements within the agreed scope itself. When it needs me, the question comes with the disagreement, the options, and its recommendation. It appears as one request in both the Inbox and the Captain's chat, and answering in either clears both. The screen isn't designed yet, so design comes first in this issue.
What we already have
- Asks to me:
j5_send_messagewithexpect_reply, withdrawn byj5_clear_own_ask(apps/server/src/j5/a2a/mcp/tools.ts:811,SendService.ts:1393). They're stored as one ledger exchange plus thej5_a2a_human_inboxprojection (HumanInboxService.ts:207). - Answering appends
message.sentandexchange.closed(:389). It's refused if the exchange is closed (:328) or already answered (:339), as inbox.md AC16 requires. exchange.closedbumps theinboxandfleetread-change feeds (ReadChangeFeeds.ts:44-46), so other devices re-read.- In the asker's thread, the ask is a tool-call row, and my reply arrives as "You · via Inbox" (
apps/web/src/j5/a2a/ThreadA2ARenderer.tsx:430). - The Inbox page is
apps/web/src/j5/a2a/HumanInboxPage.tsx, and ask bodies render as markdown. - Captains keep native questions, answered inline (inbox.md definition
:16-18). - A precedent for one request answerable in two places: seat provider approvals (
CrewRuntimeRequestService.ts:168, crews.md AC9).
Proposal
- Adjudication uses the ask Crews already have,
j5_send_messageto me withexpect_reply, because it's one authoritative record. - The Captain's thread renders its open asks to me as answerable cards, so I can reply there or in the Inbox.
- The Captain's guidance says when to ask and what to include, and to keep working on what it can while it waits.
Acceptance criteria
- The adjudication request is designed first, in dark mode, with variations. The approved mockup is saved as
artifacts/design/ui/08-adjudication-request.htmland linked here before building. It covers the card in the Captain's thread, the Inbox item, the answered state, and the withdrawn state. - When the Captain asks me with
j5_send_messageandexpect_reply, the ask shows in the Inbox as today and as an answerable card in the Captain's thread, where the design places it. - Answering in either place closes the one exchange. The other view updates without a reload, including on another device, through the existing read-change feeds.
- A second answer from another view or device is refused with the existing "already answered" message, and that view then shows the answered state.
- Withdrawing the ask with
j5_clear_own_askremoves it from both views. - The reply reaches the Captain exactly once, whichever view I answered from.
- The Captain's guidance says to:
- settle technical disagreements within scope itself;
- ask me only when product intent or my judgment is needed;
- ask with
j5_send_messagerather than its native question tool, so the request reaches the Inbox; - include the disagreement, the options, and its recommendation;
- keep working on what doesn't depend on the answer.
- A Crew member that needs my decision still goes through its Captain. Members get no new way to ask me.
- Asks from agents that aren't Captains keep today's behavior.
- Focused tests cover answering from the Inbox, answering from the thread, a refused second answer, withdrawal, and the reply being delivered once.
- inbox.md (the definition's line on Captains' requests, AC16) and crews.md (adjudication prose) are rewritten.
Out of scope
- Moving Captains' native questions into the Inbox. That's upstream's
runtimeRequests, and this issue doesn't need it. - Mobile. There's no J5 Inbox on mobile and no Crew surface.
- Worktree cleanup approvals (Crews: one Inbox approval for worktrees with unfinished work #749).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
bryantderosier commentedon Oct 28, 2026
The adjudication mockup is approved:
artifacts/design/ui/08-adjudication-request.html(saved in the J5 artifacts store, not in the repo).What I decided:
feat(j5): one adjudication request in the Inbox and the Captain's chat (