code wiki / (root) / nx_dr_verify_cli.nx

nx_dr_verify_cli.nx

buildroot/runtime/nx_dr_verify_cli.nx

4205 B79 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic dr
docsdependenciesstructsconstsfunctions

about

nx_dr_verify_cli.nx -- callable MCP/API surface for the citation-entailment verifier (DR-3). Applies the drop-on-fail verification loop to a batch of per-claim entailment scores (from the matcher/judge stage) and emits which claims SURVIVE into context memory, which are DROPPED, and the forced belief-revision rate. nx_dr_verify <threshold_permil> <entail_scores_csv> e.g. nx_dr_verify 500 1000,666,0,800,300 -> {"survived":3,"dropped":2,"belief_revision_permil":400,"claims":[...]} license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_dr_verify.nx nx_itoa_lib.nx nx_syscalls.nx nx_dr_verify_cli.nx

imports: nx_dr_verify.nxnx_itoa_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main vf_puts sys_write vf_key vf_q sys_mmap sys_write ↻ vf_puts ↻ vf_q ↻ sys_exit vf_atoi sys_mmap ↻ vf_parse_csv vf_strlen dv_batch dv_revision_rate vf_num nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

12const K_MAGIC_1024: i64 = 1024

functions

14func vf_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: vf_keymain calls 1: sys_write
15func vf_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 }
called by 2: vf_keymain calls 2: sys_mmapsys_write
16func vf_key(name: *u8) -> i64 { vf_q(); vf_puts(name); vf_q(); vf_puts(":" as *u8); return 0 }
called by 1: main calls 2: vf_qvf_puts
21func vf_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func vf_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: vf_parse_csv
23func vf_atoi(a: *u8) -> i64
called by 1: main
32func vf_parse_csv(s: *u8, out: *i64, maxn: i64) -> i64
called by 1: main calls 1: vf_strlen
45func main(argc: i64, argv: *i64) -> i64