code wiki / _hdl_build / nx_compliance.nx

nx_compliance.nx

buildroot/runtime/_hdl_build/nx_compliance.nx

6195 B82 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_compliance.nx -- the COMPLIANCE & STANDARDS organ (PM's chosen #2; the team member that owns standards, distinct from the PM and feeding the Auditor). It holds the STANDARDS REGISTRY per workstream (legal + engineering) + a measured CONFORMANCE %, and enforces the S-CLASS GATE: conformance CAPS maturity, so the Auditor cannot grade a layer S-class while it fails its governing standard. It also emits, per workstream, the conformance TARGET required to unlock the next maturity grade -- the actionable link from a standard to the roadmap. Pure policy + data; the Auditor calls comp_gate() before promoting a grade. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_compliance.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap cp_puts sys_write sys_openat_append cp_fw sys_write ↻ comp_gate grade_label cp_n nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap comp_next_target grade_min_conf cp_fn nxi_fd ↻ sys_close sys_exit

structs

none

consts

40const NW: i64 = 10

functions

10func cp_puts(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
15func cp_n(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
16func cp_fw(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
21func cp_fn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: main calls 1: nxi_fd
24func grade_label(g: i64) -> *u8 { if g==0 {return "ABSENT" as *u8} if g==1 {return "TOY" as *u8} if g==2 {return "FUNCTIONAL" as *u8} if g==3 {return "PRODUCTION" as *u8} if g==4 {return "S-CLASS" as *u8} return "EXCEED" as *u8 }
called by 1: main
26func grade_min_conf(g: i64) -> i64 { if g<=1 {return 0} if g==2 {return 40} if g==3 {return 60} if g==4 {return 80} return 90 }
called by 1: comp_next_target
29func comp_gate(conf: i64) -> i64
called by 1: main
38func comp_next_target(cur: i64) -> i64 { if cur >= 5 { return 0 } return grade_min_conf(cur + 1) }
called by 1: main calls 1: grade_min_conf
42func main() -> i64