code wiki / (root) / nx_goalmap.nx

nx_goalmap.nx

buildroot/runtime/nx_goalmap.nx

6243 B117 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind tooltopic goalmap
docsdependenciesstructsconstsfunctions

about

nx_goalmap.nx -- CLI over nx_goalmap_lib (seat-system, 2026-09-05): the estate maps an operator goal onto the boards from DATA so a seat does not spend frontier tokens re-reading them. Everything is in the lib; this file only parses argv and writes the capped digest. nx_goalmap <domains-csv> <word> [word...] nx_goalmap record [conf] -> EC38 (2026-09-06): the estate mines its OWN RECORD for compare-worthy work no board carries. Refreshes the invoked-tool set from the action journal (forks nx_actlog freq), then gm_record_gaps over the DECLARED source set (knowledge/recordgaps.conf) writes the candidate plane knowledge/store/comparegaps- and prints a JSON whose partition sums exit 0 digest written | 2 usage | 3 no domain readable | 4 duplicate rung id (refused by name) license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_sovjson_lib.nx nx_goalmap_lib.nx nx_tool_run.nx nx_goalmap.nx

imports: nx_syscalls.nxnx_sovjson_lib.nxnx_goalmap_lib.nxnx_tool_run.nx

imported by: nobody (leaf or entry point)

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

main gm_str_eq gm_lc gmc_refresh_invoked sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gr_conf_load sys_mmap ↻ gm_read sys_openat_rd sys_lseek sys_read sys_close sj_le gm_pcol sj_lit_eq gr_atoi gmc_actlog gmc_exists sys_openat_rd ↻ sys_close ↻ sj_cat tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close ↻

structs

none

consts

16const GMC_EXIT_USAGE: i64 = 2
17const GMC_NL: i64 = 10
18const GMC_STDOUT: i64 = 1
19const GMC_STDERR: i64 = 2
20const GMC_FREQ_TOPN: *u8 = "8192" // rows the freq refresh asks for; the miner's own soft cap still bounds the document
21const GMC_FREQ_CAP: i64 = 4194304
22const GMC_MODE644: i64 = 420

functions

24func gmc_nl(fd: i64) -> i64 { let b: *u8 = sys_mmap(4); b[0] = GMC_NL as u8; sys_write(fd, b, 1); return 0 }
called by 1: main calls 2: sys_mmapsys_write
25func gmc_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 }
called by 1: gmc_actlog calls 2: sys_openat_rdsys_close
27func gmc_actlog(out: *u8) -> i64
37func gmc_refresh_invoked(conf: *u8) -> i64
72func main(argc: i64, argv: *i64) -> i64