nx_dr_route_cli.nx
buildroot/runtime/nx_dr_route_cli.nx
about
nx_dr_route_cli.nx -- callable MCP/API surface for the web-vs-private router (DR-7).
Given a sub-query's coverage in the private corpus and the web, decides where to source
the answer -- and never dead-ends on private when it is insufficient.
nx_dr_route <priv_thr> <web_thr> <priv_match> <web_match> <total> (thresholds & counts, permille via coverage)
e.g. nx_dr_route 500 500 1 4 5 -> {"private_coverage_permil":200,"route":"WEB_ONLY","uses_web":1,...}
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_dr_route.nxnx_syscalls.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
| none |
functions
| 10 | func rr_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func rr_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 } |
| 12 | func rr_key(name: *u8) -> i64 { rr_q(); rr_puts(name); rr_q(); rr_puts(":" as *u8); return 0 } |
| 13 | func rr_num(v: i64) -> i64 |
| 25 | func rr_atoi(a: *u8) -> i64 called by 1: main |
| 34 | func rr_label(code: i64) -> i64 |
| 42 | func main(argc: i64, argv: *i64) -> i64 |