Skip to main content

Module remote_op

Module remote_op 

Source
Expand description

The host argument of the MuxAPI tools: run an operation on another machine (docs/specs/SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md §4.8).

This machine’s srv builds the request, signs it with the agent’s own key and sends it (POST /api/v1/agent/remote/op); the other machine’s srv carries it out. The host must be named on each call, never inherited from an earlier one, so a local action can’t silently become a remote one, and the answer says which machine gave it.

Functions§

explain_not_done 🔒
What a non-done answer says, for the agent to read; None when the operation ran.
host_arg 🔒
The host argument: a machine’s name as Agents list shows it. Absent or blank means this machine.
pretty 🔒
answer as text, headed by the machine that gave it.
refusal_hint 🔒
What to do about a refusal the transport itself made.
remote_op_call 🔒
Run op with params on host as this agent. The answer is srv’s RemoteOpResult as JSON (status, result, audit_id, refused_reason); an error is only a failure to ask.