code wiki / _hdl_build / nx_raci.nx

nx_raci.nx

buildroot/runtime/_hdl_build/nx_raci.nx

7147 B128 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind tooltopic raci
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_raci.nx nx_raci_gate.nx

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

main raci_validate sys_mmap rc_read sys_openat_rd sys_read sys_close rc_w sys_write rc_field rc_cpy rc_streq rc_wn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap rc_has sys_write ↻ rc_roles_with rc_streq ↻ rc_has ↻ rc_w ↻ rc_w ↻ rc_wn ↻

structs

none

consts

15const RC_MAXROWS: i64 = 512
16const RC_STR: i64 = 40
17const RC_MAXACT: i64 = 48
18const RC_CAP: i64 = 262144
19const RC_DEFAULT: *u8 = "knowledge/registry/nishi_raci.tsv"

functions

21func 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 }
26func rc_wn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 2: raci_validatemain calls 1: nxi_out
27func rc_read(path: *u8, buf: *u8, cap: i64) -> i64
33func 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 }
34func 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 }
35func 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
37func rc_field(line: *u8, len: i64, idx: i64, out: *u8, outcap: i64) -> i64
called by 1: raci_validate
46func rc_roles_with(roleS: *u8, actS: *u8, letS: *u8, nrows: i64, act: *u8, ch: i64, verbose: i64) -> i64
called by 1: raci_validate calls 3: rc_streqrc_hasrc_w
59func raci_validate(path: *u8, verbose: i64) -> i64
121func main(argc: i64, argv: *i64) -> i64