code wiki / _hdl_build / nx_raci_bind.nx

nx_raci_bind.nx

buildroot/runtime/_hdl_build/nx_raci_bind.nx

5570 B85 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic raci
docsdependenciesstructsconstsfunctions

about

nx_raci_bind.nx -- bind the conductor + race team into the RACI SOVEREIGNLY (no TSV). The contract nx_raci reads is still nishi_raci.tsv (legacy); rather than perpetuate it, this writes a sovereign RACI EXTENSION as rows in the roles- seg-store channel "raciext" (role<TAB>activity<TAB>letters), formalizing the two roles' REAL duties: conductor is Accountable for `orchestrate` (it keeps the beat / liveness), race is Accountable for `benchmark` (competitive measurement). Then it CUES each (PENDING activation in its channel) so the section is playing. IDEMPOTENT: adds a role only if the extension does not already list it; cues only an empty channel. nx_team_harmony reads this extension for BOUND/OWNS, so the two sections can reach harmony without a single TSV write. Sovereign. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_role_store.nx nx_syscalls.nx nx_raci_bind.nx

imports: nx_role_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rb_w sys_write rb_bind rb_in_ext rs_count sys_mmap rs_nkey ss_cat ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist rs_atoi sys_mmap ↻ rs_get_seq sys_mmap ↻ rs_key ss_cat ↻ ss_catn sys_mmap ↻ ss_get ↻ rb_streq_ra rb_w ↻ sys_mmap ↻ rb_cat rs_append rs_lock sys_openat_append sys_flock rs_segcount sys_mmap ↻ ss_manifest ss_manifest_file sys_mmap ↻ ss_cat ↻ ss_readall rs_unlock

structs

none

consts

13const RB_EXT: *u8 = "raciext"

functions

15func rb_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: rb_bindrb_cuemain calls 1: sys_write
19func rb_streq_ra(rec: *u8, rlen: i64, role: *u8, activity: *u8) -> i64
called by 1: rb_in_ext
32func rb_in_ext(role: *u8, activity: *u8) -> i64
42func rb_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: rb_bindrb_cue
45func rb_bind(role: *u8, activity: *u8) -> i64
55func rb_cue(role: *u8, channel: *u8, activity: *u8) -> i64
65func main(argc: i64, argv: *i64) -> i64