Repository navigation
Description
Item 1 of 9 in the Crews: organic teamwork milestone.
The problem
When I watch a Captain, most of what lands in its conversation is the platform reporting on itself. Every approval is followed by a "Crew launched" roster card. Every time a seat's run ends, a "Seat finished" card shows up, even when the seat's message to the Captain already said the same thing. Messages from members render as full cards. The things I'd actually act on, like a blocker, a failure, or a question for me, get buried among status cards.
Where this sits
This is the first slice of Crews proposal v2 (25 October), "The Captain's timeline". It only changes what the timeline shows. The platform still sends the launch report and finish notices to the Captain exactly as it does today (crews.md AC6, AC13). Status moves to the Fleet row and the Captain's expander, so those have to be accurate before the cards go away.
What we already have
- Notice parsing:
presentCrewNotice,parseGate, andparseSeatsinapps/web/src/j5/crew/crewNotices.logic.ts:100-238. - Notice cards:
CrewGateCardandCrewSeatsCardinapps/web/src/j5/crew/CrewNoticeRenderer.tsx:45and:177. - Member messages:
PeerDeliveryCard, with the "Expects reply" pill and the two-line clamp, inapps/web/src/j5/a2a/ThreadA2ARenderer.tsx:599.renderThreadA2ADelivery(:750) tries the crew notice renderer first, using the existing upstream user-row seam. - Seat state on the Fleet row and the Captain's expander (crews.md AC22). A dead seat already reads as failed there.
- Sign-in and permission failures already raise an Inbox notice.
Proposal
The Captain's conversation keeps only what I'd act on:
- Removed: the launch report card and every seat-finished card.
- Stays: messages members send the Captain, escalations, and the Captain's own replies.
- One line each: a seat that couldn't start, and a run that failed or was interrupted. Each is one red line that opens the seat.
- Compact rows: member messages become rows two lines high with the sender's provider logo.
Acceptance criteria
- The Captain's timeline no longer renders the launch report card. The approval gate itself is unchanged here; collapsing it to "Crew approved · N members" belongs to Crews: a flat roster card with members edited in place #742.
- The Captain's timeline no longer renders a seat-finished card for a seat whose run completed.
- A seat that failed to start shows as one red line with the seat's name and the reason, for example "tester couldn't start · Cursor is signed out". The line opens the seat's thread. If the seat's thread was never created, the line shows the reason and doesn't link.
- A run that failed or was interrupted shows as one line in the same style, with the run's error when there is one. It doesn't use the working-teammate styling.
- When several seats fail in one launch or one batched notice, each gets its own line. Successful seats in the same notice render nothing.
- A message a Crew member sends its Captain renders as a compact row: the sender's provider logo and name, then the body clamped to two lines, expandable as it is today. "Expects reply" still shows when the message expects a reply.
- Escalations, silence warnings (the "⚠" lines), and the Captain's replies render as they do today. Messages the Captain sends stay collapsed in its work log.
- Every outcome the removed cards used to report stays visible in the timeline line or on the Fleet row and Captain's expander. That covers started, completed, interrupted, failed with its error, never created, and startup still unconfirmed. I can find out where a Crew stands without opening the Captain's raw notices.
- The Captain receives the same notice text and turns as before. There are no server, contract, or delivery changes, and the folding of notices that arrive during a running turn is untouched.
- The change applies when the timeline is drawn, so existing Captain threads show the new layout too, with no migration.
- A member that finishes without sending the Captain a message shows nothing in the timeline (pending the open question below).
- Rendering stays cheap. A long Captain thread with many notices doesn't add list rows for hidden notices and has no continuously running animations.
- Focused tests on the notice logic cover: a launch with all seats started, which renders nothing; a launch with a mix of started, failed, and never-created seats; a completed finish, which renders nothing; failed and interrupted finishes; a batched notice with mixed outcomes.
-
docs/j5/product/features/crews.mdis rewritten where it describes what the person sees for launch and finish. The Captain-facing ACs stay as they are.
Out of scope
- The proposal card redesign and the "Crew approved · N members" collapse (Crews: a flat roster card with members edited in place #742).
- The lineage panel layout. This issue only makes the existing Fleet row and expander states accurate.
- A "Not started" state for seats that wait. That comes with Crews: members start when there's work for them #745.
- Mobile. Crews have no mobile surface today, deliberately (crews.md).
- Messages between peers outside a Crew. They keep today's card.
Open question
When a member finishes without messaging the Captain, should the timeline show nothing, or one muted "builder finished" line? I'd go with nothing, because the Captain's next reply explains it and the Fleet row shows the seat as done. The AC above is written that way.
Implementation Plan: 741-quieter-captain-timeline.html
Activity
feat(web): a Captain's timeline shows only what needs the person
fix(web): hidden Crew notices keep bounding the Captain's turns
docs(j5): FORK.md's case count includes case 87 (#741)
feat(web): a Captain's timeline shows only what needs the person (#750)