Expand description
The sending half (spec §4.1, §4.8): an agent asks this machine’s srv to run an operation on
another machine. srv builds the envelope, signs it with the agent’s own LAN key (the agent’s
process never holds the signing step, as for a jekt from an agent that signed nothing), sends
it to the peer and returns the peer’s answer. It writes remote.request to this machine’s
audit trail, by agent@machine.
host is a machine’s name as Agents list shows it, or name/channel when a machine runs
several instances. It must be named on every call; a name that fits more than one instance
is an error, never a guess.
Structs§
Constants§
- PEER_
TIMEOUT 🔒 - How long a peer gets to answer. An operation may wait on the peer’s own countdown only by
answering
pending_vetofirst, so this is a request’s round trip, not a human’s time.
Functions§
- call 🔒
- Run
oponhostas the agentslugand return the machine’s answer. A failure to reach or sign is afailedresult, so every caller gets one shape back. The srv-side door for operations that other features make: the fleet Global Memory sync (fleet_sync) is the first. - call_as 🔒
- explain_
not_ 🔒found - A refusal because the agent isn’t on that machine, with the machine said in words: the Store copy of a host that runs no agents answers like a host that has none of this one.
- explain_
too_ 🔒old - A refusal because the machine’s AgentMux has no remote operations, or doesn’t know this one, with the version it runs (what it advertised, when that reads as a version) and the version of this machine to update it to. In this machine’s words: nothing of the peer’s text goes into the sentence.
- fresh_
nonce 🔒 - handle_
agent_ 🔒remote_ op POST /api/v1/agent/remote/op: backs thehostargument of the MuxAPI tools. The agent is the one its token proves; the body’s word is only checked against it.- host_
for 🔒 - The host name that
resolve_peertakes to findpeeramongalland no other:name/channel(justnamefor a peer that does not advertise a channel), with/installadded when another instance of the same name runs the same channel, which is all that tells two installs of one channel apart. - post 🔒
- resolve_
peer 🔒 - The one LAN instance
hostnames, or why not.machine,machine/channelormachine/channel/install(windows-store, or “Microsoft Store”): two installs of one channel on a host differ only by how they are installed.