code wiki / (root) / nx_bundle_ingest_selected_gate_t144.nx

nx_bundle_ingest_selected_gate_t144.nx

buildroot/runtime/nx_bundle_ingest_selected_gate_t144.nx

18810 B294 linesdepth 7pulls 13 transitivereach 0 importersview sourcekind tooltopic bundle
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_gate_verdict.nx nx_gatekit_lib.nx nx_zip_selected_candidate_t144.nx nx_zip_deflate_selected_candidate_ nx_bundle_ingest_selected_candidat nx_bundle_ingest_selected_gate

imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_zip_selected_candidate_t144.nxnx_zip_deflate_selected_candidate_t144.nxnx_bundle_ingest_selected_candidate_t144.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_mkdir sys_mmap ↻ bg_cat bg_len gv_check gv_puts ↻ gv_check_eq gv_check ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_kv gv_puts ↻ gv_num ↻ bg_write_file sys_openat_wr sys_write ↻ sys_close

structs

none

consts

17const BG_DIR: *u8 = "/tmp/nx_bundle_ingest_gate"
18const BG_FIX: *u8 = "/tmp/nx_bundle_ingest_gate/fixture.zip"
19const BG_CUT: *u8 = "/tmp/nx_bundle_ingest_gate/fixture_noeocd.zip"
20const BG_ELF_LIVE: *u8 = "./nx_bundle_ingest.elf"
21const BG_ELF_STAGE: *u8 = "./nx_bundle_ingest.sov.elf.new"
22const BG_ELF_BUILD: *u8 = "buildroot/_build/nx_bundle_ingest.sov.elf"
23const BG_DIR_MODE: i64 = 493
24const BG_FILE_MODE: i64 = 420
25const BG_ZIP_CAP: i64 = 65536
26const BG_CD_CAP: i64 = 4096
27const BG_OBJ_V_LINES: i64 = 40
28const BG_OBJ_F_LINES: i64 = 20
29const BG_PNG_PAD: i64 = 24
30const BG_VMD_PAD: i64 = 40
31const BG_MEMBERS: i64 = 9
32const BG_CAP: i64 = 65536
33const BG_ZIP_FLD_N: i64 = 8

functions

35func 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
36func 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 }
called by 1: main calls 1: bg_len
37func bg_write_file(path: *u8, b: *u8, n: i64) -> i64
45func bg_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
46func bg_num_after(buf: *u8, n: i64, key: *u8) -> i64
called by 1: main calls 2: gk_out_posgk_len
65func bg_row(tbl: *i64, i: i64) -> *i64 { return bi_rec(tbl, i) }
called by 1: main calls 1: bi_rec
67func main(argc: i64, argv: *i64) -> i64