nx_libindex.nx
buildroot/runtime/nx_libindex.nx
about
nx_libindex.nx -- CLI front door for the library discovery index (PG1, procgen.plan, 2026-08-24).
Thin main only. Every function lives in nx_libindex_lib.nx so nx_libindex_gate can compose them IN-PROCESS
rather than forking a deployed binary: a gate that rebuilds the test but not the subject proves nothing,
and this way there is no subject to rebuild.
WHY THIS ORGAN EXISTS: nx_capsearch ranks REGISTERED MCP TOOLS, and a library has no registration row by
design. So the one instrument CLAUDE.md orders run before building anything is structurally blind to every
library in the estate -- which is how eight duplicate isqrt copies came to be written beside each other.
THE INDEX IS A SOVEREIGN ROW PLANE at knowledge/store/libindex- (never a .tsv file in the plane -- that
shape was retired 2026-08-13). The scratch descriptor the walker streams into is organ-owned and transient.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_libindex_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
| none |
functions
| 17 | func li_plane() -> *u8 { return "knowledge/store/libindex-" as *u8 } called by 1: main |
| 18 | func li_scratch() -> *u8 { return "/tmp/nx_libindex.scratch" as *u8 } called by 1: main |
| 20 | func li_usage() -> i64 |
| 32 | func main(argc: i64, argv: *i64) -> i64 |