code wiki / _hdl_build / nx_harmony_conduct.nx
nx_harmony_conduct.nx
buildroot/runtime/_hdl_build/nx_harmony_conduct.nx
about
nx_harmony_conduct.nx -- THE CONDUCTOR: raise team harmony by performing the PM's `coordinate`
accountability for the WHOLE bound team, not just a few (operator: "not just a few"). For every
RACI activity it finds the Accountable owner and -- if that owner has NO live coordination in the
sovereign roles- store -- routes it its REAL standing accountability (a PENDING activation of the
activity it genuinely owns per the VALIDATED nx_raci contract). NOT fabricated busywork: each row
activates a role's real RACI duty. IDEMPOTENT: only cues a section whose channel is empty, so
re-runs add nothing. This is COORDINATION (every section cued to its part) -- the first half of
harmony; sustained performance (completing the routed work) is the ongoing measure.
Sovereign (roles- seg-store, no TSV writes). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_role_store.nxnx_syscalls.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
| 13 | const HC_MAGIC_2026: i64 = 2026 |
| 16 | const HC_MAXROWS: i64 = 512 |
| 17 | const HC_STR: i64 = 40 |
| 18 | const HC_CAP: i64 = 262144 |
functions
| 20 | func hc_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 21 | func hc_n(v: i64) -> i64 { if v == 0 { sys_write(1, "0" as *u8, 1); return 0 } var m: i64 = v; let t: *u8 = sys_mmap(24); var k: i64 = 0; while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } let o: *u8 = sys_mmap(24); var w: i64 = 0; var q: i64 = k - 1; while q >= 0 { o[w] = t[q]; w = w + 1; q = q - 1 } sys_write(1, o, w); return 0 } |
| 22 | func hc_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 } |
| 23 | func hc_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: hc_owner |
| 24 | func hc_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 } |
| 25 | func hc_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o } |
| 26 | func hc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 32 | func hc_field(line: *u8, len: i64, idx: i64, out: *u8, outcap: i64) -> i64 called by 1: hc_load |
| 41 | func hc_load(roleS: *u8, actS: *u8, letS: *u8) -> i64 |
| 68 | func hc_owner(roleS: *u8, actS: *u8, letS: *u8, nrows: i64, act: *u8, out: *u8) -> i64 |
| 79 | func hc_chan(role: *u8, out: *u8) -> i64 |
| 85 | func main(argc: i64, argv: *i64) -> i64 |