code wiki / _hdl_build / nx_team_harmony.nx

nx_team_harmony.nx

buildroot/runtime/_hdl_build/nx_team_harmony.nx

13801 B236 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic team
docsdependenciesstructsconstsfunctions

about

nx_team_harmony.nx -- THE ORCHESTRA: the Nishi team judges ITSELF and its COUNTERPARTS on the ability to orchestrate and make "music" through total harmony (operator 2026-06-22). NOT Claude grading -- the ecosystem measures itself from REAL signals, liar-killed: SELF-judgment(role) = PRESENT (organ on disk) + OWNS (accountable for >=1 RACI activity) COUNTERPART-judgment(role) = BOUND (named in the RACI contract) + PLAYING (live rows in the sovereign roles- store) -- "the team's contract includes me AND I am actually playing for them." HARMONY(role) = SELF + PEER (0..4); IN-HARMONY iff == 4 (exists, owns, bound, AND playing). MUSIC = TOTAL harmony scored by the WEAKEST section, not the average -- a few stars cannot fake a full orchestra. MUSIC only when every section is in. Grounds the roster + ownership in the VALIDATED RACI contract (knowledge/registry/nishi_raci.tsv, the SSOT nx_raci enforces) + live activity in the sovereign seg-store via nx_role_store rs_count. Sovereign. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_role_store.nx nx_syscalls.nx nx_raci_sov.nx nx_team_harmony.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 ↻ th_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

17const TH_MAGIC_2026: i64 = 2026
20const TH_MAXROWS: i64 = 512
21const TH_STR: i64 = 40
22const TH_CAP: i64 = 262144
23const TH_LOG: *u8 = "knowledge/status/team_harmony.log"

functions

25func th_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 3: th_padth_judgemain calls 1: sys_write
26func th_n(v: i64) -> i64
called by 2: th_judgemain calls 2: sys_writesys_mmap
34func th_pad(s: *u8, width: i64) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); var p: i64 = width - n; while p > 0 { th_w(" " as *u8); p = p - 1 } return 0 }
called by 1: th_judge calls 2: sys_writeth_w
35func th_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 }
36func th_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 2: th_ownsth_ext
37func th_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: th_load
38func th_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: th_presentmain
40func th_read(path: *u8, buf: *u8, cap: i64) -> i64
46func th_field(line: *u8, len: i64, idx: i64, out: *u8, outcap: i64) -> i64
56func th_load(roleS: *u8, letS: *u8) -> i64
84func th_bound(roleS: *u8, nrows: i64, role: *u8) -> i64
called by 1: th_judge calls 1: th_streq
89func th_owns(roleS: *u8, letS: *u8, nrows: i64, role: *u8) -> i64
called by 1: th_judge calls 2: th_streqth_has
97func th_present(organ: *u8) -> i64
called by 1: th_judge calls 3: sys_mmapth_catsys_fstatat
106func th_playing(channel: *u8) -> i64 { if rs_count(channel) > 0 { return 1 } return 0 }
called by 1: th_judge calls 1: rs_count
109func th_ext(role: *u8, want_A: i64) -> i64
130func th_delivering(channel: *u8) -> i64
148func th_exceeding(channel: *u8) -> i64
163func th_judge(role: *u8, organ: *u8, channel: *u8, roleS: *u8, letS: *u8, nrows: i64, t: *i64) -> i64
188func main(argc: i64, argv: *i64) -> i64