code wiki / (root) / nx_pabi_native_core_gate.nx

nx_pabi_native_core_gate.nx

buildroot/runtime/nx_pabi_native_core_gate.nx

8914 B216 linesdepth 7pulls 10 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_pabi_native_core_gate.nx -- F103b "pabi-native core byte-exact" (os lane, M3; dep F103a=D 2026-07-21). THE CLAIM: the NishiOS-NATIVE pabi core (block-VFS files/dirs + verified-NXE exec + the portable forge judge) is BYTE-EXACT with the linux-host lane at WORKLOAD SCALE. nx_pabi_gate proves single-op identity; THIS gate proves the core: a 24-file binary workload (block-boundary sizes 255/256/257/512, embedded 0x00/0xFF bytes, >15KB total) + a 5-arg exec sweep (fork lane vs verified-NXE lane) + the judge loop, folded into ORDER-SENSITIVE rolling checksums that must be IDENTICAL across substrates, plus per-file byte-diff (mism==0). D001: emits the nx_gate_verdict contract. REFUTATION: argv[1]=negctl corrupts ONE byte of ONE nishios payload -> the byte-exact teeth (C02/C03) MUST go RED; registered sibling tool nx_pabi_native_negtest pins that arg. license_tier: ORIGINAL expect_exit: 0 No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_pabi.nx nx_gate_verdict.nx nx_pabi_native_core_gate.nx

imports: nx_pabi.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 gv_ctr sys_mmap gv_head gv_puts sys_write gv_puts ↻ pabi_nishios_new vb_format vb_wr vb_ino vb_nm_set vb_mount vb_rd vbj_replay vbj_hdr vb_rd ↻ vbj_sumrecs vbj_hdr ↻ vb_rd ↻ vb_sum vbj_rec vbj_checkpoint vbj_hdr ↻ vb_wr ↻ vbj_apply vbj_hdr ↻ vb_rd ↻ vbj_rec ↻ vb_ino ↻ pn_sz pn_fill pn_copy pn_d2 pabi_write sys_openat_wr pabi_basename vb_create vb_ino ↻ vb_rd ↻

structs

none

consts

14const PN_NF: i64 = 24
15const PN_BUF: i64 = 8192
16const PN_EXECN: i64 = 5

functions

19func pn_sz(i: i64) -> i64
called by 1: main
32func pn_fill(buf: *u8, seed: i64, sz: i64) -> i64
called by 1: main
45func pn_copy(dst: *u8, off: i64, src: *u8) -> i64
called by 1: main
52func pn_d2(buf: *u8, off: i64, v: i64) -> i64
called by 1: main
62func pn_fold(ck: i64, buf: *u8, n: i64) -> i64
called by 1: main
70func main(argc: i64, argv: *i64) -> i64