Skip to main content

Module swarm_cloud

Module swarm_cloud 

Source
Expand description

The Swarm’s cloud tier: the account’s other installs, as hosts of tier cloud (docs/specs/SPEC_SWARM_CLOUD_TIER_2026_11_14.md). One record is one install, so one host with one channel.

Display only. A cloud channel has no route, so a broadcast and a stop skip it, and its rows carry what a signed presence record carries (a state, a line, where it runs) and no provider, seat or account. The answer holds no address, key, instance id or signature.

Constants§

HIDE_AFTER_MS
Past this a record is not shown at all.
STALE_AFTER_MS
A record not heard from for this long is shown as stale: three missed beats of the one-minute publisher.

Functions§

add_cloud
Adds the cloud hosts to snapshot, and says how the read went in its cloud field. view is None where this build has no sign-in to read with.
agent_state
The state (working, waiting, idle, stopped, error) the list gives the agent called name, whatever the case, from the newest record that is shown (see [shown]) and has the agent. None when no such record has it, or that record says no state (one from before states).
cloud_hosts
The hosts for installs, leaving out what is listed elsewhere: this install’s own record, another channel of this machine (channels_here), and a LAN peer that is the same machine (see [on_the_lan]).
newer_hosts
The computers whose presence records are of a format this build cannot read, each as one host with no agents that says what it needs: shown, not missing. Left out when it is this install, another channel of this machine, a LAN peer (which lists it in full), or past HIDE_AFTER_MS. Nothing about it is verified, so nothing but its name, channel and platform is shown.
own_wan_id
This install’s own WAN instance id (public: a hash of its public key), when it has a WAN identity.