code wiki / _hdl_build / nx_harmony_conduct.nx

nx_harmony_conduct.nx

buildroot/runtime/_hdl_build/nx_harmony_conduct.nx

7008 B125 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_role_store.nx nx_syscalls.nx nx_raci_sov.nx nx_harmony_conduct.nx

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

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ hc_load sys_mmap ↻ raci_read_all ss_open ss_open2 ss_open3 sys_now_us sys_mmap ↻ ss_manifest_dyn ss3_admit ss3_load_range ssl_total_keys_mask ss3_ann ss_close_seg ss3_move ss3_remap_table sys_madvise ss_tr ss3_insert_new sys_munmap ss3_tomb_count ssl_total_keys ssl_pow2 ssl_build

structs

none

consts

13const HC_MAGIC_2026: i64 = 2026
16const HC_MAXROWS: i64 = 512
17const HC_STR: i64 = 40
18const HC_CAP: i64 = 262144

functions

20func 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 }
called by 1: main calls 1: sys_write
21func 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 }
called by 1: main calls 2: sys_writesys_mmap
22func 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 }
called by 3: hc_ownerhc_chanmain
23func 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
24func 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 }
25func 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 }
called by 2: hc_chanmain
26func hc_read(path: *u8, buf: *u8, cap: i64) -> i64
32func hc_field(line: *u8, len: i64, idx: i64, out: *u8, outcap: i64) -> i64
called by 1: hc_load
41func hc_load(roleS: *u8, actS: *u8, letS: *u8) -> i64
68func hc_owner(roleS: *u8, actS: *u8, letS: *u8, nrows: i64, act: *u8, out: *u8) -> i64
called by 1: main calls 3: hc_streqhc_hashc_cpy
79func hc_chan(role: *u8, out: *u8) -> i64
called by 1: main calls 3: hc_streqhc_cpyhc_cat
85func main(argc: i64, argv: *i64) -> i64