code wiki / (root) / nx_writer_probe.nx

nx_writer_probe.nx

buildroot/runtime/nx_writer_probe.nx

2360 B35 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind probetopic writer
docsdependenciesstructsconstsfunctions

about

nx_writer_probe.nx -- sovereign one-shot probe of the LIVE nx_writer_serve (127.0.0.1:8098). Composes nx_http_client (the same POST primitive as nx_writehub_seat) to prove the live API round-trip over the Nishi ecosystem, no curl/shell. Probes BOTH endpoints (/score prose-scoring + /factcheck grounded fact-check) and prints the server's real responses. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_http_client.nx nx_connect.nx nx_gate.nx nx_writer_probe.nx

imports: nx_http_client.nxnx_connect.nxnx_gate.nx

imported by: nobody (leaf or entry point)

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

main wp_probe nx_http_client_sockaddr_ip sys_socket gw sys_write nx_connect_bounded nx_fcntl sys_connect sys_mmap sys_poll nx_http_client_build_reque nx_dec_emit_u63 wp_strlen wp_drain sys_read

structs

none

consts

8const K_MAGIC_8098: i64 = 8098
9const K_MAGIC_65536: i64 = 65536
10const K_MAGIC_2097152: i64 = 2097152

functions

11func wp_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: wp_probe
12func wp_drain(fd: i64, buf: *u8, cap: i64) -> i64 { var off: i64=0; var go: i64=1; while go==1 { if off>=cap { go=0 } else { let r: i64=sys_read(fd, ((buf as i64)+off) as *u8, cap-off); if r<=0 { go=0 } else { off=off+r } } } return off }
called by 1: wp_probe calls 1: sys_read
13func wp_probe(path: *u8, pathlen: i64, body: *u8, label: *u8) -> i64
31func main() -> i64
calls 1: wp_probe