From 8cc10fbacc0c75fe18d2b14cff4c337b5e92e4b9 Mon Sep 17 00:00:00 2001 From: Bastian Huppertz Date: Mon, 2 Nov 2026 20:27:12 +0100 Subject: [PATCH 1/3] fix(fleet): remove redundant agent origin labels --- apps/web/src/j5/fleet/FleetPage.tsx | 31 +++++------------------ apps/web/src/j5/fleet/fleet.logic.test.ts | 20 --------------- apps/web/src/j5/fleet/fleet.logic.ts | 14 ---------- docs/j5/product/features/fleet-page.md | 2 +- 4 files changed, 8 insertions(+), 59 deletions(-) diff --git a/apps/web/src/j5/fleet/FleetPage.tsx b/apps/web/src/j5/fleet/FleetPage.tsx index 3f61526ee3a40..feb10dc164a92 100644 --- a/apps/web/src/j5/fleet/FleetPage.tsx +++ b/apps/web/src/j5/fleet/FleetPage.tsx @@ -40,7 +40,6 @@ import { countFleetProjects, fleetCrewAnchorId, orderFleetRowsByProject, - originLabel, partitionFleet, playbookRunHeader, retiredCrews, @@ -64,7 +63,6 @@ import { FleetFactCells, FleetFactDetails, FleetSourceReadout, - FleetFactHint, FleetCrewSummary, } from "./FleetFacts"; @@ -682,31 +680,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..721e8d97306ba 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. From 282531c4512f6d4a968e2c97b34cd676d2f16f82 Mon Sep 17 00:00:00 2001 From: Bastian Huppertz Date: Mon, 2 Nov 2026 20:32:16 +0100 Subject: [PATCH 2/3] refactor(fleet): keep fact hint private after label removal --- apps/web/src/j5/fleet/FleetFacts.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/j5/fleet/FleetFacts.tsx b/apps/web/src/j5/fleet/FleetFacts.tsx index 9933318f605ec..9a6e5cdaacf8e 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, From b0cd9ab72cd029eb7751f430463a85a9322d1def Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Wed, 4 Nov 2026 23:20:22 -0500 Subject: [PATCH 3/3] docs(j5): record the Fleet origin label change in History Co-Authored-By: Claude Opus 5.5 --- docs/j5/product/features/fleet-page.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/j5/product/features/fleet-page.md b/docs/j5/product/features/fleet-page.md index 721e8d97306ba..cc60480643b58 100644 --- a/docs/j5/product/features/fleet-page.md +++ b/docs/j5/product/features/fleet-page.md @@ -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)).