Skip to main content

Module quiet_remote

Module quiet_remote 

Source
Expand description

The quiet note sent to a lead on another machine, and what the lead’s machine accepts of it. A quiet agent whose lead is on another machine: the note that machine’s AgentMux sends over the LAN, and what the lead’s machine accepts of it (docs/specs/SPEC_LEADER_TOLD_WHEN_AN_AGENT_GOES_QUIET_2026_11_21.md section 19).

The sending side builds a [Note] of closed fields and queues it ([queue]); srv sends it as a jekt signed by the machine’s own sender key. The receiving side checks who sent it (in srv), parses it strictly ([parse]), limits how many it shows ([Limiter]) and writes the lead’s copy itself ([render]): nothing the sender wrote reaches the lead except the closed fields, cleaned again here.

Structs§

Limiter
How many quiet notes each lead has had from each sending machine in the last hour.
Note
The whole of a quiet note. A field that is not here is not sent, and a text with any other field is not a note.
Outgoing
A note waiting to be sent to the lead lead (Name@machine).

Enums§

Admit
What the limiter says of one more note.

Constants§

PREFIX
What a quiet note’s text starts with. The text after it is one JSON object of exactly the fields of Note.
SHOWN_PER_HOUR
A lead is shown this many quiet notes an hour from one machine; the rest are folded into one line.

Functions§

drain
Everything waiting, oldest first.
first_drop
True the first time it is asked for key: a drop is logged once, not at every quiet.
is_quiet_note
Whether text claims to be a quiet note.
lead_parts
Name@machine as (Name, machine).
parse
The note in text, or None when it is not exactly one: another field, a state that is not idle or running, no agent name. The fields are cleaned again, whatever the sender did.
queue
Queue note for the lead lead. A later note about the same agent for the same lead replaces the one waiting.
render
What the lead reads for note, from sender (the machine’s sender name, as proven here) at ts_secs: a block with its own marker, the trust line this machine computed and the words this machine wrote. It is not an [AgentMux] note: those are this machine’s own.
render_folded
The one line that stands for the notes past the limit.