code wiki / _hdl_build / nx_orch_dashboard.nx
nx_orch_dashboard.nx
buildroot/runtime/_hdl_build/nx_orch_dashboard.nx
about
nx_orch_dashboard.nx -- LIVE orchestration visualization for /wiki. Renders the Nishi team-coordination
state into a self-contained HTML page (inline CSS, ZERO 3rd-party JS = the wiki sovereignty invariant):
1. the RACI matrix (activity -> Accountable[bold] / Responsible / Consulted / Informed) from the registry,
2. per-role intake QUEUE status (PENDING / APPLIED / CONFLICT / AMBIGUOUS counts) from knowledge/roles/*,
3. the recent PM routings (activity -> accountable role -> disposition) from pm_coord.tsv.
Published to /wiki via the Publisher (dogfoods the coordination spine). Re-render on a cadence = "live".
in: knowledge/registry/nishi_raci.tsv (RACI registry, unchanged) ยท the role queue + PM-routing data now read
from the SOVEREIGN seg-store knowledge/store/roles-* (channels <role>q / pmcoord) -- NO roles/*.tsv.
out: knowledge/status/orch_dashboard.html (argv[1] overrides)
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_role_store.nxnx_raci_sov.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
| 15 | const OD_MAGIC_2026: i64 = 2026 |
| 16 | const OD_MAGIC_524288: i64 = 524288 |
| 19 | const OD_COORD: *u8 = "knowledge/roles/pm_coord.tsv" // RETIRED file (kept for provenance); routings now read from the pmcoord channel |
| 20 | const OD_OUT: *u8 = "knowledge/status/orch_dashboard.html" |
| 21 | const OD_CAP: i64 = 262144 |
| 22 | const OD_MAXROWS: i64 = 512 |
| 23 | const OD_STR: i64 = 48 |
functions
| 25 | func od_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 od_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 27 | func od_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 } |
| 28 | func od_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 } called by 1: od_roles |
| 29 | func od_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 35 | func od_field(line: *u8, len: i64, idx: i64, out: *u8, outcap: i64) -> i64 called by 1: main |
| 40 | func od_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: main |
| 41 | func od_bs(buf: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){buf[o]=s[i];o=o+1;i=i+1} return o } |
| 42 | func od_bn(buf: *u8, off: i64, v: i64) -> i64 { var o: i64=off; var m: i64=v; if m<0{buf[o]=45 as u8;o=o+1;m=0-m} let t: *u8=sys_mmap(24); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m-(m/10)*10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{buf[o+i]=t[k-1-i];i=i+1} return o+k } |
| 44 | func od_roles(roleS: *u8, actS: *u8, letS: *u8, nrows: i64, act: *u8, ch: i64, hb: *u8, off: i64, cnt: *i64) -> i64 |
| 51 | func od_count(ch: *u8, status: *u8) -> i64 |
| 61 | func od_role_card(role: *u8, hb: *u8, off: i64) -> i64 |
| 72 | func main(argc: i64, argv: *i64) -> i64 |