Skip to content

A2A: external send path for machine senders (launchd watchdog delivery) #74

Closed

Description

@Jacksondr5

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) exposes start / 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_message exists 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):

  1. Authenticated HTTP send endpoint driving the same command path as MCP send_message — accepting to (participant/thread), message, optional expect_reply/intent, and client_request_id for idempotent retries (the MCP surface already has this).
  2. 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/send commits a durable message identically to the MCP tool.
  • Retry with the same client_request_id does not duplicate.
  • Message renders in the recipient thread attributed to the machine participant.

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