code wiki / _hdl_build / nx_hr_entitle_provision.nx

nx_hr_entitle_provision.nx

buildroot/runtime/_hdl_build/nx_hr_entitle_provision.nx

2480 B30 linesdepth 13pulls 25 transitivereach 0 importersview sourcekind tooltopic hr
docsdependenciesstructsconstsfunctions

about

nx_hr_entitle_provision.nx -- migrate the operator's entitlements (was knowledge/status/nishi_entitlements.tsv) into the SOVEREIGN entitlement seg_store via he_ent_put, staged for deploy at the daemon's OLGD_ENT_PATH prefix. IDEMPOTENT (he_ent_put dedups the exact triple, rule #10) -> safe to re-run. The daemon reads this store via he_emit_super. NOTE: the elderwesto-keyed rows are now REDUNDANT (owner = superadmin by construction, auto-sees everything via nx_hr_entitle) -- preserved here for a FAITHFUL migration (additive-only, #13); the organ is what removes the per-resource grant drift going forward. [[feedback-no-3rd-party-tsv-sovereign-store]]

dependencies 3 imports · 0 importers

nx_hr_entitle.nx nx_g_puts_lib.nx nx_syscalls.nx nx_hr_entitle_provision.nx

imports: nx_hr_entitle.nxnx_g_puts_lib.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 he_ent_put he_ent_has he_ent_count ss_open ss_open2 ss_open3 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 nxa_dump_sizes ss_hget sys_mmap ↻ ss_len ss_hlocate ssl_hash_raw ss_r32 ss_r32 ↻ ss_idx_find ss_r32 ↻ ss_len ↻ ss_kcmp he_atoi_n ss_close ss_close_seg sys_munmap ss_aux_free_row sys_munmap ↻ ss_manifest_free sys_munmap ↻ sys_mmap ↻

structs

none

consts

none

functions

11func g_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=(48 as u8);k=1}; while m>0{t[k]=((48+(m%10)) as u8);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func main() -> i64