code wiki / _hdl_build / nx_pm_board.nx

nx_pm_board.nx

buildroot/runtime/_hdl_build/nx_pm_board.nx

16034 B380 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind tooltopic pm
docsdependenciesstructsconstsfunctions

about

nx_pm_board.nx -- THE PM DASHBOARD (operator 2026-07-18: "the pm to give us based on my executive, management, and operations layer a dashboard and feedback ... oversight into what work is happening and the return on investment ... with non fake numbers but real estimates"). THREE LAYERS, all DERIVED from the sovereign planes (never asserted): executive : frontier done/total + open-debt posture + sev>=7 incidents + maturity permil (read from the rollup's durable log; unreadable -> -1 flagged, never invented) management: per RACI lane (raci- plane): open debts / open work / ready frontier rows owned by R operations: mutation activity per plane (hist row counts = provenanced writes = the real work log) roi : NON-FAKE BY CONSTRUCTION -- measured counts (debts closed, work closed, frontier done, plane mutations) + assumption rows from the roi- plane {id metric value basis note}; derived figures computed ONLY from rows whose basis != SET-ME; SET-ME rows are emitted under needs_decision (feedback TO the executive) instead of being faked. nx_pm_board [frontierpfx] [debtpfx] [workpfx] [racipfx] [roipfx] -> JSON on stdout Debt rows are schema-aware per row (legacy epoch 5-col sev@1 vs v2 7-col sev@2/status@3/owner@4). Fail-closed: unseeded frontier or debt plane -> error exit (no dashboard over missing data). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 4 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_deploy_lib.nx nx_syscalls.nx nx_pm_board.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_deploy_lib.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 sys_mmap sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free sys_munmap ↻ sys_munmap ↻ ssc_retire_handle

structs

none

consts

21const PB_MAGIC_4096: i64 = 4096
23const PB_CAP: i64 = 1048576
24const PB_OUT: i64 = 262144
25const PB_NL: i64 = 10
26const PB_TAB: i64 = 9
27const PB_MAXCOL: i64 = 16
28const PB_PAIR: i64 = 2
29const PB_SPB: i64 = 256
30const PB_STDERR: i64 = 2
31const PB_EXIT_IO: i64 = 1
32const PB_ZERO: i64 = 48
33const PB_NINE: i64 = 57
34const PB_B10: i64 = 10
35const PB_MAXLANE: i64 = 24
36const PB_INCSEV: i64 = 7

functions

38func pb_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: pb_werrpb_sl_eqmain
39func pb_werr(s: *u8) -> i64 { sys_write(PB_STDERR, s, pb_slen(s)); return 0 }
called by 1: main calls 2: sys_writepb_slen
40func pb_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64
called by 2: pb_legacymain
55func pb_int(q: *u8, a: i64, b: i64) -> i64
called by 2: pb_maturitymain
61func pb_sl_eq(q: *u8, a: i64, b: i64, s: *u8) -> i64
called by 1: main calls 1: pb_slen
68func pb_sl_eq2(q: *u8, a: i64, b: i64, r: *u8, c: i64, d: i64) -> i64
called by 1: main
74func pb_legacy(q: *u8, ls: i64, le: i64, sp: *i64) -> i64
called by 1: main calls 1: pb_cols
81func pb_lines(q: *u8, n: i64) -> i64 { var k: i64 = 0; var i: i64 = 0; while i < n { if q[i] == (PB_NL as u8) { k = k + 1 } i = i + 1 } return k }
called by 1: main
83func pb_raw(d: *u8, o: i64, q: *u8, a: i64, b: i64) -> i64
called by 1: main
89func pb_esc(d: *u8, o: i64, q: *u8, a: i64, b: i64) -> i64
called by 1: main
104func pb_maturity() -> i64
called by 1: main calls 3: sys_mmapdp_readpb_int
126func main(argc: i64, argv: *i64) -> i64