code wiki / (root) / nx_reach_probe_cli.nx

nx_reach_probe_cli.nx

buildroot/runtime/nx_reach_probe_cli.nx

6755 B172 linesdepth 22pulls 131 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_reach_probe_cli.nx -- Nishi-native one-shot reach-probe CLI. Compiles to a standalone ELF. Replaces nxc2/bench/nishifamily_external_reach_probe.sh (shell + curl scaffolding). When this binary ships, the shell script reaches SUNSET_READY status per feedback-no-temporary-third-party-scaffolding-when-substrate-arc-exists. Usage (post-deploy): nx_reach_probe_cli https://nishifamily.com/video/ Emits one JSONL line per probe to stdout. Exit code reflects verdict class for CI / cron integration. Composes: nx_reach_probe_now (graduated 2026-05-20) nx_external_reach_probe (sealed NX_REACH_* verdict enum) Per cardinal feedback-substrate-does-heavy-lifting-user-is-partner-not-gate: substrate runs the probe natively; user only invokes the binary + reads JSONL. No curl, no awk, no SSH wrapper, no remote percentile parsing. expect_exit: 0 (default no-arg path; with --arg the exit reflects probe verdict so cron can detect FAIL_TCP_TIMEOUT etc.) license_tier: PUBLIC_NISHI_SUBSTRATE

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_external_reach_probe.nx nx_reach_probe_cli.nx

imports: nx_syscalls.nxnx_external_reach_probe.nx

imported by: nobody (leaf or entry point)

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

main main_argc_argv sys_mmap _put_str sys_write nx_reach_probe_now sys_mmap ↻ trust_store_alloc sys_mmap ↻ nx_clock_monotonic_ns sys_mmap ↻ sys_clock_gettime_mono nx_https_get sys_now_ms sys_mmap ↻ sys_clock_gettime_mono ↻ nx_url_new sys_mmap ↻ nx_https_url_for_fetch nx_url_parse strlen _scheme_is_https nx_https_url_connect sys_socket sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap sys_mmap ↻ nx_https_build_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_setsockopt ↻ nx_dns_resolve_default nx_dns_resolve_with_failov nx_tls13_client_session_ru

structs

none

consts

none

functions

31func _put_str(s: *u8) -> i64
called by 1: main_argc_argv calls 1: sys_write
39func _put_i64(buf: *u8, off: i64, v: i64) -> i64
called by 1: main_argc_argv calls 1: sys_mmap
68func main_argc_argv(argc: i64, argv: *u8) -> i64
170func main() -> i64
calls 1: main_argc_argv