code wiki / _hdl_build / nx_estate_search.nx
nx_estate_search.nx
buildroot/runtime/_hdl_build/nx_estate_search.nx
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
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
structs
| none |
consts
| 13 | const 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
| 15 | func es_puts(s: *u8) -> i64 { sys_write(1, s, es_slen(s)); return 0 } |
| 17 | func main(argc: i64, argv: *i64) -> i64 |