code wiki / (root) / nx_dr_chain.nx

nx_dr_chain.nx

buildroot/runtime/nx_dr_chain.nx

3068 B67 linesdepth 4pulls 4 transitivereach 3 importersview sourcekind librarytopic dr
docsdependenciesstructsconstsfunctions

about

nx_dr_chain.nx -- the CAPSTONE: one call runs the whole deep-research loop (DR-CHAIN). Composes the live DR organs end-to-end instead of leaving them as eight separate calls: JUDGE nx_dr_run tokenize each source doc, token-containment vs a SHARED groundtruth-insight set (the DRBench task shape) -> coverage CONDUCT nx_dr_conductor verify-yield -> Elo Tournament-of-Ideas -> opportunity-cost budget dispatch -> which sources earn deep compute SCORE nx_dr_drbench insight-recall over what was actually selected ★NOVEL MEASUREMENT this makes possible: recall_all (if you could read every source) vs recall_selected (what the budget-constrained agent actually got) -- the MEASURED COST of the opportunity-cost constraint, which no single-agent tool reports. Packed self-describing inputs keep every func <=6 params (NAS nx_cc >6-arg skew, seq239). Deterministic/integer. No hardware writes (Rule 26). module: nishi-core.research.dr_chain depends: nx_dr_run.nx, nx_dr_verify.nx, nx_syscalls.nx genealogy_id: coscientist_2026_pipeline + drbench_2026_task_shape

dependencies 3 imports · 2 importers

nx_dr_run.nx nx_dr_verify.nx nx_syscalls.nx nx_dr_chain.nx nx_dr_chain_cli.nx nx_dr_corpus.nx

imports: nx_dr_run.nxnx_dr_verify.nxnx_syscalls.nx

imported by: nx_dr_chain_cli.nxnx_dr_corpus.nx

structs

none

consts

none

functions

25func chain_judge_all(ins_pack: *i64, doc_pack: *i64, threshold: i64, out_sup: *i64, out_cov: *i64) -> i64
called by 2: mainmain calls 1: dv_entail
54func chain_sel_cov(cov: *i64, sel: *i64, ndocs: i64, ni: i64, out_selcov: *i64) -> i64
called by 2: mainmain