code wiki / _hdl_build / nx_evidence_refresh.nx

nx_evidence_refresh.nx

buildroot/runtime/_hdl_build/nx_evidence_refresh.nx

5952 B110 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic evidence
docsdependenciesstructsconstsfunctions

about

nx_evidence_refresh.nx -- THE FRESHNESS AGENT (operator 2026-07-16: "when work takes place it's checking in and flipping this information fresh not just dumping"). ONE sovereign call that: (1) rebuilds the live dependency graph store (fork nx_eco_graph_build), then (2) re-runs the EXECUTED evidence for every backed domain (auto-discovered: any knowledge/compare/<d>.gates), which re-stamps knowledge/status/evstamp_<d>.verdict. After this, nx_sota_status reports the fresh PROVEN count with age~0. Slow (~30s/domain) -> a DELIBERATE / scheduled refresh (Examiner cron), not an inline MCP call. Reports each domain's verdict + the totals. license_tier: ORIGINAL expect_exit:0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_estate_path.nx nx_evidence_refresh.nx

imports: nx_syscalls.nxnx_estate_path.nx

imported by: nobody (leaf or entry point)

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

main ep_anchor sys_openat_rd sys_close sys_chdir sys_mmap rw sys_write r_run sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ r_has sys_openat_rd ↻ sys_getdents64 dirent_reclen ends_gates sys_write ↻ sys_close ↻ rn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

11func rw(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 1: main calls 1: sys_write
12func rn(v: i64) -> i64 { let b:*u8=sys_mmap(24); var m:i64=v; if m<0{sys_write(1,"-" as *u8,1);m=0-m} let t:*u8=sys_mmap(24); 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 j:i64=0; while j<k{b[j]=t[k-1-j];j=j+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func rw2(base: *u8, off: i64, len: i64) -> i64 { sys_write(1, ((base as i64)+off) as *u8, len); return 0 }
calls 1: sys_write
15func r_has(buf: *u8, n: i64, needle: *u8, nl: i64) -> i64
called by 1: main
22func r_run(elf: *u8, a1: *u8, a2: *u8, a3: *u8, outpath: *u8) -> i64
45func ends_gates(name: *u8) -> i64
called by 1: main
53func main() -> i64