diff --git a/skills/autonomous-ai-agents/hermes-a2a/SKILL.md b/skills/autonomous-ai-agents/hermes-a2a/SKILL.md index 4b4d951..2455cc2 100644 --- a/skills/autonomous-ai-agents/hermes-a2a/SKILL.md +++ b/skills/autonomous-ai-agents/hermes-a2a/SKILL.md @@ -109,14 +109,27 @@ Relay work (user's task → peer executes → peer reports back) is the common p guess and do not act silently — send the exact question (what it wants to do and why consent is needed) back to the ORIGIN agent and wait for the answer. The origin agent asks the user in the user's own chat and feeds the answer - back. This is this user's explicit instruction for cross-agent work. + back. This is this user's explicit instruction for cross-agent work. Same + discipline for relayed commands containing an unfilled placeholder (e.g. + `--user USERNAME`): never resolve or guess the value before relaying — + forward the command as-is, instruct the peer to return the verbatim error + (unknown user) rather than substituting a value, and ask the user whether + the placeholder was literal or meant to be filled. - **Probe what the peer's session can actually do before promising the action.** A peer's A2A toolset is per-instance and can be far narrower than the Agent Card's advertised skills (a card may list kanban/browser/etc. while the A2A session has none of them — "dauerhaft deaktiviert" by the operator). One short call asking "list exactly the tools bound to this session" is decisive and cheap. Distinguish its two outcomes: `timed out` = peer is busy/working (the existing follow-up-once rule applies), vs. a normal reply saying "this session has no X tool" = a hard boundary. When the peer states an explicit policy boundary (no card-move, no shell, identity-gated privilege), respect it and find the operator's canonical path (bot menu, host CLI over SSH) — do NOT route around it with other peer tools (e.g. the peer's cronjob tooling), even if technically reachable: that policy is the peer's security model, not a tech bug. - **Set the token BEFORE widening the bind.** `A2A_HOST=0.0.0.0` only widens the bind when `A2A_BEARER_TOKEN` is set; without the token the server stays on 127.0.0.1 and remote peers get connection-refused. - **Peers must be running too.** A node showing in `tailscale status --peers` is NOT the same as its A2A server being up. Verify each peer's card first: - `curl -m 5 http://.:9900/.well-known/agent-card.json`. + `curl -m 5 http://.:9900/.well-known/agent-card.json`. A third + failure class: `a2a_call` dying with `urlopen error` / + `No address associated with hostname` — the peer's tailnet-split-DNS name + (e.g. `*.ts.robbis.space`) does not resolve at all from the local device, + distinct from a connection refused: the peer host is down or this device is + off the tailnet / its split DNS. Diagnose by resolving the peer name next to + a name that must resolve (e.g. the public VPN domain) from the shell before + retrying; if only the tailnet-scope name fails, stop retrying — the host or + tailnet must be up first, and the user knows which. - **Token must match on BOTH sides.** A mismatch does NOT always return HTTP 401 — verified in-session: the peer answered `HTTP 200` with a JSON-RPC error body `{"code": -32050, "message": "unauthorized"}`. Treat `-32050 unauthorized` as the