You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
j5_spawn_agent starts a Peer Agent on another J5 machine (environment_id) #956
The agent-tool rulings of 2026-11-06/07 (#954, docs/j5/product/features/agent-tools.md, cross-device, docs/j5/worklog/2026-11-07-agent-tool-boundary-session.md) keep Peer Agents on j5_spawn_agent and let it start one on another J5 machine over a link: a new environment_id parameter, needing Full access and peering between the two machines. The workspace stays required. This is a follow-up to the v0.1.7 merge (split agreed with Jackson, 2026-11-07).
Upstream's general forwarding passes a call on unchanged, so the other machine can't tell which agent asked. A Peer Agent started there needs J5's own path, as upstream's remote delegation has its own.
Requirements (from the review of the design)
One retry key, scoped to the real spawner.
Both machines record routes before success is returned.
The caller's own access travels with the spawn, and the target caps at the narrower of that and the link's level.
The spawner is recorded on the target as an outside agent's is: a root, with no archive cascade either way.
J5's PlacementService currently refuses a spawner from another server (apps/server/src/j5/a2a/PlacementService.ts:551, :644).
Bryant's persona stack (#931 → #938) has merged. Three of its rules meet a spawn on another machine. (Path correction too: the spec is docs/j5/product/a2a/agent-tools.md, "On another machine", not features/.)
Who picked sets the limits (feat(j5): who picked a persona sets its limits #931). A person's typed @persona lifts the cap; an agent's pick is capped at the caller's access and checked against Models for custom members. On another machine, the target can't see who picked. So the caller's server sends the pick source (person, agent, or allow-once) with the caller's access, and the target applies feat(j5): who picked a persona sets its limits #931's rules with them, alongside the link-level cap this issue already requires.
Independent reviewers (feat(j5): reviewers prefer a model that didn't write the work #932).author_threads names threads on the caller's machine, and the target can't read their models. The caller's server should resolve the author models and send them with the spawn, so the target's model ordering still works.
Blocked personas and Allow this once (feat(j5): a blocked persona escalates, and the Owner can allow it once #937). Needs a decision from Jackson. A refused launch records an escalation, and the agent asks the person with j5_send_message and the escalation_id. An ask to a person is delivered on the sender's own server (cross-device AC21). So an escalation recorded on the target can't be asked about from the caller's machine. Recommendation: when the target refuses, the caller's server records the escalation itself, so the ask and Allow this once happen there. The retry then carries allow_once to the target, which accepts it because it comes from a link session.
Decided by Jackson, 2026-11-09: blocked personas get no "Allow this once" across machines, for now. When a spawn here (or a delegated task in #957) asks another J5 machine for a persona that is blocked there, the target refuses with a clear message. It says the persona is blocked on that machine, and that it can be unblocked there or run on the caller's own machine. No escalation is recorded on either side, and no allow_once is carried over the link.
Why: an escalation recorded on the target can't be asked about from the caller's machine, because an ask to a person is delivered on the sender's server (cross-device AC21). The alternative was for the caller's server to record the escalation and carry allow_once on the retry. It works, but it's new machinery for a rare case, so it's left for later if the case comes up. The rest of the earlier comment stands: the pick source, the caller's access and the author models still travel with the spawn.
Activity
Jacksondr5 commentedon Nov 8, 2026
Bryant's persona stack (#931 → #938) has merged. Three of its rules meet a spawn on another machine. (Path correction too: the spec is
docs/j5/product/a2a/agent-tools.md, "On another machine", notfeatures/.)@personalifts the cap; an agent's pick is capped at the caller's access and checked against Models for custom members. On another machine, the target can't see who picked. So the caller's server sends the pick source (person,agent, orallow-once) with the caller's access, and the target applies feat(j5): who picked a persona sets its limits #931's rules with them, alongside the link-level cap this issue already requires.author_threadsnames threads on the caller's machine, and the target can't read their models. The caller's server should resolve the author models and send them with the spawn, so the target's model ordering still works.j5_send_messageand theescalation_id. An ask to a person is delivered on the sender's own server (cross-device AC21). So an escalation recorded on the target can't be asked about from the caller's machine. Recommendation: when the target refuses, the caller's server records the escalation itself, so the ask and Allow this once happen there. The retry then carriesallow_onceto the target, which accepts it because it comes from a link session.Claude Opus 5.5
Jacksondr5 commentedon Nov 9, 2026
@bryantderosier, a decision that touches your persona rules (#937):
Decided by Jackson, 2026-11-09: blocked personas get no "Allow this once" across machines, for now. When a spawn here (or a delegated task in #957) asks another J5 machine for a persona that is blocked there, the target refuses with a clear message. It says the persona is blocked on that machine, and that it can be unblocked there or run on the caller's own machine. No escalation is recorded on either side, and no
allow_onceis carried over the link.Why: an escalation recorded on the target can't be asked about from the caller's machine, because an ask to a person is delivered on the sender's server (cross-device AC21). The alternative was for the caller's server to record the escalation and carry
allow_onceon the retry. It works, but it's new machinery for a rare case, so it's left for later if the case comes up. The rest of the earlier comment stands: the pick source, the caller's access and the author models still travel with the spawn.Claude Opus 5.5
fix(j5): review fixes for spawning on another J5 machine (#956)
fix(j5): an unreachable machine's spawn refusal names the key to retr…
fix(j5): a persona the other machine lacks is not called blocked there (
fix(j5): a spawn towards an older J5 machine is refused, naming it (#956
fix(j5): an older-J5 spawn refusal says to retry once the machines re…
Merge #956's branch (with j5/main #1238 and #1244) into j5code/957-re…
fix(j5): a refusal from the other machine names the caller's own retr…
fix(j5): a person's persona on another machine is held to the asking …
feat(j5): j5_spawn_agent starts a Peer Agent on another J5 machine (#956
feat(j5): delegate_task runs a persona on another J5 machine (#957) (#…
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