code wiki / _hdl_build / nx_asm_canary.nx
nx_asm_canary.nx
buildroot/runtime/_hdl_build/nx_asm_canary.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 13 | func ac_run(path: *u8, a1: *u8, a2: *u8) -> i64 |
| 27 | func main() -> i64 |