code wiki / _hdl_build / nx_evidence_gather.nx
nx_evidence_gather.nx
buildroot/runtime/_hdl_build/nx_evidence_gather.nx
about
nx_evidence_gather.nx -- the ANALYST's EVIDENCE GATHER (AN9, the irrefutability rung): every
load-bearing source URL is fetched over the team's OWN validated HTTPS (sovereign DNS+TCP+
TLS1.3+X.509 -- the proven nx_https_get path), content-hashed (sha256), stored content-
addressed under knowledge/analyst/evidence/, self-verified by re-read+re-hash, and recorded in
an append-only provenance ledger. A cited number stops being a citation and becomes BYTES ON
DISK with a pin -- re-fetchable, diffable, irrefutable. Refusals (bot walls, redirects, TLS
alerts) are recorded HONESTLY per URL, never papered over; the run is GREEN if every row got a
definite verdict (FETCHED or REFUSED) and at least one FETCHED+VERIFIED.
URL list = DATA: knowledge/analyst/evidence_urls.txt (`tag | url`). Polite: 1.5s pacing.
x86-lane only (mkdirat 258 direct, the media-gather lesson). license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_str.nxnx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_pem_loader.nxnx_https_get.nxnx_sha256.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 18 | const EG_MAGIC_4096: i64 = 4096 |
| 19 | const EG_MAGIC_1500: i64 = 1500 |
| 21 | const EG_PAGE_CAP: i64 = 4194304 |
| 22 | const EG_MAX_URLS: i64 = 32 |
functions
| 24 | func eg_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 } |
| 25 | func eg_pi(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 } |
| 26 | func eg_w(fd: i64, s: *u8) -> i64 { sys_write(fd, s, nx_str_len(s)); return 0 } |
| 27 | func eg_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" 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(fd,bb,k); return 0 } |
| 28 | func eg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[off+i]=s[i];i=i+1} return off+i } called by 1: eg_one |
| 29 | func eg_mkdir(path: *u8) -> i64 { return __syscall(258, -100, path, 0x1ed, 0, 0, 0) } called by 1: main |
| 31 | func eg_hex(d: *u8, out: *u8) -> i64 called by 1: eg_one |
| 44 | func eg_line_end(b: *u8, i: i64, n: i64) -> i64 called by 1: main |
| 49 | func eg_skip(b: *u8, i0: i64, e: i64) -> i64 called by 1: main |
| 54 | func eg_pipe(b: *u8, i: i64, e: i64) -> i64 called by 1: main |
| 60 | func eg_slice(b: *u8, i: i64, e: i64, dst: *u8) -> i64 called by 1: main |
| 75 | func eg_write_file(path: *u8, buf: *u8, n: i64) -> i64 |
| 89 | func eg_one(tag: *u8, url: *u8, store: *TrustStore, lg: i64) -> i64 |
| 136 | func main() -> i64 |