code wiki / _hdl_build / nx_store_put_gate.nx
nx_store_put_gate.nx
buildroot/runtime/_hdl_build/nx_store_put_gate.nx
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
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
structs
| none |
consts
| 15 | const SPG_CAP: i64 = 262144 |
| 16 | const SPG_NL: i64 = 10 |
| 17 | const SPG_PFXCAP: i64 = 128 |
| 18 | const SPG_AV_BYTES: i64 = 128 |
| 19 | const SPG_NARG_PUT: i64 = 10 |
| 20 | const SPG_NARG_CLOSE: i64 = 5 |
| 21 | const SPG_HIST_ROWS: i64 = 3 |
functions
| 23 | func 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 |
| 24 | func spg_has(q: *u8, n: i64, s: *u8) -> i64 |
| 37 | func 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 |
| 39 | func main() -> i64 |