code wiki / _hdl_build / nx_raci.nx
nx_raci.nx
buildroot/runtime/_hdl_build/nx_raci.nx
about
nx_raci.nx -- THE NISHI TEAM RACI validator + reporter (the "hammered out" coordination contract).
Reads the data-driven registry (knowledge/registry/nishi_raci.tsv: role<TAB>activity<TAB>raci-letters) and
enforces the S-class RACI integrity rules (synthesized from the Nishi Researcher's team_*.raw corpus --
responsibility-assignment-matrix + separation-of-duties): EVERY activity has EXACTLY ONE Accountable (A) and
AT LEAST ONE Responsible (R). One-A = no ambiguity about who owns it (= no competition); >=1-R = someone
actually does it. Prints the matrix (per activity: who is A / R / C / I) so the team contract is legible,
and exits non-zero if any activity violates -- so it IS its own gate / CI check.
usage: nx_raci [registry-path] (default knowledge/registry/nishi_raci.tsv)
license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_itoa_lib.nx
imported by: nx_raci_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const RC_MAXROWS: i64 = 512 |
| 16 | const RC_STR: i64 = 40 |
| 17 | const RC_MAXACT: i64 = 48 |
| 18 | const RC_CAP: i64 = 262144 |
| 19 | const RC_DEFAULT: *u8 = "knowledge/registry/nishi_raci.tsv" |
functions
| 21 | func rc_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 26 | func rc_wn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 27 | func rc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 33 | func rc_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8) { if a[i]!=b[i] {return 0} i=i+1 } if b[i]!=(0 as u8) {return 0} return 1 } |
| 34 | func rc_has(s: *u8, ch: i64) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { if (s[i] as i64)==ch {return 1} i=i+1 } return 0 } |
| 35 | func rc_cpy(dst: *u8, src: *u8, max: i64) -> i64 { var i: i64=0; while src[i]!=(0 as u8) { if i<max-1 {dst[i]=src[i]} i=i+1 } dst[i]=0 as u8; return 0 } called by 1: raci_validate |
| 37 | func rc_field(line: *u8, len: i64, idx: i64, out: *u8, outcap: i64) -> i64 called by 1: raci_validate |
| 46 | func rc_roles_with(roleS: *u8, actS: *u8, letS: *u8, nrows: i64, act: *u8, ch: i64, verbose: i64) -> i64 |
| 59 | func raci_validate(path: *u8, verbose: i64) -> i64 |
| 121 | func main(argc: i64, argv: *i64) -> i64 |