code wiki / _hdl_build / nx_golive_gate.nx

nx_golive_gate.nx

buildroot/runtime/_hdl_build/nx_golive_gate.nx

5737 B98 linesdepth 23pulls 140 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_golive_gate.nx -- gate for the one-command go-live DRIVER (nx_golive). OFFLINE-deterministic teeth for the driver's NEW logic: the dollars->cents quote parser, the JSON value readers, and the honest-stop discrimination (a live-captured INSUFFICIENT_FUNDS body must NEVER read as a SUCCESS that would let the pipeline advance to spend). The LIVE walk was proven 2026-07-09 (artifact knowledge/compare/staging/golive_run.out): CHECK -> auto-quote 1108c -> CAP OK -> DRYRUN -> honest STOP (server preflight 400, zero charge). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_golive.nx nx_golive_gate.nx

imports: nx_golive.nx

imported by: nobody (leaf or entry point)

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

main gg_w gl_dollars_to_cents gg_n gg_check gg_w ↻ gg_wrap pk_put gl_json_cents gl_body nx_http_resp_alloc sys_mmap nx_http_response_parse sys_mmap ↻ nx_http_resp_parse_status_ sys_mmap ↻ nx_http_resp_parse_dec nx_http_resp_is_digit nx_http_resp_skip_ows nx_http_resp_find_crlf nx_http_resp_classify_body sys_mmap ↻ nx_http_resp_parse_header_ nx_http_resp_find_byte nx_http_resp_skip_ows ↻ nx_http_resp_find_crlf ↻ nx_http_resp_cieq nx_http_resp_lower nx_http_resp_parse_dec ↻ nx_acme_json_str gl_dollars_to_cents ↻ gl_json_is gl_body ↻ nx_acme_json_str ↻ gl_slen gl_json_copy gl_body ↻ nx_acme_json_str ↻

structs

none

consts

none

functions

9func gg_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: gg_checkmain
10func gg_n(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 1: main
11func gg_check(pass: i64, label: *u8, fails: *i64) -> i64
called by 1: main calls 1: gg_w
17func gg_wrap(body: *u8, out: *u8) -> i64
called by 1: main calls 1: pk_put
23func main() -> i64