code wiki / _hdl_build / nx_mvault_gate.nx

nx_mvault_gate.nx

buildroot/runtime/_hdl_build/nx_mvault_gate.nx

5911 B130 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic mvault
docsdependenciesstructsconstsfunctions

about

nx_mvault_gate.nx -- gate for the vault CLI wrapper (classify/tag/measure/record). Authored 2026-07-18 (sess 02796e0e) on nx_gate_verdict lib (migrate-on-touch D001 -- every gate you touch moves onto the DRY verdict lib). GATE-PROOFS the previously demo-proven wrapper: T1 classify -> class/real/cid JSON T2 re-classify SAME bytes -> identical output (deterministic content-CID = the dedup foundation, no store state needed) T3 tag -> open booru namespace "ns:value" T4 measure -> lossless "axis=value@leg#conf" T5 (neg) classify MISSING file -> rc!=0 (fail-closed) T6 record -> seg-store write path Fixture = the staged ELF itself (/tmp/nx_mvault.sov.elf, guaranteed present at gate-run) so the gate needs no file-create syscall. Drives the staged CLI via dep_run_capture (stdout->tmpfile). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_gate_verdict.nx nx_deploy_lib.nx nx_syscalls.nx nx_mvault_gate.nx

imports: nx_gate_verdict.nxnx_deploy_lib.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_mmap ↻ dep_run_capture sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve_clean sys_close sys_execve sys_exit sys_wait4 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ mvg_has mvg_slen gv_check gv_puts ↻ sys_mkdir gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻

structs

none

consts

15const MVG_AVCAP: i64 = 128
16const MVG_LENBOX: i64 = 8

functions

18func mvg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: mvg_has
19func mvg_has(q: *u8, n: i64, s: *u8) -> i64
called by 1: main calls 1: mvg_slen
33func main() -> i64