diff --git a/apps/web/src/j5/fleet/FleetFacts.tsx b/apps/web/src/j5/fleet/FleetFacts.tsx index 2b5b71ceefd2c..512af07c96b29 100644 --- a/apps/web/src/j5/fleet/FleetFacts.tsx +++ b/apps/web/src/j5/fleet/FleetFacts.tsx @@ -31,7 +31,7 @@ import { const incompleteDeliveryReason = "Delivery problems may be missing because an environment is unavailable or does not provide complete delivery facts."; -export function FleetFactHint({ +function FleetFactHint({ reason, children, className, diff --git a/apps/web/src/j5/fleet/FleetPage.tsx b/apps/web/src/j5/fleet/FleetPage.tsx index 3a81af73c3ab2..85d8e3ec95505 100644 --- a/apps/web/src/j5/fleet/FleetPage.tsx +++ b/apps/web/src/j5/fleet/FleetPage.tsx @@ -49,7 +49,6 @@ import { countFleetProjects, fleetCrewAnchorId, orderFleetRowsByProject, - originLabel, partitionFleet, playbookRunHeader, retiredCrews, @@ -73,7 +72,6 @@ import { FleetFactCells, FleetFactDetails, FleetSourceReadout, - FleetFactHint, FleetCrewSummary, } from "./FleetFacts"; @@ -699,31 +697,16 @@ export function FleetRowItem( }} > - {title} {agent.outsideSpawner !== undefined ? ( - // The label is whatever the client registered, so it yields to the agent's title; the - // name comes first so a cut keeps it, and the full text is on hover. - - } - > - {originLabel(agent)} - - {originLabel(agent)} + }>{title} + + Started by {agent.outsideSpawner.name ?? agent.outsideSpawner.participantId}{" "} + (outside agent) + - ) : agent.origin === "human" ? null : ( - - {originLabel(agent)} - + ) : ( + {title} )} {props.badge ? ( diff --git a/apps/web/src/j5/fleet/fleet.logic.test.ts b/apps/web/src/j5/fleet/fleet.logic.test.ts index 1ccf88e881ff9..1c05f21f6abbc 100644 --- a/apps/web/src/j5/fleet/fleet.logic.test.ts +++ b/apps/web/src/j5/fleet/fleet.logic.test.ts @@ -14,7 +14,6 @@ import { createFleetRowRefresher, fleetInvolvedThreadRefs, orderFleetRowsByProject, - originLabel, partitionFleet, playbookRunHeader, playbookRunOwnerLabel, @@ -94,25 +93,6 @@ describe("fleet tree", () => { }; const roots = buildFleetTree(cyclic); expect(roots.map((node) => node.row.agent.participantId).length).toBeGreaterThan(0); - expect(originLabel({ origin: "unknown" })).toBe("?"); - }); -}); - -describe("fleet origin", () => { - it("names the outside agent that started an agent, by its label and else by its id", () => { - expect(originLabel({ origin: "agent" })).toBe("Agent-spawned"); - expect( - originLabel({ - origin: "agent", - outsideSpawner: { participantId: "outside:session-1", name: "Claude Desktop" }, - }), - ).toBe("Claude Desktop (outside agent)"); - expect( - originLabel({ - origin: "agent", - outsideSpawner: { participantId: "outside:session-1", name: null }, - }), - ).toBe("outside:session-1 (outside agent)"); }); }); diff --git a/apps/web/src/j5/fleet/fleet.logic.ts b/apps/web/src/j5/fleet/fleet.logic.ts index c90f934569357..663d948775bf2 100644 --- a/apps/web/src/j5/fleet/fleet.logic.ts +++ b/apps/web/src/j5/fleet/fleet.logic.ts @@ -279,20 +279,6 @@ export function countFleetProjects< ).size; } -/** - * Origin copy for the Roster row; unknown renders as `?` rather than a plausible guess. An - * outside agent that started the agent is named by the label it signed in with, and by its id - * when it registered none: it has no thread, so the row is the only place it is named. - */ -export const originLabel = (agent: Pick) => - agent.outsideSpawner !== undefined - ? `${agent.outsideSpawner.name ?? agent.outsideSpawner.participantId} (outside agent)` - : agent.origin === "human" - ? "Human-created" - : agent.origin === "agent" - ? "Agent-spawned" - : "?"; - /** * Every seat, every Captain a seat names, and every agent with a placed child: the rows re-read on * a roster change, so that cost follows involvement, not the thread list. The live read carries no diff --git a/docs/j5/product/features/fleet-page.md b/docs/j5/product/features/fleet-page.md index 970df0a0eb961..cc60480643b58 100644 --- a/docs/j5/product/features/fleet-page.md +++ b/docs/j5/product/features/fleet-page.md @@ -69,7 +69,7 @@ The Fleet page is **not** the inbox: it never demands a reply. It is **not** a p 9. Rows are arranged as the placement tree, siblings in creation order, and are never reordered by activity or by problems. 10. People are never rows; a person appears only as the counterparty on an agent's asks. Provider-native Subagents never appear. 11. A retired agent is not a row; an agent still live beneath it renders at its project's root. -12. Each row shows its provenance as a fact: spawned by which agent, forked, or unrecorded. An outside agent that spawned it is named by its label. +12. Rows carry no inline origin tag; placement shows which agent spawned a child. An outside spawner's name is available on hover over the agent's title, using its participant id when no name was recorded. Unknown provenance adds no label. 13. Retired (see History). 14. Clicking a row opens the agent's thread. @@ -148,3 +148,4 @@ The Fleet page is **not** the inbox: it never demands a reply. It is **not** a p - 2026-10-12 — an outside agent can be a spawner: the agent it starts is placed at its project's root and its provenance names the outside agent by its label; AC12 and AC34 (Jackson, 2026-10-11; [#498](https://github.com/Jacksondr5/j5code/issues/498)). - 2026-10-21 — clarified AC15 and AC21: queued follow-ups preserve the active run's status, only completion-holding background work prevents Idle, and dispatch is overdue only when no other run is in progress ([#360](https://github.com/Jacksondr5/j5code/issues/360); [#662](https://github.com/Jacksondr5/j5code/pull/662)). - 2026-10-24 — receiving servers expose later peer delivery alarms through their own Fleet read, and the client attaches them to the remote sender only while both environments are readable; unavailable receivers of open asks leave badge coverage incomplete, with no alarm returned over A2A (Jackson, 2026-10-24; [#662](https://github.com/Jacksondr5/j5code/pull/662)). +- 2026-11-04 — rows lose their inline origin tag, since placement already shows which agent spawned a child; an outside spawner's name moves to hover on the agent's title, and unknown provenance adds no label; AC12 (Jackson, 2026-11-04; [#291](https://github.com/Jacksondr5/j5code/issues/291)).