nx_bundle_ingest_gate.nx
buildroot/runtime/nx_bundle_ingest_gate.nx
about
nx_bundle_ingest_gate.nx -- THE BUNDLE WALKER GATE (/compare/modding MD1, 2026-09-06). The fixture is BUILT AT RUNTIME with
the estate's own writers (nx_zip stored entries + nx_zip_deflate_lib method-8 entries), under /tmp/nx_bundle_ingest_gate/,
never a production path: an OBJ that names its MTL, an MTL that names four PNG maps, four PNGs, a VMD, an unreferenced PNG
and one member of no known type. Teeth drive the LIB in-process, then fork the promoted CLI on the same fixture as the
second witness and reconcile its receipt. Negative controls: the incumbent STORED-only reader (nxzip_entry_data) must
REFUSE the deflated member -- a walker that could not fail that way would prove nothing -- and a container with its EOCD
cut off must be refused, never reported as zero members.
usage: nx_bundle_ingest_gate (no args)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_zip.nxnx_zip_deflate_lib.nxnx_bundle_ingest_lib.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
| 17 | const BG_DIR: *u8 = "/tmp/nx_bundle_ingest_gate" |
| 18 | const BG_FIX: *u8 = "/tmp/nx_bundle_ingest_gate/fixture.zip" |
| 19 | const BG_CUT: *u8 = "/tmp/nx_bundle_ingest_gate/fixture_noeocd.zip" |
| 20 | const BG_ELF_LIVE: *u8 = "./nx_bundle_ingest.elf" |
| 21 | const BG_ELF_STAGE: *u8 = "./nx_bundle_ingest.sov.elf.new" |
| 22 | const BG_ELF_BUILD: *u8 = "buildroot/_build/nx_bundle_ingest.sov.elf" |
| 23 | const BG_DIR_MODE: i64 = 493 |
| 24 | const BG_FILE_MODE: i64 = 420 |
| 25 | const BG_ZIP_CAP: i64 = 65536 |
| 26 | const BG_CD_CAP: i64 = 4096 |
| 27 | const BG_OBJ_V_LINES: i64 = 40 |
| 28 | const BG_OBJ_F_LINES: i64 = 20 |
| 29 | const BG_PNG_PAD: i64 = 24 |
| 30 | const BG_VMD_PAD: i64 = 40 |
| 31 | const BG_MEMBERS: i64 = 9 |
| 32 | const BG_CAP: i64 = 65536 |
| 33 | const BG_ZIP_FLD_N: i64 = 8 |
functions
| 35 | func bg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: bg_cat |
| 36 | func bg_cat(dst: *u8, off: i64, s: *u8) -> i64 { let n: i64 = bg_len(s); var i: i64 = 0; while i < n { dst[off + i] = s[i]; i = i + 1 } return off + n } |
| 37 | func bg_write_file(path: *u8, b: *u8, n: i64) -> i64 |
| 45 | func bg_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 46 | func bg_num_after(buf: *u8, n: i64, key: *u8) -> i64 |
| 65 | func bg_row(tbl: *i64, i: i64) -> *i64 { return bi_rec(tbl, i) } |
| 67 | func main(argc: i64, argv: *i64) -> i64 |