Skip to main content

Module op

Module op 

Source
Expand description

A remote operation: a typed request one AgentMux sends another on behalf of one of its agents, which the receiving AgentMux carries out itself (docs/specs/SPEC_AGENTS_OPERATE_OTHER_MACHINES_2026_10_30.md §4.1).

The envelope and its signature live here, beside the jekt signers, so the sending and the receiving srv can’t drift on the signed material. The signature is Ed25519 with the requesting agent’s LAN key, in a domain of its own: a jekt’s signature never verifies as a remote op, and the reverse. It covers every field the receiver acts on, the params included, so a request can’t be re-aimed (another audience), re-attributed (another requester), re-timed or given other parameters.

Structs§

RemoteOp
One request.
RemoteOpResult
The answer to one request.
Requester
Who asks: the agent, and the install it runs in.
SignedRemoteOp
A request and its signature.

Enums§

OpStatus
How a request ended.

Constants§

MAX_NONCE_LEN
MAX_OP_LEN
The longest op name, nonce and reason, and the largest serialized params, a receiver reads.
MAX_PARAMS_BYTES
MAX_REASON_LEN
REMOTE_OP_DOMAIN 🔒
The signature’s domain separator.
REMOTE_OP_MAX_SKEW_SECS
How far from the receiver’s clock a request’s ts may be, in seconds.
REMOTE_OP_VERSION
The envelope version this build sends and accepts.

Functions§

canonical 🔒
params as one string that doesn’t depend on key order or spacing, so the sender and the receiver sign and check the same bytes whatever each side’s JSON library does with an object.
clip_reason
reason cut to what RemoteOp::check_shape takes: at most MAX_REASON_LEN bytes, on a character boundary.
lan_audience
The audience of a request for the LAN peer whose lan_key is lan_key: a label of the key that peer advertises, so a request signed for one machine fails on another. The key is readable by anything on the LAN, so this binds a request to a machine and proves nothing: the signature is what proves the sender.
plain 🔒
A field that sits between separators must not hold one; the two free-text fields are length-prefixed instead.