code wiki / _hdl_build / nx_research_resilience_test.nx

nx_research_resilience_test.nx

buildroot/runtime/_hdl_build/nx_research_resilience_test.nx

5600 B80 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic research
docsdependenciesstructsconstsfunctions

about

nx_research_resilience_test.nx -- prove the team is BOT-BLOCK-PROOF. The Researcher: 1. FETCHES a live page over its own socket stack (nx_browse_text) 2. EXTRACTS the cited facts (nx_research_extract) 3. MIRRORS (downloads) the source INTO the Nishi Library (nx_library_cache -> disk) 4. then the site is BLOCKED (we hit a dead port -> connection refused) 5. and the team FALLS BACK to the library, parsing the LOCAL mirror to the SAME facts -- no network 6. and FLAGS a still-missing citeable source to pull into the library next If a live fetch and a library read yield identical facts while the external is unreachable, then bot blocking cannot starve us. Exit 0 on 8/8. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_browse_text.nx nx_research_extract.nx nx_library_cache.nx nx_syscalls.nx nx_research_resilience_test.nx

imports: nx_browse_text.nxnx_research_extract.nxnx_library_cache.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 rt_puts sys_write sys_mmap br_addr_ipv4 nx_browse_text br_fetch_raw sys_socket nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_mmap ↻ br_build_get sys_write ↻ br_drain sys_read br_render_response nx_http_resp_alloc sys_mmap ↻ nx_http_response_parse sys_mmap ↻ nx_http_resp_parse_status_ sys_mmap ↻ nx_http_resp_parse_dec nx_http_resp_is_digit nx_http_resp_skip_ows nx_http_resp_find_crlf nx_http_resp_classify_body sys_mmap ↻ nx_http_resp_parse_header_ nx_http_resp_find_byte nx_http_resp_skip_ows ↻ nx_http_resp_find_crlf ↻ nx_http_resp_cieq nx_http_resp_lower nx_http_resp_parse_dec ↻ nx_html_to_text

structs

none

consts

none

functions

16func rt_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 1: main calls 1: sys_write
17func rt_num(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;k=1}; while m>0 {t[k]=48+(m%10); 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 1: main calls 2: sys_mmapsys_write
20func facts_ok(text: *u8, n: i64) -> i64
called by 1: main calls 2: re_stat_afterre_has
29func main() -> i64