code wiki / _hdl_build / nx_worklog_stop.nx
nx_worklog_stop.nx
buildroot/runtime/_hdl_build/nx_worklog_stop.nx
about
nx_worklog_stop.nx -- the SINGLE-organ Stop-hook (and cron) target: do BOTH halves of "keep the
record current" in one silent sovereign process, so the hook command is just
wsl --cd <repo> -- ./_offc/nx_worklog_stop.elf
with NO shell glue, NO nested quoting, NO 3rd-party launcher:
1. CAPTURE this turn's actions from the session transcript (stdin "transcript_path" | newest).
2. REFRESH the resume-manifest front door from disk so the loss-detector can never go stale.
Idempotent (per-transcript cursor) and SILENT (zero stdout -> zero model tokens). This is the live
heartbeat of the PRESENT axis: every turn, work is captured AND the front door is regenerated.
Sovereign: nx_worklog_ingest_lib (capture) + nx_ws_index_lib (manifest emit). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_worklog_ingest_lib.nxnx_ws_index_lib.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
| 14 | const WLS_PROJDIR: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder" |
| 15 | const WLS_CURSORS: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/worklog/cursors" |
| 16 | const WLS_MEMDIR: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory" |
| 17 | const WLS_MANIFEST: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/workstream-resume-manifest.md" |
functions
| 19 | func main(argc: i64, argv: *i64) -> i64 |