code wiki / (root) / nx_deployjrnl_gate.nx

nx_deployjrnl_gate.nx

buildroot/runtime/nx_deployjrnl_gate.nx

12812 B220 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_deployjrnl_gate.nx -- THE REFEREE for the deploy-audit reconstruction. It tests the SHIPPING ruler, not a paraphrase of it: every judgement nx_deployjrnl makes lives in nx_deployjrnl_lib as a pure function, and this gate imports that same lib. There is one copy, so a tooth here cannot pass while the organ does something else. Fixtures are assembled at RUNTIME under /tmp/<gate>/ and never share a path with a production beat: a gate whose RED tracks its fixture rather than its code has been measured in this estate, and a detector that scans source will otherwise find its own test data. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_deployjrnl_lib.nx nx_deployjrnl_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_deployjrnl_lib.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 g_write sys_openat_wr sys_write ↻ dj_slen sys_close gv_check gv_puts ↻ g_eq dj_transition gv_bite gv_puts ↻ dj_risk dj_would_destroy_only_roll dj_risk ↻ dj_verdict dj_new_floor sys_mmap ↻ dj_hash_file sys_mmap ↻

structs

none

consts

16const G_DIR: *u8 = "/tmp/nx_deployjrnl_gate" as *u8
17const G_BANK: *u8 = "/tmp/nx_deployjrnl_gate/bank" as *u8
18const G_MODE_DIR: i64 = 511
19const G_A_LIVE: *u8 = "/tmp/nx_deployjrnl_gate/a.elf" as *u8
20const G_A_PREV: *u8 = "/tmp/nx_deployjrnl_gate/a.elf.prev" as *u8
21const G_B_LIVE: *u8 = "/tmp/nx_deployjrnl_gate/b.elf" as *u8
22const G_B_PREV: *u8 = "/tmp/nx_deployjrnl_gate/b.elf.prev" as *u8
23const G_BANKED: *u8 = "/tmp/nx_deployjrnl_gate/bank/a.elf.pre-tag" as *u8
24const G_MISSING: *u8 = "/tmp/nx_deployjrnl_gate/definitely-absent" as *u8

functions

26func g_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
27func g_not(a: i64) -> i64 { if a == 1 { return 0 } return 1 }
called by 1: main
28func g_and(a: i64, b: i64) -> i64 { if a == 1 { if b == 1 { return 1 } } return 0 }
called by 1: main
29func g_ge0(v: i64) -> i64 { if v >= 0 { return 1 } return 0 }
called by 1: main
31func g_write(path: *u8, s: *u8) -> i64
39func main(argc: i64, argv: *i64) -> i64