code wiki / _hdl_build / nx_estate_search.nx

nx_estate_search.nx

buildroot/runtime/_hdl_build/nx_estate_search.nx

7970 B128 linesdepth 8pulls 20 transitivereach 0 importersview sourcekind tooltopic estate
docsdependenciesstructsconstsfunctions

about

nx_estate_search.nx -- SEARCH THE ESTATE'S OWN CORPUS from the sovereign surface (search rungs E1/E4, 2026-09-14). The estate shard (dp-estate-pub-, filled by `nx_corpus_ingest tree <root> estate estate://<root>/`) holds the code base, the boards and the confs as documents. No public scope resolves to that domain, so the ONLY door is this organ over MCP behind a cap: an agent in the swarm asks it the way it asks nx_txtscan, and the public /search never sees the estate. The query itself is nx_estate_search_lib.es_query (gated in-process on a fixture shard). usage: nx_estate_search <term> [term ...] [n=<top>] [domain=<shard domain, default estate>] One line per hit (rank TAB score TAB url TAB snippet), then LAST the summary `ESTATE-SEARCH q=<q> hits=<n> top=<top> shard=<prefix> segments=<k>` so a positional reader finds it. An unreadable shard exits 3 and names the ingest. domain= exists so a gate can drive the organ on a fixture shard; every domain it can name is one some ingest already made searchable, so it opens no door the estate had not opened. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_estate_search_lib.nx nx_estate_search.nx

imports: nx_estate_search_lib.nx

imported by: nobody (leaf or entry point)

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

main es_puts es_slen es_starts es_atoi es_slen ↻ dsv_scopes_conf_load ar_resolve ar_resolve_with ar_exists sys_openat_rd sys_close 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 nxa_dump_sizes ar_read sys_openat_rd ↻ sys_read sys_close ↻ dsv_box ss_readall sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read ↻ sys_close ↻ dsv_scope_lookup dsv_scopes_conf_load ↻ dsv_scx_tok_eq dsv_slen

structs

none

consts

13const ES_OUTCAP: i64 = 131072 // fifty hits of a 1 KB url and a 160 B snippet fit with room; es_query stops early otherwise

functions

15func es_puts(s: *u8) -> i64 { sys_write(1, s, es_slen(s)); return 0 }
called by 1: main calls 1: es_slen
17func main(argc: i64, argv: *i64) -> i64