code wiki / (root) / nx_sov_gate.nx

nx_sov_gate.nx

buildroot/runtime/nx_sov_gate.nx

5413 B109 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic sov
docsdependenciesstructsconstsfunctions

about

nx_sov_gate.nx -- gate for the standard sovereign data CLI (the anti-flat-file standard path). T1 put/get roundtrip byte-exact (latest-wins on double-put) T2 has present/absent T3 INTEROP IN: import a key<TAB>value TSV -> keys present in the sovereign store + __ids__ index T4 INTEROP OUT: export -> the derived TSV roundtrips the imported data (boundary view, store=SSOT) T5 NEG: get of an absent key fails cleanly (no fabricated value) T6 fsck CLEAN on the store this gate just wrote (validated record walk, all in-bounds) T7 fsck CAN-FAIL: a crafted TORN segment (huge key-length field past EOF) -> TORN + exit 1 (the reader has no bounds validation -- fsck is what makes crash-torn state VISIBLE) license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_sov.nx nx_gate_verdict.nx nx_sov_gate.nx

imports: nx_sov.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main std_putln std_puts std_slen sys_write sov_put_str sov_put ss_begin ss_begin_cap sys_mmap ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻ ss_r32 ss_kcmp

structs

none

consts

14const SG_STORE: *u8 = "/tmp/nxsov_gate_store"

functions

16func sg_write(path: *u8, s: *u8) -> i64
called by 1: main calls 2: sys_openat_wrstd_slen
24func sg_streq_n(a: *u8, b: *u8, n: i64) -> i64
called by 1: main
33func main(argc: i64, argv: *i64) -> i64