code wiki / _hdl_build / _queue_load_gate_authored.nx
_queue_load_gate_authored.nx
buildroot/runtime/_hdl_build/_queue_load_gate_authored.nx
about
_queue_load_gate_authored.nx -- gate for IM-Q1 (the queue on the sovereign
store). Scratch store prefix + scratch queue through the REAL organ elf:
run1: ingest (queue rows + sponsor surfaces) -> store populated
run2: NOTHING changed -> added=0 (idempotency BY CONSTRUCTION)
run3: one row's status flipped in the scratch queue -> added=1 (exactly
the changed row becomes a NEW VERSION under the same aq: key) and
the store's LATEST value for that key reflects the flip -- the
time-travel property the bare TSV can never have.
Markers: QLG-*; final QLGATE row -> knowledge/status/infomgmt_store.log
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_seg_store.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
| 15 | func qlg_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func qlg_f(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 17 | func qlg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;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(fd,bb,k); return 0 } |
| 19 | func qlg_chk(label: *u8, ok: i64, bad: *i64) -> i64 |
| 26 | func qlg_seed(qp: *u8, qb_done: i64) -> i64 |
| 44 | func qlg_run(prefix: *u8, qp: *u8, outpath: *u8) -> i64 |
| 64 | func qlg_has(path: *u8, pat: *u8) -> i64 |
| 88 | func qlg_latest_has(prefix: *u8, key: *u8, pat: *u8) -> i64 |
| 110 | func main() -> i64 |