code wiki / _hdl_build / nx_raci_bind.nx
nx_raci_bind.nx
buildroot/runtime/_hdl_build/nx_raci_bind.nx
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
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
structs
| none |
consts
| 13 | const RB_EXT: *u8 = "raciext" |
functions
| 15 | func 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 } |
| 19 | func rb_streq_ra(rec: *u8, rlen: i64, role: *u8, activity: *u8) -> i64 called by 1: rb_in_ext |
| 32 | func rb_in_ext(role: *u8, activity: *u8) -> i64 |
| 42 | func 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 } |
| 45 | func rb_bind(role: *u8, activity: *u8) -> i64 |
| 55 | func rb_cue(role: *u8, channel: *u8, activity: *u8) -> i64 |
| 65 | func main(argc: i64, argv: *i64) -> i64 |