code wiki / _hdl_build / nx_work_retro.nx

nx_work_retro.nx

buildroot/runtime/_hdl_build/nx_work_retro.nx

3403 B66 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic work
docsdependenciesstructsconstsfunctions

about

nx_work_retro.nx -- PAST-axis runner: sweep the active organ dir and report any RECENT .nx that is unaccounted-for in the durable record (no memory doc + no worklog mention) = candidate uncaptured work. Unlike the silent capture organs this one PRINTS (it is an analysis tool the operator/PM runs on demand) AND writes a durable report so the planning surface can read it. nx_work_retro [sweepdir] [window_sec] defaults: sweepdir = runtime/_hdl_build, window = 7 days. Sovereign. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_work_retro_lib.nx nx_work_retro.nx

imports: nx_syscalls.nxnx_work_retro_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main wrr_atoi sys_now_realtime_sec sys_mmap sys_clock_gettime_real sys_mmap ↻ wr_load_corpus sys_openat_rd sys_mmap ↻ wme_getdents wr_is_md wme_len wme_join wme_read sys_openat_rd ↻ sys_read sys_close sys_close ↻ wr_sweep sys_openat_rd ↻ sys_mmap ↻ wme_getdents ↻ wr_is_nx wme_len ↻ wme_join ↻ sys_fstatat wr_strip_nx wme_len ↻ wr_classify wme_find wme_len ↻ wr_is_helper wr_ends_with wme_len ↻ sys_close ↻ wrp sys_write wrn sys_mmap ↻ sys_write ↻

structs

none

consts

9const WRR_MAGIC_262144: i64 = 262144
11const WRR_SWEEPDIR: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/_hdl_build"
12const WRR_MEMDIR: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory"
13const WRR_WORKLOG: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/worklog/worklog.tsv"
14const WRR_REPORT: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/worklog/retro_flagged.txt"
15const WRR_WINDOW: i64 = 604800 // 7 days

functions

17func wrp(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
18func wrn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
27func wrr_atoi(s: *u8) -> i64
called by 1: main
32func wrr_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
34func main(argc: i64, argv: *i64) -> i64