code wiki / (root) / nx_entity_pin.nx

nx_entity_pin.nx

buildroot/runtime/nx_entity_pin.nx

2164 B46 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic entity
docsdependenciesstructsconstsfunctions

about

nx_entity_pin.nx -- ENTITY PIN PROJECTION, the program (S11, 2026-09-17). See nx_entity_pin_lib.nx for the why. usage: nx_entity_pin [dir=<status-prefix>] <entity name> [<entity name> ...] dir= is a PATH PREFIX (default knowledge/status/), so a gate can point it at a fixture prefix; nx_entity_dossier writes <prefix>dossier-<slug>.txt and this program upserts <prefix>entitypin.tsv, the ONE table the search ranker reads (nx_docportal_search_seg, S11). The plan that closes an operator REJECT is two rows: 1 nx_entity_dossier <name> (resolve the alias to the canonical landing, write the dossier) 2 nx_entity_pin <name> (project it into the served table; the ranker reloads on the next query) Exit 0 with every outcome receipted (PIN / MISSING / UNRESOLVED per name, ENTITYPIN totals last); exit 2 = usage. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_entity_pin_lib.nx nx_entity_pin.nx

imports: nx_syscalls.nxnx_entity_pin_lib.nx

imported by: nobody (leaf or entry point)

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

main ep_puts sys_write ep_slen sys_exit_group 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 ↻ epm_starts ep_slen ↻ ep_project sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_mmap ↻ ep_norm ep_lower ep_alnum ep_slug ep_norm ↻ ep_cat ep_read sys_openat_rd sys_mmap ↻ sys_fstat_fd sys_munmap sys_read sys_close

structs

none

consts

15const EPM_STATUS_DEFAULT: *u8 = "knowledge/status/"
16const EPM_DIR_KEY: *u8 = "dir="
17const EPM_EXIT_USAGE: i64 = 2

functions

19func epm_starts(s: *u8, pfx: *u8) -> i64 { var i: i64 = 0; while pfx[i] != (0 as u8) { if s[i] != pfx[i] { return 0 } i = i + 1 } return 1 }
called by 1: main
21func main(argc: i64, argv: *i64) -> i64