code wiki / _hdl_build / nx_rag_ws_register.nx
nx_rag_ws_register.nx
buildroot/runtime/_hdl_build/nx_rag_ws_register.nx
about
nx_rag_ws_register.nx -- register the K3-INGEST growth arc's workstreams into the WMS registry SSOT
(knowledge/store/ws-) so the resume manifest + other empires + AGENTS see them (operator's "get us to
workstreams and agents"). Additive+idempotent (rule #10): read ws:ids, append iff absent, commit
ws:<id> records, verify by READBACK. Mirrors nx_iolayer_ws_register (canonical writer template).
RAG-GROWTH (E-PLATFORM): sovereign RAG over the verified-organ corpus for the forge --
nx_code_index retriever + nx_forge_rag top-k pack injection LIVE; value A/B pending.
GROWTH-LOOP-TRAIN (E-PLATFORM): weight-level learning from the compile-verified corpus (integer
autograd/LoRA/distill/gguf-writer exist, UNWIRED + compute-blocked = the big rock).
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_workstream_store.nxnx_seg_store.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 RW_IDSBUF: i64 = 262144 |
| 15 | const RW_STREAMS: i64 = 2 |
| 16 | const RW_ASCII_0: i64 = 48 |
functions
| 18 | func rw_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 19 | func rw_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: rw_rec |
| 21 | func rw_addid(idsbuf: *u8, olenp: *i64, id: *u8) -> i64 |
| 30 | func rw_rec(w: *i64, key: *u8, val: *u8) -> i64 { return ss_add(w, 1, key, val, rw_len(val)) } |
| 32 | func main() -> i64 |