code wiki / (root) / nx_opennet_posture_gate.nx

nx_opennet_posture_gate.nx

buildroot/runtime/nx_opennet_posture_gate.nx

3980 B76 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_opennet_posture_gate.nx -- liar-killed GATE for the open-net posture ruler (S15/O2). Proves the security invariant DISCRIMINATES: unauth-deny surfaces PASS only on 401/403, a DENY surface that serves 200 is caught as a LEAK (not a silent pass -- the load-bearing negative control), public surfaces PASS only on 200, redirects on 301/302, an unreachable/parse-fail is UNREACH (never a fabricated PASS), the HTTP-status parser handles real response lines + rejects non-HTTP, and the sovereign-edge header check detects our stamp + rejects its absence. Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_opennet_posture_core.nx nx_itoa_lib.nx nx_opennet_posture_gate.nx

imports: nx_syscalls.nxnx_opennet_posture_core.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ p_check p_puts sys_write ↻ p_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num nxi_buf sys_write ↻ sys_munmap op_verdict op_http_status sys_mmap ↻ ccz_num_at op_is_sovereign ccz_slen op_expect_id streq_op p_puts ↻ p_putn ↻

structs

none

consts

none

functions

13func p_puts(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: p_checkmain calls 1: sys_write
18func p_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 2: p_checkmain calls 1: nxi_out
20func p_check(name: *u8, got: i64, want: i64, passp: *i64) -> i64
called by 1: main calls 2: p_putsp_putn
31func main(argc: i64, argv: *i64) -> i64