code wiki / _hdl_build / nx_acct_admin_handoff.nx

nx_acct_admin_handoff.nx

buildroot/runtime/_hdl_build/nx_acct_admin_handoff.nx

10153 B98 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_acct_admin_handoff.nx -- COORDINATION HANDOFF on the SOVEREIGN store (operator: "pass the wiring work to the appropriate nishi team queues" + "no tsv -- nishi ecosystem only" [[feedback-no-3rd-party-tsv-sovereign-store]]). Each work-request is a CANON-ENCODED record (nx_canon_cid) in a content-addressed, append-only, crash-safe nx_seg_store (knowledge/store/coord-), keyed by sha(to_team|title) -- NOT a flat .tsv. Follows the blessed handoff pattern (nx_pub_teacher_handoff: REQUEST through the owning role's queue, isolated, don't reinvent). Idempotent (#10): re-filing the same (team,title) is a no-op. Each request carries the capability ref + gate evidence the team needs, so no team is blocked on a missing primitive. fields: to_team, from, title, ref, evidence, priority, status(OPEN)

dependencies 5 imports · 0 importers

nx_sovjson_lib.nx nx_seg_store.nx nx_canon_cid.nx nx_sha256.nx nx_syscalls.nx nx_acct_admin_handoff.nx

imports: nx_sovjson_lib.nxnx_seg_store.nxnx_canon_cid.nxnx_sha256.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 sys_mmap g_w sj_puts sys_write sys_now_ms sys_mmap ↻ sys_clock_gettime_mono ah_cat sj_cat ah_file ah_has sys_mmap ↻ ah_idkey sys_mmap ↻ ah_cat ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_final blk_set_byte ↻ sha256_compress ↻ ah_hex ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻

structs

none

consts

14const AH_MAGIC_2048: i64 = 2048
15const AH_MAGIC_8192: i64 = 8192
52const AH_FROM: *u8 = "acct-admin-32992a14" as *u8
53const AH_Q: *u8 = "knowledge/store/coord-" as *u8 // the sovereign seg_store prefix (NOT a .tsv)

functions

17func g_w(s: *u8) -> i64 { return sj_puts(s) }
called by 3: g_ng_rowmain calls 1: sj_puts
18func g_n(v: i64) -> i64 { var m: i64=v; if m<0{g_w("-" as *u8);m=0-m} let t:*u8=sys_mmap(24); 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; let o:*u8=sys_mmap(24); while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
called by 1: main calls 3: g_wsys_mmapsys_write
19func g_row(id: *u8, ok: i64, pass: *i64) -> i64 { g_w(" " as *u8); g_w(id); g_w(": " as *u8); if ok==1 { g_w("OK\n" as *u8); pass[0]=pass[0]+1 } else { g_w("FAIL\n" as *u8) } return 0 }
called by 1: main calls 1: g_w
20func ah_cat(dst: *u8, off: i64, s: *u8) -> i64 { return sj_cat(dst, off, s) }
called by 2: ah_idkeymain calls 1: sj_cat
21func ah_hex(dig: *u8, n: i64, out: *u8) -> i64 { let hx: *u8="0123456789abcdef" as *u8; var i: i64=0; while i<n { out[i*2]=hx[((dig[i] as i64)>>4)&15]; out[i*2+1]=hx[(dig[i] as i64)&15]; i=i+1 } out[n*2]=0 as u8; return n*2 }
called by 1: ah_idkey
23func ah_idkey(to_team: *u8, title: *u8, out: *u8) -> i64
28func ah_has(prefix: *u8, to_team: *u8, title: *u8) -> i64
36func ah_file(prefix: *u8, to_team: *u8, from: *u8, title: *u8, ref: *u8, evid: *u8, prio: *u8, segid: i64, filed: *i64) -> i64
55func main() -> i64