nx_entity_pin.nx
buildroot/runtime/nx_entity_pin.nx
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
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
structs
| none |
consts
| 15 | const EPM_STATUS_DEFAULT: *u8 = "knowledge/status/" |
| 16 | const EPM_DIR_KEY: *u8 = "dir=" |
| 17 | const EPM_EXIT_USAGE: i64 = 2 |
functions
| 19 | func 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 |
| 21 | func main(argc: i64, argv: *i64) -> i64 |