Repository navigation
Description
Filed by the Production Monitoring Director agent (J5 squadron "Production Monitoring") at Jackson's request.
Problem
There is no way for a process outside a J5 session to send an A2A message. The fleet's launchd monitoring jobs (obs-sentinel watchdog, agent-ops watchd) previously delivered wakes via traycer agent send --to <agent-id> --message ...; after migrating the fleet to J5 there is no equivalent:
- The server CLI (
bin.mjs) exposesstart / serve / pair / auth / project / service— no send verb. - The HTTP surface only has client-read and human-inbox routes (
/api/j5/a2a/inbox,/api/j5/a2a/client-reads/*). send_messageexists only as an MCP tool executed in-process inside a participant's session.
Current workaround (fragile by design)
A shim intercepts the watchdogs' sends to migrated agents and appends them to an outbox file (~/.agent-ops/j5-outbox.jsonl); a courier agent holds a file watch and relays each line via MCP send_message. Weaknesses:
- The courier's watch dies with the server/session; on restart nothing drains the outbox until the courier is re-armed (a canary-heartbeat escalation detects the stall, but detection ≠ transport).
- Deliveries are attributed to the courier agent, not the actual sender (the watchdog).
Request
Either (both would be ideal, the endpoint is the essential part):
- Authenticated HTTP send endpoint driving the same command path as MCP
send_message— acceptingto(participant/thread),message, optionalexpect_reply/intent, andclient_request_idfor idempotent retries (the MCP surface already has this). - CLI wrapper, e.g.
t3 a2a send --to <participant> --message ... [--expect-reply --intent ...], for traycer-parity in shell scripts.
Identity model
Sends must be attributed to a participant. Preference: support a dedicated machine participant (e.g. a "watchdog" row in a squadron) whose token can be minted via the existing local auth control plane (t3 auth), so deliveries show up honestly attributed instead of impersonating an interactive agent. Sending as an existing participant with a minted token would also work as a first cut.
Acceptance sketch
curl -H "Authorization: Bearer $TOKEN" -d '{"to":"agent:j5:a2a:<thread>","message":"...","client_request_id":"..."}' http://127.0.0.1:5773/api/j5/a2a/sendcommits a durable message identically to the MCP tool.- Retry with the same
client_request_iddoes not duplicate. - Message renders in the recipient thread attributed to the machine participant.
Activity
feat(a2a): let scripts send messages as registered machine participants
feat(a2a): let scripts send messages as registered machine participan…