nx_dr_verify_cli.nx
buildroot/runtime/nx_dr_verify_cli.nx
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
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
structs
| none |
consts
| 12 | const K_MAGIC_1024: i64 = 1024 |
functions
| 14 | func 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 } |
| 15 | func vf_q() -> i64 { let b: *u8 = sys_mmap(1); b[0] = 34 as u8; sys_write(1, b, 1); return 0 } |
| 16 | func vf_key(name: *u8) -> i64 { vf_q(); vf_puts(name); vf_q(); vf_puts(":" as *u8); return 0 } |
| 21 | func vf_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func 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 |
| 23 | func vf_atoi(a: *u8) -> i64 called by 1: main |
| 32 | func vf_parse_csv(s: *u8, out: *i64, maxn: i64) -> i64 |
| 45 | func main(argc: i64, argv: *i64) -> i64 |