code wiki / _hdl_build / nx_site_factory_ws_register.nx
nx_site_factory_ws_register.nx
buildroot/runtime/_hdl_build/nx_site_factory_ws_register.nx
about
nx_site_factory_ws_register.nx -- register the SITE FACTORY arc into the WMS registry SSOT
(knowledge/store/ws-, via nx_workstream_store / nx_seg_store) so the resume manifest + other empires SEE
it. Additive + idempotent (rule 10 / 13): reads the LIVE ws:ids index (~1265 streams) and appends our id
ONLY IF absent (ws_member dedup -- it NEVER clobbers the enumeration), then commits the ws:<id> record and
verifies read-back. Mirrors nx_hub_ws_register (the safe read-modify-write registrar) -- NOT
nx_workstream_seed, whose static 15-id ws:ids would shrink the board and vanish ~1250 streams. Empire
E-WEB (this arc EMITS web properties: andelinwest.com, nishifamily.com, ...). 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
| 11 | const K_MAGIC_262144: i64 = 262144 |
functions
| 13 | 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 } |
| 14 | 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 |
| 17 | func rw_addid(idsbuf: *u8, olenp: *i64, id: *u8) -> i64 |
| 27 | func rw_rec(w: *i64, key: *u8, val: *u8) -> i64 { return ss_add(w, 1, key, val, rw_len(val)) } |
| 29 | func main() -> i64 |