code wiki / (root) / nx_buildecho_gate.nx

nx_buildecho_gate.nx

buildroot/runtime/nx_buildecho_gate.nx

7722 B122 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_buildecho_gate.nx -- BITE-PROVE THE CROSS-TARGET GUARD, BOTH WAYS (2026-08-07, debt 1786128134). The guard this tests is the only thing standing between a wrong-target compile and a wrong organ going live under the right name. It had been written, compiled, and NEVER FIRED. *A GUARD THAT HAS ONLY EVER BEEN COMPILED IS UNVERIFIED, NOT SAFE* -- and a deny-guard that is only ever shown inputs it should refuse passes every test while being wholly broken, which is why T2 and T5 exist: they are the inputs it must ALLOW. The fixtures are REAL captures, copied byte-for-byte from what /api/build actually produced today -- including the mismatch that started this (asked nx_filecopy, builder echoed nx_seg_store_gate). A fixture invented to suit the parser proves only that the parser suits the fixture. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 2 imports · 0 importers

nx_buildecho.nx nx_gate_verdict.nx nx_buildecho_gate.nx

imports: nx_buildecho.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 be_compiled_name blen bsame bp be_echo_matches 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 ↻ be_compiled_name ↻ be_after_hex bn bp ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts sys_write ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_puts ↻

structs

none

consts

none

functions

16func bp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: bnmain
17func bn(v: i64) -> i64
called by 1: main calls 1: bp
30func blen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
31func bsame(a: *u8, b: *u8) -> i64
called by 1: main
44func main() -> i64