Repository navigation
Description
Why
J5 built its own agent tools when upstream's were more primitive, and hides upstream's equivalents (register D2 in docs/j5/product/upstream.md). D2 already says this should be revisited: "Upstream's tools keep evolving, so J5 should periodically re-evaluate them and consider merging its tools with upstream's rather than carrying parallel versions." Nobody has done that evaluation, and no issue tracked it.
Upstream has moved a long way since (pin 29980a3140, 2026-10-08): thread tools reach any thread in the environment under a declared access model (McpToolAccess), a real Stop that holds the queue and cascades to delegated work, a launch tool with workspace strategies and a scratch project, sender identity on agent sends, t3-thread:// links, PR watches, and sign-in for outside agents. Some of J5's tools now overlap upstream's closely. Raised by Jackson on 2026-10-10 while deciding #508: "sending messages seems to have a bit of overlap."
The overlap, as a starting point
This table is from memory of the #500 review, not a row-by-row verification. Checking each row against the code is the first step of the evaluation.
| J5 tool | Upstream's nearest | What J5 adds on top | Upstream tool's status in J5 |
|---|---|---|---|
send_message |
t3_thread_send |
The ledger: participants, asks and replies (Exchanges), obligations, silence notices, delivery receipts and alarms, the envelope, cards in the timeline, queue behind a running turn (D4), machine and peer-server senders | Hidden |
spawn_agent |
t3_thread_launch, create_threads |
Placement and provenance (who spawned whom), the first-turn brief contract, J5's workspace choice | Hidden |
stop_agent, stop_crew |
t3_thread_interrupt, upstream's thread.stop, task_cancel |
Addressing by participant, Crew-wide stop. Since #500 they send upstream's Stop underneath | t3_thread_interrupt hidden; task_cancel admitted |
list_participants |
t3_thread_list, t3_thread_search, t3_project_list |
Participant ids, what each accepts, provenance, peer-server rows, people and machines | Admitted beside it |
archive_crew |
t3_thread_organize |
Retires a Crew as a unit | Admitted, re-declared with the Crew-seat guard |
t3_thread_fork, t3_thread_organize, t3_thread_send_attachments (re-declared) |
The same tools | Placement errors, the seat guard, delivery through the ledger | Upstream's names, J5's descriptions or handlers |
delegate_task (re-declared) |
delegate_task |
Running a saved persona as a child | Admitted; whether it stays is #336 |
| (withdrawn) | t3_thread_wait |
Nothing: J5 removed it because a turn that blocks cannot receive platform notices | Absent |
propose_crew, request_crew_member, clear_own_ask, list_personas, the playbook tools |
None | J5-only features | n/a |
| Artifact tools | To be confirmed: upstream's toolkit list contains the same names | Project-level storage outside the repository | To be confirmed in #508 |
What to decide, per tool
- What does J5's tool do that upstream's does not, today? Verify against the code at the current pin, not against what was true when J5's tool was written.
- Does the difference still matter to J5? A difference that exists only because upstream lacked something it now has is not a reason to keep a parallel tool.
- Which outcome:
- Keep as a separate tool, with the reason written into D2.
- Converge: J5's behavior becomes a layer on upstream's tool (for example the ledger observing upstream's send rather than replacing it), so agents see one tool.
- Retire J5's tool and admit upstream's.
- Give back: offer the J5 behavior upstream (Upstream give-back backlog (hold until V2 merges upstream) #276) so the parallel version can go later.
- What it costs each way: upstream edits to carry, what agents have to learn, what breaks in stored history, what the person sees in the timeline and Inbox.
The send pair is the one to start with. It carries the most J5 machinery, and it is where the question "could the ledger sit under upstream's send?" has the biggest payoff or the clearest no.
Related
- Register D1 (three shapes of help), D2 (the hidden and admitted tool lists), D4 (queue behind a running turn), and
docs/j5/product/upstream-convergence.md. - Decide whether J5 agents keep delegate_task alongside spawn_agent, native Subagents and propose_crew #336: whether
delegate_taskstays besidespawn_agent, native Subagents andpropose_crew. - Outside agents (MCP OAuth clients) need a ledger identity to message and start threads #498: a ledger identity for outside agents, who today can use upstream's tools but not J5's.
- Move J5's client-facing actions onto WebSocket methods #506: moving J5's client-facing actions onto WebSocket methods, the same question on the client side.
- Prefix J5's MCP tools with j5_ so they cannot be mistaken for a harness's native tools #508: prefixing J5's tools with
j5_. A tool this evaluation retires or converges does not need its new name to last, but the rename is cheap and fixes a live problem now. - feat(j5): reconcile agent queue mutations with A2A delivery and Exchanges #136: reconciling agent queue mutations with A2A delivery and Exchanges.
Activity
Jacksondr5 commentedon Oct 12, 2026
Decisions (Jackson, 2026-10-11)
Worked through row by row with Jackson. Each row was checked against the code at pin
29980a3140. Nothing is built yet; the build follows this list.What the check found
j5_send_messagedelivers through upstream'ssendToThread,j5_stop_agentand Crew stop dispatch upstream'sthread.stop, and a spawn's new worktree is prepared by upstream's ThreadLaunch. What stays parallel is the tool the agent sees.t3_thread_interruptis weaker than J5's stop: it interrupts the running turn and the next queued turn starts. Upstream has no agent tool that sends its full Stop to an arbitrary thread.Send: keep
j5_send_messagemode:queue(the default),steerorrestart, with upstream's meanings. Upstream'sautois not brought in, because it steers whenever it can and brings back the harm D4 records.steerorrestartto an idle agent starts a normal turn.steerandrestartget upstream's permission rule: the target can't have broader permissions than the sender. A plain queued send has no check.attachmentstoj5_send_message, and stop registering J5's version oft3_thread_send_attachments. Attachments to an agent on a peer server stay refused.queueas the default on or after 2027-01-11: Revisit queue as the default landing for agent messages (due 2027-01-11) #538.Stop: keep
j5_stop_agentandj5_stop_crewt3_thread_interruptstays hidden.j5_stop_agent: it reaches any agent on this server the caller can address.j5_stop_agent. A Captain stopping its own Crew is exempt.Spawn: keep
j5_spawn_agentt3_thread_launchandcreate_threadsstay hidden. Crews and repeated spawns cover bulk creation. Brought in from upstream's launch:To check while building: a retried spawn from a caller with narrower permissions must not land on an agent first created with broader ones (the hole found in review of pingdotgg#16654), and whether J5's retry keys survive a server restart (pingdotgg#16184).
List: keep
j5_list_participants, and bound itIt returned every participant on the server in one answer, 152 unarchived on the live install. It now follows upstream's listing pattern:
project_idis omitted.cursorandlimit(default 50, maximum 100), withnext_cursorandtotalin the result.name_contains, and a three-waysettled.include_archivedstays.serverfield.t3_thread_list,t3_thread_searchandt3_project_liststay admitted beside it. They answer what threads exist and their state; this answers who can be addressed.Tools J5 registers under upstream's names
The rule: a tool gets a J5 name when J5 changes what it takes, returns or means. It keeps upstream's name when J5 only adds a refusal or an error message.
t3_thread_fork,t3_thread_organize,delegate_taskandorchestrator_capabilitieskeep their names.j5_archive_crewhas no upstream counterpart and stays.delegate_taskstays at all is Decide whether J5 agents keep delegate_task alongside spawn_agent, native Subagents and propose_crew #336.Tools J5 hid without replacing
t3_project_create,t3_project_updateandt3_environment_preferences_updateunchanged, and restore upstream's description oft3_project_clone.t3_project_deletestays hidden until Decide what deleting a project does to J5's state, then admit t3_project_delete #552 settles what deleting a project does to J5's state.t3_thread_waitstays hidden: a turn that blocks while waiting can't receive the message the other agent's finish produces.Build order
This issue's changes land first, and #498 builds on top of them.
Docs to rewrite with the build
Register D2 and D4 in
docs/j5/product/upstream.md, the messaging and launch entries ofdocs/j5/product/upstream-convergence.md, and FORK.md's tool cases.Jacksondr5 commentedon Oct 12, 2026
Build status (2026-10-12)
Everything in the decision record above is built, in a stack of three PRs. None is merged; Jackson is holding merges until his live-testing work lands.
j5_list_participants;j5_stop_agent's reach and permission rule;modeandattachmentsonj5_send_message; the three admitted upstream toolsj5_spawn_agent: another project, no project, the permission choice, attachments, therootworkspaceOne ruling since the record. While building, I found two earlier rulings that say permissions do not gate stop, steer and restart between Peer Agents (Bryant, 2026-09-14; Jackson, 2026-09-16). Jackson confirmed on 2026-10-12 that the 2026-10-11 decision stands: J5 follows upstream's rule, because he does not want a divergence on permissions in general. The tool definition records it as a reversal of the 2026-09-14 rule for
j5_stop_agent.Still to do before merge: the live test of the stack, including two peered servers, and a screenshot of an agent spawned into another project at the sidebar's top level (#557).
Follow-ups filed: #538 (revisit
queueas the default landing, due 2027-01-11), #552 (what deleting a project does to J5's state, then admitt3_project_delete).#498 (outside agents) builds on #557 as #560.
5 remaining items
feat(j5): J5's agent tools follow the #519 decisions for listing, sto…
feat(j5): j5_spawn_agent takes what upstream's launch offers: another…
feat(j5): a steer or restart reaches an agent on a peer server
Jacksondr5 commentedon Oct 12, 2026
delegate_task: keep, as it is (Jackson, 2026-10-12)The one row of the table that had been left to #336 without a ruling. Checked against the code at the current head.
What upstream's
delegate_taskcreates. A subagent of the calling thread, not a peer:relationshipToParent: "subagent", and it is recorded as a task under the parent's running turn (dispatchDelegatedTaskRequestinapps/server/src/orchestration-v2/Orchestrator.ts,makeSubagentChildThreadinSubagentProjection.ts).mode: "wait") or the parent is woken when the child ends (mode: "async").Since the early V2 branch it has gained wait-or-async, a wake on completion, a retry key, another provider or model as the target, a permission choice capped at the parent's, and a real stop through
task_cancel. All of that made it a better subagent tool. None of it moves it toward a Peer Agent.So it does not overlap
j5_spawn_agent. The upstream tool that spawns the way J5 does ist3_thread_launch, which stays hidden and whose featuresj5_spawn_agenttook in #557.What J5 adds. The optional
persona, which runs the child as a saved persona, and a description that leads with it and sends ordinary subagent work to the provider's own subagent tool. Withoutpersona, J5's version calls upstream's code unchanged.Ruling. Keep: upstream's tool under upstream's name, with J5's one addition, and nothing to converge. Its overlap is with the provider's native subagents, which is the question #336 holds.
Not verified: whether a person can open a delegated child in the app and type into it.
feat(j5): j5_spawn_agent takes what upstream's launch offers: another…
feat(j5): a steer or restart reaches an agent on a peer server (#563)
docs(j5): drop references to closed upstream-merge follow-ups (#706)