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 orphan librarytopic 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)

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