code wiki / (root) / nx_opennet_posture_gate.nx

nx_opennet_posture_gate.nx

buildroot/runtime/nx_opennet_posture_gate.nx

3677 B77 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 2 imports · 0 importers

nx_syscalls.nx nx_opennet_posture_core.nx nx_opennet_posture_gate.nx

imports: nx_syscalls.nxnx_opennet_posture_core.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 p_check p_puts sys_write p_putn sys_mmap ↻ ccz_cat_num sys_write ↻ 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

12func 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
14func p_putn(v: i64) -> i64
21func p_check(name: *u8, got: i64, want: i64, passp: *i64) -> i64
called by 1: main calls 2: p_putsp_putn
32func main(argc: i64, argv: *i64) -> i64