code wiki / _hdl_build / nx_audit_gate.nx

nx_audit_gate.nx

buildroot/runtime/_hdl_build/nx_audit_gate.nx

3060 B59 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic audit
docsdependenciesstructsconstsfunctions

about

nx_audit_gate.nx -- proves the tamper-evident audit log WORKS, as a standing obligation: an intact chain VERIFIES, and a one-byte tamper FAILS verification. Exercises the real _offc/nx_audit_log.elf via fork/exec (sovereign-buildable; no sha256 import that hits the nxasm gap). Exit 0 iff both: intact->rc0 AND tampered->rc!=0. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_audit_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main _p sys_write ag_unlink ag_run sys_fork sys_mmap sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_openat_rd sys_read sys_close sys_openat_wr sys_write ↻ sys_exit ↻

structs

none

consts

6const AT_FDCWD: i64 = 0 - 100

functions

7func _p(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 1: main calls 1: sys_write
8func ag_run(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> i64
30func main() -> i64