code wiki / _hdl_build / nx_hr_entitle_provision.nx

nx_hr_entitle_provision.nx

buildroot/runtime/_hdl_build/nx_hr_entitle_provision.nx

2454 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 sys_mmap ss_manifest_dyn ss_cat ss_loadfile ss_load_aux2 ssl_total_keys ssl_pow2 ssl_build ss_r32 ssl_lookup ss_manifest_free sys_munmap sys_mmap ↻ ss_hget sys_mmap ↻ ss_idx_find ss_r32 ↻ ss_len ss_kcmp he_atoi_n sys_mmap ↻ he_ent_get sys_mmap ↻ he_idx_key he_itoa sys_mmap ↻ ss_open ↻ ss_hget ↻ canon_decode ud_r32 sys_mmap ↻ he_ent_field he_streq he_streq ↻

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}; 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