Skip to content

Crews: one adjudication request in the Inbox and the Captain's chat #747

Closed

Description

@bryantderosier

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_message with expect_reply, withdrawn by j5_clear_own_ask (apps/server/src/j5/a2a/mcp/tools.ts:811, SendService.ts:1393). They're stored as one ledger exchange plus the j5_a2a_human_inbox projection (HumanInboxService.ts:207).
  • Answering appends message.sent and exchange.closed (:389). It's refused if the exchange is closed (:328) or already answered (:339), as inbox.md AC16 requires.
  • exchange.closed bumps the inbox and fleet read-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_message to me with expect_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.html and 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_message and expect_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_ask removes 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_message rather 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

Activity

  1. added
    enhancement
    on Oct 27, 2026
  2. bryantderosier commented on Oct 28, 2026

    @bryantderosier
    CollaboratorAuthor

    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:

    • The open request is pinned above the composer while it's open, like the Crew proposal card. With two open asks it shows the oldest in full and a "1 more question" row.
    • It shows three lines of the question with "Show full question". Reply box only, no "go with the recommendation" button.
    • Answered: the card goes away, my reply shows as "You · via Inbox", and the Inbox item moves to the Answered shelf.
    • Withdrawn: the card goes away and the Inbox item disappears. I'm not changing how the tool-call row renders in the timeline, since that's upstream's.
    • The server stays as it is. A second answer is refused as it is today and the card says "Already answered".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions