code wiki / (root) / nx_dr_route.nx

nx_dr_route.nx

buildroot/runtime/nx_dr_route.nx

2061 B45 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic dr
docsdependenciesstructsconstsfunctions

about

nx_dr_route.nx -- SOVEREIGN web-vs-private source ROUTER (DR-7). DRBench (arXiv:2510.00172) measured the dominant failure of every deep-research agent: they "consistently fail to identify when required information is missing from private files and should instead be sourced from the web." This router fixes that BY CONSTRUCTION: it scores each source's coverage of a sub-query and, whenever the private corpus is insufficient, the route ALWAYS involves the web -- it can never dead-end on a private-only answer that isn't there. Integer, deterministic. Imports ONLY nx_syscalls = drift-immune. No hardware writes (Rule 26). module: nishi-core.research.dr_route depends: nx_syscalls.nx genealogy_id: drbench_2026_private_web_routing

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_dr_route.nx nx_dr_route_cli.nx

imports: nx_syscalls.nx

imported by: nx_dr_route_cli.nx

structs

none

consts

none

functions

16func rt_coverage(hits: i64, total: i64) -> i64
called by 1: main
25func rt_route(priv_cov: i64, web_cov: i64, priv_thr: i64, web_thr: i64) -> i64
called by 1: main
38func rt_uses_web(code: i64) -> i64 { if code == 0 { return 0 } else { return 1 } }
called by 1: main
41func rt_uses_private(code: i64) -> i64
called by 1: main