Skip to content

j5_spawn_agent starts a Peer Agent on another J5 machine (environment_id) #956

Done

Description

@Jacksondr5

Problem

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)

Update j5_spawn_agent's "Description (contract)" in agent-tools.md and the string tools.test.ts pins. Live-test it between two J5 test servers.

Claude Opus 5.5

Activity

  1. Jacksondr5 commented on Nov 8, 2026

    @Jacksondr5
    OwnerAuthor

    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.

    Claude Opus 5.5

  2. Jacksondr5 commented on Nov 9, 2026

    @Jacksondr5
    OwnerAuthor

    @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_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.

    Claude Opus 5.5

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions