code wiki / (root) / nx_state_spool_gate.nx

nx_state_spool_gate.nx

buildroot/runtime/nx_state_spool_gate.nx

6304 B131 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic state
docsdependenciesstructsconstsfunctions

about

nx_state_spool_gate.nx -- liar-killed GATE for the store-and-forward state spool (CR-R1a). Proves NAS-first/local-fallback semantics OFFLINE via the deterministic fixture transport (nx_spool_txfix: argv[1] contains "ok" -> delivered, else fail): spooled lines persist; a working transport drains them; a FAILING transport keeps them (offline = NOTHING LOST -- the negative control); partial failure keeps exactly the failed lines in order without blocking later lines; a MISSING transport binary keeps everything (fail-safe, never fabricates delivery); empty spool is a no-op. usage: nx_state_spool_gate [txfix_elf] license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_state_spool_core.nx nx_itoa_lib.nx nx_state_spool_gate.nx

imports: nx_syscalls.nxnx_state_spool_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_openat_rd sys_close t_puts sys_write 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 ↻ sys_openat_wr ssp_spool ssp_lock sys_openat_wr ↻ sys_flock sys_close ↻ sys_openat_append ssp_unlock sys_flock ↻ sys_close ↻ ccz_slen sys_write ↻ sys_close ↻ t_check t_puts ↻ t_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num

structs

none

consts

none

functions

13func t_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: t_checkmain calls 1: sys_write
18func t_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 2: t_checkmain calls 1: nxi_out
20func t_check(name: *u8, got: i64, want: i64, passp: *i64) -> i64
called by 1: main calls 2: t_putst_putn
32func t_count(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapccz_readccz_slen
48func main(argc: i64, argv: *i64) -> i64