code wiki / _hdl_build / nx_compliance.nx
nx_compliance.nx
buildroot/runtime/_hdl_build/nx_compliance.nx
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
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
structs
| none |
consts
| 40 | const NW: i64 = 10 |
functions
| 10 | func 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 } |
| 15 | func cp_n(v: i64) -> i64 { nxi_out(v); return 0 } |
| 16 | func 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 } |
| 21 | func cp_fn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 24 | func 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 |
| 26 | func 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 |
| 29 | func comp_gate(conf: i64) -> i64 called by 1: main |
| 38 | func comp_next_target(cur: i64) -> i64 { if cur >= 5 { return 0 } return grade_min_conf(cur + 1) } |
| 42 | func main() -> i64 |