code wiki / _hdl_build / nx_raci_gate.nx
nx_raci_gate.nx
buildroot/runtime/_hdl_build/nx_raci_gate.nx
about
nx_raci_gate.nx -- SOVEREIGN gate for the RACI validator.
T1 GOOD registry -> 0 violations (neg-control: a correct RACI passes)
T2 TWO Accountables on one activity -> violation CAUGHT (liar-kill: ambiguous ownership)
T3 ZERO Accountable -> violation CAUGHT (orphan activity)
T4 Accountable but ZERO Responsible -> violation CAUGHT (nobody does it)
T5 the REAL registry (knowledge/registry/nishi_raci.tsv) is VALID (0 violations)
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_raci.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
structs
| none |
consts
| 12 | const RG_P: *u8 = "/tmp/raci_test.tsv" |
functions
| 14 | func rg_uw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 15 | func rg_wn(v: i64) -> i64 { let b: *u8=sys_mmap(24); var m: i64=v; var k: i64=0; if m<0{rg_uw("-" as *u8);m=0-m} if m==0{b[0]=48 as u8;k=1} let t: *u8=sys_mmap(24); while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var o: *u8=sys_mmap(24); var w: i64=0; var q: i64=k-1; while q>=0{o[w]=t[q];w=w+1;q=q-1} sys_write(1,o,w); return 0 } |
| 16 | func rg_write(s: *u8) -> i64 { var len: i64=0; while s[len]!=(0 as u8){len=len+1} let fd: i64=sys_openat_wr(RG_P, 0x1a4); if fd<0 {return 0-1} sys_write(fd,s,len); sys_close(fd); return 0 } |
| 18 | func main(argc: i64, argv: *i64) -> i64 |