code wiki / _hdl_build / nx_pm_choose.nx

nx_pm_choose.nx

buildroot/runtime/_hdl_build/nx_pm_choose.nx

5737 B68 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic pm
docsdependenciesstructsconstsfunctions

about

nx_pm_choose.nx -- the PM CHOOSES the next priority (operator: "let them choose whats the priorities and work with you"). Composes nx_pm_decision_matrix over the CURRENT open backlog: WSJF = Cost-of-Delay/effort, confidence-adjusted, win-win-win (no stakeholder regression), READY-gated (blocked items can't be picked). The PM ranks + auto-picks the top READY item and routes it (TEAM-OWNED vs needs-Claude-TUTOR); Claude then partners on whatever it chose. The choice is the team's, not Claude's. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_pm_decision_matrix.nx nx_pm_review_log.nx nx_syscalls.nx nx_pm_choose.nx

imports: nx_pm_decision_matrix.nxnx_pm_review_log.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 dm_cost_of_delay dm_wsjf dm_no_regression dm_ready pc_puts sys_write dm_next_pick pc_n pc_fn sys_mmap ↻ sys_write ↻ pm_open sys_openat_append pm_flag pm_w sys_write ↻ pm_cstr_len sys_close sys_exit

structs

none

consts

14const W_HW: i64 = 2
15const W_SW: i64 = 3
16const W_USER: i64 = 4
17const W_TIME: i64 = 3
18const NI: i64 = 10

functions

10func pc_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 calls 1: sys_write
11func pc_fn(fd: i64, v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1}; sys_write(fd,b,k); return 0 }
called by 1: pc_n calls 2: sys_mmapsys_write
12func pc_n(v: i64) -> i64 { return pc_fn(1, v) }
called by 1: main calls 1: pc_fn
20func main() -> i64