nx_research_unified.nx
buildroot/runtime/nx_research_unified.nx
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
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
| 16 | const NXR_PUBLISH: i64 = 0 |
| 17 | const NXR_CONTINUE: i64 = 1 |
| 18 | const NXR_STOP_INCOMPLETE: i64 = 2 |
functions
| 21 | func nxr_verdict(uncited: i64, dangling: i64, num_discredited: i64, iter: i64, max_iter: i64, prev_gaps: i64, out: *i64) -> i64 |
| 33 | func nxr_vacuous(sentences: i64, uncited: i64) -> i64 { if sentences - uncited < 1 { return 1 } return 0 } |
| 40 | func nxr_assess_hosts(body: *u8, blen: i64, srcv: *i64, nsrc: i64, hosts: *i64, iter: i64, max_iter: i64, prev_gaps: i64, out: *i64) -> i64 called by 3: mainnxr_assessmain calls 5: sys_mmaprp_report_groundedcvx_answer_verifynxr_verdictnxr_vacuous |
| 60 | func nxr_assess(body: *u8, blen: i64, srcv: *i64, nsrc: i64, iter: i64, max_iter: i64, prev_gaps: i64, out: *i64) -> i64 |
| 67 | func nxr_research(title: *u8, heads: *i64, questions: *i64, nsec: i64, srcv: *i64, nsrc: i64, buf: *u8, cap: i64, out: *i64) -> i64 |