code wiki / _hdl_build / nx_hub_roles_seed.nx
nx_hub_roles_seed.nx
buildroot/runtime/_hdl_build/nx_hub_roles_seed.nx
about
nx_hub_roles_seed.nx -- seed the HUB ROLES registry (handle -> access level) into the SOVEREIGN
content-addressed store via nx_native_config (ncfg_*), NOT roles.tsv (operator: no tsv; use the nishi
ecosystem data management). Row = {handle, level}; nx_hub_gw resolves a session's level from here
(hgw_level_native) for the leveled hub index -- replacing the roles.tsv read. level vocab matches
nx_maturity_registry mr_level_of: 0=public/anon 1=viewer/family 2=member 3=operator/owner.
Additive: add family/member handles with more rows the same way (content-addressed, history-preserving).
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_native_config.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
| none |
functions
| 10 | func hrs_row(w: *i64, idx: i64, handle: *u8, level: *u8) -> i64 |
| 17 | func hrs_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 main() -> i64 |