code wiki / _hdl_build / nx_pm_board.nx
nx_pm_board.nx
buildroot/runtime/_hdl_build/nx_pm_board.nx
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
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
structs
| none |
consts
| 21 | const PB_MAGIC_4096: i64 = 4096 |
| 23 | const PB_CAP: i64 = 1048576 |
| 24 | const PB_OUT: i64 = 262144 |
| 25 | const PB_NL: i64 = 10 |
| 26 | const PB_TAB: i64 = 9 |
| 27 | const PB_MAXCOL: i64 = 16 |
| 28 | const PB_PAIR: i64 = 2 |
| 29 | const PB_SPB: i64 = 256 |
| 30 | const PB_STDERR: i64 = 2 |
| 31 | const PB_EXIT_IO: i64 = 1 |
| 32 | const PB_ZERO: i64 = 48 |
| 33 | const PB_NINE: i64 = 57 |
| 34 | const PB_B10: i64 = 10 |
| 35 | const PB_MAXLANE: i64 = 24 |
| 36 | const PB_INCSEV: i64 = 7 |
functions
| 38 | func pb_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 39 | func pb_werr(s: *u8) -> i64 { sys_write(PB_STDERR, s, pb_slen(s)); return 0 } |
| 40 | func pb_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64 |
| 55 | func pb_int(q: *u8, a: i64, b: i64) -> i64 |
| 61 | func pb_sl_eq(q: *u8, a: i64, b: i64, s: *u8) -> i64 |
| 68 | func pb_sl_eq2(q: *u8, a: i64, b: i64, r: *u8, c: i64, d: i64) -> i64 called by 1: main |
| 74 | func pb_legacy(q: *u8, ls: i64, le: i64, sp: *i64) -> i64 |
| 81 | func 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 |
| 83 | func pb_raw(d: *u8, o: i64, q: *u8, a: i64, b: i64) -> i64 called by 1: main |
| 89 | func pb_esc(d: *u8, o: i64, q: *u8, a: i64, b: i64) -> i64 called by 1: main |
| 104 | func pb_maturity() -> i64 |
| 126 | func main(argc: i64, argv: *i64) -> i64 |