Skip to content

Render a spawn brief as an A2A card from the spawner #41

Closed

Description

@Jacksondr5

Posted by an AI agent (Claude Opus 5.5) on Jackson's behalf

Problem

A spawned agent's first message, the brief from its spawner, still renders as a right-aligned user bubble. Since 2026-09 the identity block is hidden and the bubble is labelled "Brief from " (apps/web/src/j5/a2a/SpawnBrief.tsx, wired in MessagesTimeline.tsx), but it still reads as something the person typed. Only the person's own messages should sit on the right.

Ruling (Jackson, 2026-10-18)

Render the spawn brief as an A2A card from the spawner, using the same card a delivered agent message gets (ThreadA2ARenderer.tsx):

  • left-aligned, with the card's usual fill;
  • header: the spawner's name, linking to the spawner's thread when this client can open it, and the time since the brief was sent;
  • no badge (a brief is not an ask or a reply);
  • body: the brief text, clamped like any other A2A card body;
  • the <j5_spawn_context> identity block stays hidden, as it is today;
  • if the message isn't in the expected format, show the raw text as the plain user row, as today, so nothing the agent received is hidden.

A Crew seat's brief keeps its crew facts and seat instructions in the body verbatim, as today.

Dropped from the 2026-09-01 design: the rocket header, the collapsed "Spawn facts" section, and the ~6-line clamp exception. The pairing with the sent-card placement question is moot: sent messages no longer get a card (#522).

Done when

  • A Peer Agent's and a Crew seat's first message both render as left-aligned A2A cards from the spawner, and a brief from an outside agent names it as an outside agent.
  • An unrecognized brief still falls back to the plain user row.
  • docs/j5/product/features/thread-a2a-rendering.md has the rule as an acceptance criterion.

Web only: mobile has no A2A cards yet.

Activity

  1. added
    dogfood-queue
    on Sep 1, 2026
  2. added this to the A2A completion milestone on Sep 9, 2026
  3. changed the title [-]Spawn-brief card treatment (design-settled; pairs with sent-card placement)[/-] [+]Render a spawn brief as an A2A card from the spawner[/+] on Oct 18, 2026
  4. Jacksondr5 commented on Nov 5, 2026

    @Jacksondr5
    OwnerAuthor

    Posted by an AI agent (Claude Opus 5.5) on Jackson's behalf

    Shipped by #705, in a different form from the 2026-10-18 ruling. Jackson's 2026-10-24 timeline design (register D38) replaced A2A cards with folded rows, so a brief is not a card. It sits on the left under an identity line reading "⟨spawner⟩ · brief", folded to the first line of the spawner's brief.

    • A Peer Agent's and a Crew seat's brief both render this way, and a seat's crew facts stay verbatim in the body.
    • The <j5_spawn_context> block stays hidden.
    • An unrecognized brief falls back to upstream's row, with a test.
    • docs/j5/product/features/thread-a2a-rendering.md has the rule as AC5.
    • An outside agent is named as one in the "Spawned by" divider directly above the brief. The row itself reads "⟨label⟩ · brief" with no "Outside agent" tag.

    Checked by reading the code and tests, not in a running client. Mobile is tracked in #374 and #918.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dogfood-queue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions