code wiki / (root) / nx_diora_live_reach_guarded.nx

nx_diora_live_reach_guarded.nx

buildroot/runtime/nx_diora_live_reach_guarded.nx

5797 B120 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tooltopic diora
docsdependenciesstructsconstsfunctions

about

nx_diora_live_reach_guarded.nx -- SREACH R1, HANG-PROOF. The own-crawl -> own-index reach run, but every per-URL fetch is a CHILD bounded by nx_guarded_run: a host that hangs the validated-HTTPS read loop (e.g. wikipedia) is SIGKILLed at the deadline and recorded BLOCKED-TIMEOUT, and the crawl CONTINUES to the next seed -- the operator cardinal "the team handles issues like this hang" made operational in the reach pipeline. Reach is then measured over whatever OUR engine actually fetched + indexed (never faked). build child first: nx_sov_build_run _dlr_fetch_one (-> /tmp/_dlr_fetch_one.sov.elf)

dependencies 5 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_guarded_run.nx nx_bm25.nx nx_search_inverted.nx nx_diora_live_reach_guarded.nx

imports: nx_str.nxnx_syscalls.nxnx_guarded_run.nxnx_bm25.nxnx_search_inverted.nx

imported by: nobody (leaf or entry point)

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

main gp sys_write nx_str_len sys_mmap sys_openat_wr nx_inv_new gn sys_write ↻ sys_mmap ↻ dlrg_seed dlrg_out sys_now_ms sys_mmap ↻ sys_clock_gettime_mono nx_guarded_run sys_fork sys_dup3 sys_execve sys_exit sys_mmap ↻ sys_now_ms ↻ sys_wait4 nx_kill sys_sleep_ms sys_mmap ↻ sys_munmap read_all sys_openat_rd sys_read sys_close nx_inv_index_row nx_inv_is_token_char nx_inv_hash_bytes_lower nx_inv_add_posting nx_inv_count_token nx_inv_slot_at nx_inv_slot_hash nx_inv_slot_set_hash nx_inv_slot_set_postings_c

structs

none

consts

14const NX_MAGIC_524288: i64 = 524288
16const NX_DLRG_SEEDS: i64 = 4
17const NX_DLRG_DEADLINE: i64 = 18000 // ms per fetch; a hung host is reaped here, not wedged
18const NX_DLRG_GATE_MIN: i64 = 1 // honest floor: prove >=1 real source reached without any wedge

functions

20func gp(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 1: main calls 2: sys_writenx_str_len
21func gn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
29func dlrg_seed(e: i64) -> *u8
called by 1: main
36func dlrg_out(e: i64) -> *u8
44func read_all(path: *u8, buf: *u8, cap: i64) -> i64
58func main() -> i64