code wiki / _hdl_build / nx_estate_search_gate.nx

nx_estate_search_gate.nx

buildroot/runtime/_hdl_build/nx_estate_search_gate.nx

18074 B231 linesdepth 8pulls 22 transitivereach 0 importersview sourcekind gate/prooftopic estate
docsdependenciesstructsconstsfunctions

about

nx_estate_search_gate.nx -- teeth for the estate query (nx_estate_search_lib.es_query) on a fixture shard it writes itself through the seg store: two documents under a fixture domain, one with a url row and one without, one carrying control bytes; then (E1b) a definer and a caller of one identifier, where BM25 alone ranks the caller first and the definition tier ranks the definer first. No fork, no live shard. Declared in knowledge/organ_gate.conf because the one-segment-strip convention resolved nx_estate_search to nx_estate_gate -- the WILLS gate -- on the first ship, a name classifier keying on a prefix. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_estate_search_lib.nx nx_gate_verdict.nx nx_uxf_decode.nx nx_estate_search_gate.nx

imports: nx_estate_search_lib.nxnx_gate_verdict.nxnx_uxf_decode.nx

imported by: nobody (leaf or entry point)

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

main gv_puts sys_write gv_ctr 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 ↻ dss_prefix ss_next_segid ss_max_segid sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_segid_ok ss_begin ss_begin_cap sys_mmap ↻ dss_set_scope_prefix es_slen es_query dss_prefix ↻ es_cat ss_open2

structs

none

consts

11const GE_DOMAIN: *u8 = "esgatetest"
12const GE_NONE: *u8 = "esgatenone-never-ingested"
13const GE_OUTCAP: i64 = 16384
14const GE_TOP: i64 = 5
15const GE_PREFIXBUF: i64 = 512
16const GE_KEYBUF: i64 = 64
17const GE_BOX: i64 = 16
18const GE_ONE: i64 = 1

functions

20func ge_write_doc(w: *i64, prefix: *u8, txt: *u8, url: *u8) -> i64
36func ci_hash_like(s: *u8, n: i64) -> i64
called by 1: ge_write_doc
44func ge_first_line_has(out: *u8, n: i64, needle: *u8) -> i64
calls 1: es_find
56func ge_bytes_eq(a: *u8, b: *u8, n: i64) -> i64
61func ge_field_is(keys: *i64, vals: *i64, n: i64, key: *u8, val: *u8) -> i64
calls 1: cc_cmp
70func main() -> i64