code wiki / _hdl_build / nx_iolayer_ws_register.nx
nx_iolayer_ws_register.nx
buildroot/runtime/_hdl_build/nx_iolayer_ws_register.nx
about
nx_iolayer_ws_register.nx -- register this arc's workstreams into the WMS registry SSOT
(knowledge/store/ws-), so the resume manifest + other empires + AGENTS see them (the operator's
"get it to workstreams and agents"). Additive+idempotent (rule #10): reads the live ws:ids index,
appends our ids iff absent, commits our ws:<id> records, verifies by READBACK. Mirrors
nx_hub_ws_register (the canonical writer template). Streams:
IO-LAYER-SOTA (E-PLATFORM): sovereign agent IO surface -- nx_fs read/ls + nx_fs_write write/edit,
MCP-live + cap-partitioned + graded EXCEED. last_touched=0 per the template convention.
BENCH-COVERAGE (E-DOCTRINE): the standing external-oracle grading discipline (12/52, registry+laps).
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 IW_IDSBUF: i64 = 262144 // ws:ids working copy (matches the template's sizing) |
| 15 | const IW_STREAMS: i64 = 2 // streams registered by this organ |
| 16 | const IW_ASCII_0: i64 = 48 // '0' (single-digit verified-count print) |
functions
| 18 | func iw_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 iw_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: iw_rec |
| 22 | func iw_addid(idsbuf: *u8, olenp: *i64, id: *u8) -> i64 |
| 31 | func iw_rec(w: *i64, key: *u8, val: *u8) -> i64 { return ss_add(w, 1, key, val, iw_len(val)) } |
| 33 | func main() -> i64 |