Skip to main content

Module send

Module send 

Source
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§

RemoteOpRequest 🔒

Constants§

PEER_TIMEOUT 🔒
How long a peer gets to answer. An operation may wait on the peer’s own countdown only by answering pending_veto first, so this is a request’s round trip, not a human’s time.

Functions§

call 🔒
Run op on host as the agent slug and return the machine’s answer. A failure to reach or sign is a failed result, 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 the host argument 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_peer takes to find peer among all and no other: name/channel (just name for a peer that does not advertise a channel), with /install added 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 host names, or why not. machine, machine/channel or machine/channel/install (windows-store, or “Microsoft Store”): two installs of one channel on a host differ only by how they are installed.