Skip to main content

Module muxbus

Module muxbus 

Source

Modules§

agent_credentials
Per-agent M2M Cognito credential fetch/cache — the client side of per-agent credential binding (the relay side is designed in the private cloud repo).
cloud_installs
The account’s other installs, read back from the relay for the Swarm’s cloud tier (docs/specs/SPEC_SWARM_CLOUD_TIER_2026_11_14.md): the presence records wan_presence publishes, listed by the relay for the signed-in account.
cloud_subscriber
Cloud push subscription — replaces per-agent polling with a single sidecar-level WebSocket to muxbus-ws.agentmux.ai.
delivery_status
Whether cloud (MuxBus) messages are reaching this channel’s agents, made visible: a sign-in that stops working, or a relay that can’t be reached, used to leave nothing but a log line while agents silently stopped getting review, CI and cross-machine messages.
discovery
AgentMux Cloud settings discovery (docs/specs/SPEC_CLOUD_SETTINGS_DISCOVERY_2026_09_27.md).
github_broker
The desktop side of AgentMux Cloud’s GitHub broker (/github/v1/*).
host_adopt
A refresh that moves the stored sign-in to the host AgentMux Cloud’s discovery document names.
install_presence
An install’s presence record: one AgentMux install (a channel on a machine) saying it is up, on which platform, and which agents it runs, so the account’s relay can list it to a signed-in phone that is not on the same LAN. Wire contract: agentmux-mobile’s SPEC_FLEET_HOST_TAGS_AND_CLOUD_HOSTS_2026_10_06 §6.1; version 2 adds each agent’s state (agentmux-mobile’s SPEC_AGENT_STATUS_AND_LIVE_PANE_FEED_2026_10_07 §13.1). The desktop publishes v2; v1 is still built and checked, for the relay’s sake. Version 3 is v2 with an optional top-level gone. The desktop sends it only as the goodbye when it quits, signs out or stops publishing: gone: true and no agent states, which the relay keeps as “offline since” for a short while instead of a live entry. Version 4 is v3 with each agent’s optional line, its Swarm summary line (agentmux’s SPEC_SWARM_OTHER_HOSTS_AND_CHANNELS_2026_10_02 §3.4 Phase 4), signed as a fourth agent field. The desktop publishes v4 when it has lines to share; a goodbye stays v3.
pkce
PKCE Authorization Code flow for Cognito desktop login.
relay
Outbound cloud relay — jekt delivery tier 4.
relay_watch
A message handed to the cloud relay is queued, not delivered: the relay keeps it for a short window and drops it if nobody picks it up, and the sender never heard. This tells the sender, with one AgentMux system note for its next turn, when a message it queued is still unconfirmed after that window, naming the target and the message id, so it can ask again or reach the target another way instead of waiting on a message that went nowhere.
server_hooks
What the relay’s delivery path asks of the server layer.
wan_key_revocation
A signed notice that one agent’s WAN key was retired.
wan_lease
One live instance per agent across the WAN — the client side (docs/specs/SPEC_AGENT_SINGLE_LIVE_INSTANCE_2026_09_24.md Phase 5, §4.5).
wan_presence
Publish this install’s presence record to the account’s relay, so a signed-in phone off the LAN can list it (agentmux-mobile’s SPEC_FLEET_HOST_TAGS_AND_CLOUD_HOSTS_2026_10_06 §6.3).
wan_publish
Publish each agent’s WAN key to the account’s cloud key directory, certified by this install’s instance key (SPEC_WAN_JEKT_VERIFICATION_2026_09_24.md §2.2, step D1b).
wan_verify
Verify a same-account agent’s WAN signature on a cloud-delivered jekt (SPEC_WAN_JEKT_VERIFICATION_2026_09_24.md §2.3–2.6, step D2).
ws_connect
Opens a WebSocket like connect_async_tls_with_config, but through the HTTP proxy named by HTTPS_PROXY (HTTP_PROXY for ws://, then ALL_PROXY) when there is one, honouring NO_PROXY. The proxy only carries bytes: we send CONNECT host:port, and the TLS handshake then runs over the tunnel against the real host, so the server name and the certificate checks are the host’s, never the proxy’s. srv’s HTTP clients read the same variables (reqwest); this makes the live MuxBus connection behave the same, and lets the fault proxy of scripts/net-fault take it down (SPEC_OFFLINE_RESILIENCE_2026_10_20.md §7.1).

Constants§

CREDENTIAL_ID
Identifier MuxBus’s single global credential set is registered under with both the broker scheduler (crate::broker) and the OS keychain (backend::storage::muxbus’s secret_store key) — deliberately the same string in both places so the two are trivially correlated in logs.

Functions§

stale_sign_in
[stale_sign_in_reason] against the global broker and the cloud’s published settings (cached, see discovery::cloud_settings).