code wiki / (root) / nx_research_unified.nx

nx_research_unified.nx

buildroot/runtime/nx_research_unified.nx

4771 B86 linesdepth 13pulls 28 transitivereach 3 importersview sourcekind librarytopic research
docsdependenciesstructsconstsfunctions

about

nx_research_unified.nx -- THE unified sovereign researcher: composes S1 (synthesis) + S1<->S2 (numeric self-verify) + S3 (grounded report) + S4 (investigation loop) into ONE research VERDICT. nxr_assess grades a synthesized report body DETERMINISTICALLY ($0): report-grounding (S3 rp_report_grounded) + numeric self-verification (S1<->S2 rvs_verify_answer) -> open gaps -> investigation status (S4 riv_next) -> verdict: PUBLISH (0 gaps: grounded + every numeric claim confirmed), CONTINUE (gaps remain, budget left -> investigate again), STOP-INCOMPLETE (gaps remain but budget/stall -> ship honestly with the open gaps named). nxr_research runs the whole thing end-to-end with the model (rp_report synthesizes each section). Five rungs, one callable thing. (Named nx_research_unified: nx_researcher/nx_research_pipeline were TAKEN by the _hdl_build retrieval-researcher suite.) license_tier: ORIGINAL

dependencies 5 imports · 3 importers

nx_syscalls.nx nx_research_verify_synth.nx nx_research_report.nx nx_research_investigate.nx nx_research_crossval.nx nx_research_unified.nx nx_research_crossval_gate.nx nx_research_judgment_bench.nx nx_research_unified_gate.nx

imports: nx_syscalls.nxnx_research_verify_synth.nxnx_research_report.nxnx_research_investigate.nxnx_research_crossval.nx

imported by: nx_research_crossval_gate.nxnx_research_judgment_bench.nxnx_research_unified_gate.nx

structs

none

consts

16const NXR_PUBLISH: i64 = 0
17const NXR_CONTINUE: i64 = 1
18const NXR_STOP_INCOMPLETE: i64 = 2

functions

21func nxr_verdict(uncited: i64, dangling: i64, num_discredited: i64, iter: i64, max_iter: i64, prev_gaps: i64, out: *i64) -> i64
33func nxr_vacuous(sentences: i64, uncited: i64) -> i64 { if sentences - uncited < 1 { return 1 } return 0 }
40func nxr_assess_hosts(body: *u8, blen: i64, srcv: *i64, nsrc: i64, hosts: *i64, iter: i64, max_iter: i64, prev_gaps: i64, out: *i64) -> i64
60func nxr_assess(body: *u8, blen: i64, srcv: *i64, nsrc: i64, iter: i64, max_iter: i64, prev_gaps: i64, out: *i64) -> i64
called by 3: mainjb_casemain calls 1: nxr_assess_hosts
67func nxr_research(title: *u8, heads: *i64, questions: *i64, nsec: i64, srcv: *i64, nsrc: i64, buf: *u8, cap: i64, out: *i64) -> i64