code wiki / _hdl_build / nx_survey_ws_register.nx
nx_survey_ws_register.nx
buildroot/runtime/_hdl_build/nx_survey_ws_register.nx
about
nx_survey_ws_register.nx -- register the SURVEY/PULSE arc as a LIVE workstream in the WMS registry
(orchestration over contention: the machine SSOT owns the stream, the board shows it ALIVE, the
dispatcher can machine-verify it via code_link). Exact clone of nx_project_ws_register (pwr_ ->
swr_): per-prefix wlock across the ws:ids RMW + ws:<id> write; idempotent; READBACK-verified.
code_link = nx_survey_stats_gate (47/47 KAT+adversary gate = the machine-verifiable proof).
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_ws_cas.nxnx_heartbeat_str.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
| 9 | const SWR_MAGIC_1024: i64 = 1024 |
| 11 | const SWR_ID: *u8 = "SURVEY-PULSE-01" |
| 12 | const SWR_MEM: *u8 = "project-nishi-survey-pulse-2026-07-10" |
| 13 | const SWR_HB: *u8 = "knowledge/status/wms_heartbeat.log" |
functions
| 15 | func swr_puts(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 |
| 16 | func swr_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o } called by 1: swr_register |
| 17 | func swr_n(dst: *u8, off: i64, v: i64) -> i64 called by 1: swr_register |
| 30 | func swr_register(id: *u8, state: *u8, code: *u8) -> i64 |
| 95 | func main() -> i64 |