code wiki / (root) / nx_dr_chain_gate.nx

nx_dr_chain_gate.nx

buildroot/runtime/nx_dr_chain_gate.nx

5748 B131 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic dr
docsdependenciesstructsconstsfunctions

about

nx_dr_chain_gate.nx -- KAT + neg-controls for the end-to-end deep-research chain (DR-CHAIN). Scenario: 3 groundtruth insights, 3 source docs with different coverage and cost. doc0 "alpha one beta two" covers insight0+1 cost 2 doc1 "gamma three extra words here" covers insight2 cost 3 doc2 "alpha one" covers insight0 cost 1 Reading everything would recall 3/3 = 1000. Under budget 3 the conductor picks doc0+doc2 (best value) and drops doc1 -- the ONLY source for insight2 -- so recall_selected = 666. That delta IS the measured cost of the opportunity-cost constraint. Neg-controls prove the drop is budget-caused (unlimited budget restores 1000) and that selecting nothing scores 0.

dependencies 5 imports · 0 importers

nx_dr_chain.nx nx_dr_run.nx nx_dr_conductor.nx nx_dr_drbench.nx nx_gate_verdict.nx nx_dr_chain_gate.nx

imports: nx_dr_chain.nxnx_dr_run.nxnx_dr_conductor.nxnx_dr_drbench.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ drr_tokenize drr_hash drr_strlen chain_judge_all dv_entail dv_contains gv_check gv_puts ↻ chain_sel_cov dr_frac dr_sum cond_run cond_quality el_make_etab sys_mmap ↻ sys_mmap ↻ el_run_tournament el_expected el_update ocm_priority

structs

none

consts

none

functions

16func main() -> i64