code wiki / _hdl_build / nx_mvault_gate.nx
nx_mvault_gate.nx
buildroot/runtime/_hdl_build/nx_mvault_gate.nx
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
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
structs
| none |
consts
| 15 | const MVG_AVCAP: i64 = 128 |
| 16 | const MVG_LENBOX: i64 = 8 |
functions
| 18 | func 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 |
| 19 | func mvg_has(q: *u8, n: i64, s: *u8) -> i64 |
| 33 | func main() -> i64 |