Skip to main content

Module http_health

Module http_health 

Source
Expand description

Health, diagnostics, LAN instances, discovery, WPS publish. Split out of server/mod.rs unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md ยง4.1).

Functionsยง

handle_diag_sagas ๐Ÿ”’
Saga durability PR 2 โ€” operator visibility into the durable saga log. Returns the most-recent 50 saga lifecycle rows + an in-flight count derived from unresolved_sagas.
handle_discovery ๐Ÿ”’
GET /agentmux/discovery โ€” a unified, agent-facing view of what exists and what is reachable across the muxbus delivery tiers, so an agent can resolve a target before sending. Aggregates:
handle_lan_instances ๐Ÿ”’
handle_wps_publish ๐Ÿ”’
Auth-gated MPS publish endpoint (SPEC_STREAMING_BASH_RUNNER_2026_05_11.md ยง3.2). agentmux-bashwrap POSTs here while running a Bash command; we forward to the in-process MPS broker so subscribed frontends receive the event. A client event declared in mps_events (client_events!) must carry its payload type, or it is refused with 400; any other event mps_events declares is srvโ€™s alone, and refused with 400.
health_handler ๐Ÿ”’
stub_501 ๐Ÿ”’