code wiki / (root) / nx_fleet_doctor.nx

nx_fleet_doctor.nx

buildroot/runtime/nx_fleet_doctor.nx

3717 B67 linesdepth 10pulls 22 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_fleet_doctor.nx -- the self-healing fleet capstone. Extends the local auto-fix doctor with the REMOTE arm the operator originally asked for: "autofix these issues if they are local, or report and the network fix them automatically if they are remote." The remote fix is now REAL -- driven over our OWN sovereign SSH (passwordless, Ed25519): the doctor reaches a remote node, checks a service, and auto-heals it if down. Composes nx_ssh_lib (sovereign SSH) + the doctor's probe/classify pattern. Bits-up: our own crypto + raw syscalls, no openssh. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_connect.nx nx_ssh_lib.nx nx_fleet_doctor.nx

imports: nx_syscalls.nxnx_connect.nxnx_ssh_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ssh_puts sys_write fd_tcp_ok sys_socket sys_mmap sys_setsockopt ssh_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_mmap ↻ ssh_load_identity sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ ssh_put_bytes sys_openat_wr sys_write ↻ sys_close ↻ ed25519_pub_from_priv sys_mmap ↻ ed25519_sha512 sys_mmap ↻ sha512_init sha512_update sha512_blk_set_byte blk_get_i64 blk_set_i64 sha512_compress sys_mmap ↻ blk_get_i64 ↻ sha512_gamma0

structs

none

consts

16const K_MAGIC_8787: i64 = 8787

functions

18func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } return n }
called by 1: main
21func fd_tcp_ok(ip: i64, port: i64) -> i64
35func main() -> i64