code wiki / _hdl_build / nx_shard_guardrail_gate.nx
nx_shard_guardrail_gate.nx
buildroot/runtime/_hdl_build/nx_shard_guardrail_gate.nx
about
nx_shard_guardrail_gate.nx -- hermetic gate for CAP-SHARD-GUARDRAIL (R4). Proves the tighten-only inheritance:
a shard can RAISE the required level but a shard's attempt to LOWER it below the org floor is ignored -- a tenant
can never weaken an org-wide guardrail. Sovereign: nx_syscalls + nx_shard_guardrail. expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_shard_guardrail.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
| none |
functions
| 8 | func gp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func gn(v: i64) -> i64 { var t: i64=v; if t<0{sys_write(1,"-" as *u8,1);t=0-t} let tm:*u8=sys_mmap(24); var k:i64=0; if t==0{tm[0]=48 as u8;k=1} while t>0{tm[k]=(48+(t%10)) as u8;t=t/10;k=k+1} let b:*u8=sys_mmap(24); var j:i64=0; while j<k{b[j]=tm[k-1-j];j=j+1} sys_write(1,b,k); return 0 } |
| 11 | func main(argc: i64, argv: *i64) -> i64 |