code wiki / _hdl_build / nx_store_put_gate.nx

nx_store_put_gate.nx

buildroot/runtime/_hdl_build/nx_store_put_gate.nx

7440 B174 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic store
docsdependenciesstructsconstsfunctions

about

nx_store_put_gate.nx -- gate for the unified information-plane write verb (nx_store_put). MIGRATED 2026-07-18 onto nx_gate_verdict (D001 first-rung exemplar: verdict emission via THE lib, no hand-rolled puts/num/pass/ttl). Teeth unchanged: T1 put BOOTSTRAPS an unseeded plane; T2 put replaces by id; T3 close flips+notes; T4 close unknown id REFUSED + plane byte-untouched; T5 hist provenance exact; T6 deterministic readback; T7 v2 N-col put (9-col frontier row); T8 v2 setcol + fail-closed. Per-run-unique /tmp fixture prefixes; drives the staged CLI via dep_run_capture. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 5 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_deploy_lib.nx nx_gate_verdict.nx nx_syscalls.nx nx_store_put_gate.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_deploy_lib.nxnx_gate_verdict.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap gv_head gv_puts sys_write sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ dep_run_capture sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve_clean sys_close sys_execve sys_exit sys_wait4 sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat ↻ sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall

structs

none

consts

15const SPG_CAP: i64 = 262144
16const SPG_NL: i64 = 10
17const SPG_PFXCAP: i64 = 128
18const SPG_AV_BYTES: i64 = 128
19const SPG_NARG_PUT: i64 = 10
20const SPG_NARG_CLOSE: i64 = 5
21const SPG_HIST_ROWS: i64 = 3

functions

23func spg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: spg_has
24func spg_has(q: *u8, n: i64, s: *u8) -> i64
called by 1: main calls 1: spg_slen
37func spg_count_lines(q: *u8, n: i64) -> i64 { var k: i64 = 0; var i: i64 = 0; while i < n { if q[i] == (SPG_NL as u8) { k = k + 1 } i = i + 1 } return k }
called by 1: main
39func main() -> i64