Repository navigation
Open
Milestone
Description
Problem
A Crew lives on one machine. So a Captain on the work VM can't seat a member on the Mac that has Xcode, even though a single agent on the VM can start a Peer Agent there (#956).
Design (decided by Jackson, 2026-11-28)
The design follows upstream's remote delegate_task, and diverges from it on purpose where a Crew seat isn't a one-run task.
- The host owns the seat. A remote seat is an ordinary J5 Peer Agent on the host, the machine it runs on. The host is the top authority over it and enforces the seat rules from its own seat record.
- The Captain's server owns the Crew. It keeps the roster, the playbook run and the Exchanges, and holds a pointer to each remote seat. A follower keeps the seat's state current, so the Captain sees and controls it without the client being connected to the host.
- One implementation per action. Every Captain-to-seat action reaches the host through a J5 peer tool that runs the same Crew code as for a local seat: launch, stop, archive, restore, settle, roster updates and playbook hand-offs.
- Stop and archive are owed until they land, as upstream's follower does (an exception to register D46).
- Un-pair or link expiry: the host archives its seats, restorably.
- Personas come from the caller: the definition is sent with the call and pinned on the host. One change covers Crew seats, j5_spawn_agent starts a Peer Agent on another J5 machine (environment_id) #956 and Delegate a persona to another J5 machine #957.
- Allow-once across machines is the same single Inbox item, with the grant reaching the host from the client. Who may grant is Personas: anyone who can write to the asking thread can allow a refused persona once #1284.
The definitions are in the #953 docs PR (Crews, Cross-device, Agent personas, register D46 and D1). How the decisions were reached is in the record docs/j5/worklog/2026-11-28-crews-across-machines-session.md, in the same PR. Working notes: artifacts/plans/953-crews-across-machines-design.md.
Build order
- The docs PR, for Jackson's approval.
- Crews across machines, part A+C: remote seats, persona sent with the call, stop/archive, follower and Fleet #1285, part A+C: remote seats, the persona sent with the call, stop and archive, the follower and Fleet, un-pair and expiry, allow-once across machines.
- Crews across machines, part B: playbook steps, replacing a seat, and the roster card for remote seats #1286, part B: playbook steps to remote seats, with the silent fallback removed for all seats,
replacesacross machines, and remote seats on the roster card.
Depends on
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(j5): a persona launched on another machine is sent from the call…
feat(j5): a Captain seats a Crew member on another J5 machine
feat(j5): a persona launched on another machine is sent from the call…
feat(j5): a Captain seats a Crew member on another J5 machine