code wiki / _hdl_build / nx_asm_canary.nx

nx_asm_canary.nx

buildroot/runtime/_hdl_build/nx_asm_canary.nx

3255 B56 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_asm_canary.nx -- the ASSEMBLER CANARY law as an executable organ (2026-06-10): no nxasm build is trusted until it assembles the canary (_mb_gate.s) and the result RUNS and exits 42. This module: 1. runner-builds nxasm_x86_main (retry-guarded -> /tmp/nxasm_x86_main.sov.elf) 2. new build assembles _mb_gate.s -> /tmp/canary.elf 3. runs canary.elf -> exit MUST be 42 (signal-aware) 4. emits CANARY PASS/REJECT line to /tmp/nishi_ladder.log ; exit 0=blessed, 1=rejected Closes the failure class where a parse-broken 1-shot build (reg->r15, imm->0xAB) masqueraded as a source bug and burned a session (and likely created the May30 "landmine" verdict). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_asm_canary.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 ac_w sys_write ac_run sys_mmap sys_fork sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_write ↻ sys_openat_append sys_close sys_exit ↻

structs

none

consts

none

functions

11func ac_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
13func ac_run(path: *u8, a1: *u8, a2: *u8) -> i64
27func main() -> i64