code wiki / _hdl_build / nx_work_predict.nx

nx_work_predict.nx

buildroot/runtime/_hdl_build/nx_work_predict.nx

2972 B62 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic work
docsdependenciesstructsconstsfunctions

about

nx_work_predict.nx -- FUTURE-axis runner: read capability_ladder.tsv and print the ADJACENT-POSSIBLE frontier (probable-next work: prerequisites DONE, node not yet built), ranked by layer (nearest the hardware root first = the genuine growth front). Prints + writes a durable report for the planning surface. Grounded entirely in the ladder data -- no model prose. Sovereign. nx_work_predict [ladder.tsv] license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_work_predict_lib.nx nx_work_predict.nx

imports: nx_syscalls.nxnx_work_predict_lib.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 wpr_read sys_openat_rd sys_read sys_close wpp sys_write sys_exit wp_predict sys_mmap ↻ wp_build_doneset sys_mmap ↻ wp_field wp_streq wp_field ↻ wp_classify wp_streq ↻ sys_mmap ↻ jx_len wp_is_done sys_mmap ↻ jx_len ↻ jx_find jx_len ↻ wp_first_dep wp_atoi wp_cat wp_catn sys_mmap ↻ wpn sys_mmap ↻ sys_write ↻ sys_openat_wr sys_write ↻ wpr_strlen sys_close ↻

structs

none

consts

10const WPR_LADDER: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/knowledge/registry/capability_ladder.tsv"
11const WPR_REPORT: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/worklog/predict_next.txt"
12const WPR_BUFCAP: i64 = 4194304 // 4MB: ladder is ~40KB, ample headroom
13const WPR_OUTCAP: i64 = 1048576

functions

15func wpp(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
16func wpn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
25func wpr_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
34func wpr_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
36func main(argc: i64, argv: *i64) -> i64