code wiki / (root) / nx_state_spool_gate.nx

nx_state_spool_gate.nx

buildroot/runtime/nx_state_spool_gate.nx

5001 B118 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 2 imports · 0 importers

nx_syscalls.nx nx_state_spool_core.nx nx_state_spool_gate.nx

imports: nx_syscalls.nxnx_state_spool_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 sys_openat_wr sys_close 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 sys_write ↻ t_putn sys_mmap ↻ ccz_cat_num sys_write ↻ t_count sys_mmap ↻ ccz_read sys_openat_rd sys_read sys_close ↻ ccz_slen ↻ ssp_drain ssp_lock ↻ sys_mmap ↻ ccz_read ↻ ssp_unlock ↻ ssp_run_transport sys_fork sys_mmap ↻ sys_execve sys_exit

structs

none

consts

none

functions

12func 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
14func t_putn(v: i64) -> i64
21func t_check(name: *u8, got: i64, want: i64, passp: *i64) -> i64
called by 1: main calls 2: t_putst_putn
33func t_count(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapccz_readccz_slen
49func main(argc: i64, argv: *i64) -> i64