Skip to main content

Module quiet_remote

Module quiet_remote 

Source
Expand description

The quiet note between machines, the srv half (docs/specs/SPEC_LEADER_TOLD_WHEN_AN_AGENT_GOES_QUIET_2026_11_21.md section 19; the closed note itself is backend::quiet_remote).

Sending. The watch queues a note for a lead whose seat names another machine (Name@machine). Every few seconds this sends what is queued as a jekt signed by this machineโ€™s own sender key, the one a Swarm broadcast uses, to the one LAN peer that lists the lead. A lead whose machine is not exactly one listed peer, or whose key this machine has not pinned, is not sent to; that is logged once. A peer that does not answer loses the note: it is about a moment.

Receiving. A jekt from another machineโ€™s sender key whose text starts like a quiet note is never delivered as a jekt. It is accepted only if the signature verified, the install that vouches for the sender key is one this machine trusts, the sender is a LAN peer that lists the named worker, and the lead is a running agent here. What the lead then reads is written here from the closed fields (quiet_remote::render), held for its next turn like every other quiet note, and limited to four an hour per lead and sending machine.

Enumsยง

Verdict ๐Ÿ”’
What the receiving side decided about a text that claims to be a quiet note.

Constantsยง

SEND_EVERY ๐Ÿ”’

Staticsยง

LIMITER ๐Ÿ”’

Functionsยง

answer ๐Ÿ”’
finish ๐Ÿ”’
Settles the claim on the noteโ€™s message id: a note that was taken is counted, so a copy of it is not proven again; one that was refused releases it, as any refused jekt does. Returns answer unchanged.
install ๐Ÿ”’
Starts the sender: what the watch queued is sent every few seconds.
install_approved ๐Ÿ”’
Whether the install behind senderโ€™s pinned key is one this machine trusts: its certificate verifies for exactly that key, and the install is approved (not new, not revoked).
intercept ๐Ÿ”’
A jekt that claims to be a quiet note: answered here (Some), never delivered as a jekt. None for every other jekt.
intercept_among ๐Ÿ”’
intercept with the LAN peers named, so the whole path can be run with the peers a test lists.
is_machine_sender ๐Ÿ”’
Whether sender is a machineโ€™s own sender name (swarm-<host>-<hash>).
judge ๐Ÿ”’
The decision, from what was proven: verified is the signature checkโ€™s outcome, install_ok whether the install that vouches for the sender key is one this machine trusts. Pure, so each refusal has a test.
peer_for ๐Ÿ”’
The one LAN peer that is machine and lists lead, or why none: a machine that is not a peer, or lists no such agent, or is two peers of that name (the seat then has to say which).
place ๐Ÿ”’
Puts the note, or the line that stands for the ones past the limit, where the lead reads it. A note joins a running turn or is held for the next, and never starts one. The folded line is only ever held, under one key: written into a running turn it could not be replaced by the next, and each note past the limit would be a message of its own.
send_one ๐Ÿ”’