Skip to content

Crews: message envelopes name the sender and how they relate to you #679

Closed as not planned

Description

@bryantderosier

Item 3 of 11 in the Crews: organic teamwork milestone.

The problem

When an agent gets a message from a crewmate, the envelope says:

[Cross-agent message from agent:j5:a2a:thread:j5:a2a:5d6a79cd… in project Billing]

That's the whole identity: an ID. The receiver can't tell from the envelope whether this is its Captain, a crewmate, or some Captain from another crew. To find out it has to remember its first-turn roster (which goes stale, see #681) or call j5_list_participants. Agents guess, or they treat every message the same.

Where this sits

This is part of "crewmates know each other." Names on messages (this issue), a crew-aware address book (#680), and join notices (#681) together mean an agent always knows who it's talking to and how they relate. It also makes the folded catch-up turn from #677 much easier to read, since each message in it says who it's from.

Definition

The docs PR on j5/crew-teamwork-docs writes the end state into the definitions, so read these first; this issue builds to them. Agent-to-agent communication AC22 and the Envelopes section, and Crews AC25.

What we already have

Proposal

Add the sender's display name and its relationship to the receiver, worked out at delivery time:

[Cross-agent message from Critic (your crewmate in Invoice Export), agent:j5:a2a:… in project Billing]
[Cross-agent message from Release Lead (your Captain for Invoice Export), agent:j5:a2a:… in project Billing]
[Cross-agent message from Pricing Lead (Captain of Pricing Copy), agent:j5:a2a:… in project Billing]
[Cross-agent message from Docs Helper, agent:j5:a2a:… in project Billing]

Keep the participant id in there, since agents reply with it.

Acceptance criteria

  1. Every agent-to-agent envelope names the sender's display name and keeps its participant id.
  2. When sender and receiver share a live crew, the envelope says how they relate: your Captain, your crewmate (with the seat name), or a seat you command. When the sender captains a different live crew, the envelope says so and names that crew.
  3. The relationship is worked out when the message is delivered, so a seat added later reads correctly.
  4. A sender on a peer server shows the name that server reports, and no crew relationship.
  5. The web A2A cards still render messages stored before this change, and render new ones with the name. Mobile still shows readable text.
  6. Reply instructions and exchange ids are unchanged, and replying still works on Codex and Claude.
  7. Focused tests cover each relationship case and the no-crew case.
  8. If any upstream-owned file changes, it's recorded in FORK.md.

Dependencies

Activity

  1. added
    enhancement
    size:S
    on Oct 21, 2026
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

    enhancementsize:S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions