Skip to main content

Module agents_hosts

Module agents_hosts 

Source
Expand description

Agents list and Agents status across machines (docs/specs/SPEC_MUXAPI_AGENT_LIVE_FACTS_2026_11_20.md ยง6): host names one LAN peer, or all for this machine and every pinned peer. Each peer is asked agents.status at once with a short wait; a peer that does not answer, or is too old to know the op, is listed by what the LAN poll already says of it (facts: "liveness_only") and named in the hosts block. Nothing is guessed: a missing field is absent.

Structsยง

PeerReply ๐Ÿ”’
What a peer said to agents.status, or why it did not.
Tally ๐Ÿ”’
What Agents status adds up over the machines.

Constantsยง

PEER_WAIT ๐Ÿ”’
How long a peer has to answer before it is listed as unreachable.

Functionsยง

across ๐Ÿ”’
Agents list or Agents status with host: one peer, or all.
add_counts ๐Ÿ”’
ask ๐Ÿ”’
host_entry ๐Ÿ”’
One entry of the hosts block.
line_with_host ๐Ÿ”’
A status line with its machine as the second column: name | host | state ....
liveness_rows ๐Ÿ”’
A peerโ€™s agents as the LAN poll lists them: name, state, provider and kind, and nothing else.
merge_list ๐Ÿ”’
Agents list across machines: every machineโ€™s rows, each saying which machine it came from, and the hosts block.
merge_status ๐Ÿ”’
Agents status across machines: the lines with their machine, the counts added up (and by machine), the groups merged.
peers_of ๐Ÿ”’
The peers host: all asks, from the local answerโ€™s peers: one per instance, with what the LAN poll says of each.
reply_of ๐Ÿ”’
How a peerโ€™s answer to the op reads: its facts, or the state it is in and why.
tagged ๐Ÿ”’
target_of ๐Ÿ”’
The name a peer is asked by: name, or name/channel[/install] so two instances of one machine are told apart.
this_host_entry ๐Ÿ”’
This machineโ€™s own hosts entry.