code wiki / (root) / nx_research_unified_gate.nx

nx_research_unified_gate.nx

buildroot/runtime/nx_research_unified_gate.nx

9056 B146 linesdepth 14pulls 29 transitivereach 0 importersview sourcekind gate/prooftopic research
docsdependenciesstructsconstsfunctions

about

nx_research_unified_gate.nx -- liar-kill gate for the UNIFIED sovereign researcher (S1+S2+S3+S4 -> one verdict). TIER-1 (deterministic, $0): nxr_assess grades fixture report bodies and shows the VERDICT: PUBLISH (grounded + numbers confirmed), CONTINUE (a fabricated number / uncited claim -> investigate again), STOP-INCOMPLETE (gaps remain but budget spent -> ship honestly). TIER-2 (marker knowledge/index/nxr_model.on): the full nxr_research pipeline with real Qwen. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_research_unified.nx nx_syscalls.nx nx_research_unified_gate.nx

imports: nx_research_unified.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nxr_assess nxr_assess_hosts sys_mmap ↻ rp_report_grounded sys_mmap ↻ rp_is_letter rp_parse_cite txt_parse_cite rp_is_digit cvx_answer_verify sys_mmap ↻ txt_sentence_end rvs_first_number sys_mmap ↻ rvs_num_at rsq_sentence_cite sys_mmap ↻ txt_parse_cite ↻ rsq_len rvs_span_numbers_near sys_mmap ↻ rvs_num_at ↻ rvs_src_has_near sys_mmap ↻ rvs_num_at ↻ cvc_iabs rvs_src_has_near ↻ nxr_verdict riv_next nxr_vacuous st_len st_row st_puts sys_write st_putn sys_mmap ↻ sys_write ↻ st_verdict

structs

none

consts

none

functions

9func st_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 3: st_verdictst_rowmain calls 1: sys_write
10func st_putn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 2: st_rowmain calls 2: sys_mmapsys_write
11func st_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
12func st_verdict(v: i64) -> i64
called by 2: st_rowmain calls 1: st_puts
18func st_row(tag: *u8, out: *i64) -> i64
called by 1: main calls 3: st_putsst_putnst_verdict
32func main() -> i64