code wiki / _hdl_build / nx_acct_admin_handoff.nx
nx_acct_admin_handoff.nx
buildroot/runtime/_hdl_build/nx_acct_admin_handoff.nx
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
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
structs
| none |
consts
| 14 | const AH_MAGIC_2048: i64 = 2048 |
| 15 | const AH_MAGIC_8192: i64 = 8192 |
| 52 | const AH_FROM: *u8 = "acct-admin-32992a14" as *u8 |
| 53 | const AH_Q: *u8 = "knowledge/store/coord-" as *u8 // the sovereign seg_store prefix (NOT a .tsv) |
functions
| 17 | func g_w(s: *u8) -> i64 { return sj_puts(s) } |
| 18 | func 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 } |
| 19 | func 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 } |
| 20 | func ah_cat(dst: *u8, off: i64, s: *u8) -> i64 { return sj_cat(dst, off, s) } |
| 21 | func 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 |
| 23 | func ah_idkey(to_team: *u8, title: *u8, out: *u8) -> i64 |
| 28 | func ah_has(prefix: *u8, to_team: *u8, title: *u8) -> i64 |
| 36 | func ah_file(prefix: *u8, to_team: *u8, from: *u8, title: *u8, ref: *u8, evid: *u8, prio: *u8, segid: i64, filed: *i64) -> i64 |
| 55 | func main() -> i64 |