code wiki / _hdl_build / nx_iolayer_ws_register.nx

nx_iolayer_ws_register.nx

buildroot/runtime/_hdl_build/nx_iolayer_ws_register.nx

3436 B63 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_workstream_store.nx nx_seg_store.nx nx_syscalls.nx nx_iolayer_ws_register.nx

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

main ss_begin ss_begin_cap sys_mmap sys_mmap ↻ ws_get ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_munmap ss_scan_seglist ss_len sys_mmap ↻ ss_cat ↻ ss_readall ↻ ss_r32 iw_addid ws_member ws_len ss_add ss_add2 ss_w32 ss_len ↻ iw_rec ss_add ↻ iw_len ws_seg_next ss_next_segid sys_mmap ↻ ss_cat ↻ ss_readall ↻ ss_segid_ok ss_commit ss_segid_ok ↻

structs

none

consts

14const IW_IDSBUF: i64 = 262144 // ws:ids working copy (matches the template's sizing)
15const IW_STREAMS: i64 = 2 // streams registered by this organ
16const IW_ASCII_0: i64 = 48 // '0' (single-digit verified-count print)

functions

18func 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 }
called by 1: main calls 1: sys_write
19func 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
22func iw_addid(idsbuf: *u8, olenp: *i64, id: *u8) -> i64
called by 1: main calls 1: ws_member
31func iw_rec(w: *i64, key: *u8, val: *u8) -> i64 { return ss_add(w, 1, key, val, iw_len(val)) }
called by 1: main calls 2: ss_addiw_len
33func main() -> i64