code wiki / _hdl_build / nx_pm_sclass.nx

nx_pm_sclass.nx

buildroot/runtime/_hdl_build/nx_pm_sclass.nx

7296 B115 linesdepth 6pulls 13 transitivereach 0 importersview sourcekind tooltopic pm
docsdependenciesstructsconstsfunctions

about

nx_pm_sclass.nx -- THE PM OWNS THE S-CLASS-EXCEED PROGRAM (operator: "get the nishi pm to really own this s class exceeds push ... and iterate with the team"). The PM is Accountable for `coordinate` in the RACI, so it legitimately OWNS this program: for every gap in the grounded maturity audit it (1) looks up the activity-Accountable role, (2) ROUTES the work to that role via pm_route (logs the pmcoord seg-store channel + queues apply-roles), and (3) REGISTERS the item as a LIVE workstream in the WMS registry (empire E-PM) so it shows on nx_ws_board -- then BEATS its own heartbeat so the PM's program stream is the first ALIVE stream (the board's "active all UNKNOWN / doesn't flow" finding starts to move, measurably + live). Source of the gaps = knowledge/library/nishi-sclass-exceed-program-backlog-2026-06-21.txt (foundationed, CID nxc1-aaab312a...). Convergence (does the team SEE what the audit saw?) = nx_pm_sclass_converge. REUSE (rule 15): pm_route/pm_accountable (nx_pm), ws_put_p/ws_member/WS_PREFIX (nx_workstream_store), hb_beat_s (nx_heartbeat_str), rq_cat/rq_n/rq_w (nx_role_queue). Sovereign, idempotent, additive. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_pm.nx nx_ws_cas.nx nx_heartbeat_str.nx nx_pm_sclass.nx

imports: nx_pm.nxnx_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

main pms_item pm_route sys_mmap pm_accountable raci_accountable_for ss_open ss_open2 sys_mmap ↻ rsv_key ss_hget sys_mmap ↻ ss_idx_find rsv_field rsv_streq rsv_has ss_close sys_munmap rq_w sys_write da_slen pm_record sys_mmap ↻ rq_n sys_mmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real rq_cat rs_append rs_lock sys_openat_append sys_flock rs_segcount sys_mmap ↻ ss_manifest rs_unlock sys_flock ↻ sys_close sys_write ↻

structs

none

consts

17const PMS_MAGIC_1024: i64 = 1024
19const PMS_HB: *u8 = "knowledge/status/wms_heartbeat.log"
20const PMS_MEM: *u8 = "nishi-sclass-exceed-program-backlog-2026-06-21"
21const PMS_BACKLOG: *u8 = "knowledge/library/nishi-sclass-exceed-program-backlog-2026-06-21.txt"

functions

26func pms_register(id: *u8, state: *u8, code: *u8) -> i64
77func pms_item(id: *u8, activity: *u8, pillar: *u8, target: *u8, gate: *u8) -> i64
called by 1: main calls 2: pm_routepms_register
85func main() -> i64