code wiki / (root) / nx_archive_probe.nx

nx_archive_probe.nx

buildroot/runtime/nx_archive_probe.nx

2455 B37 linesdepth 24pulls 155 transitivereach 0 importersview sourcekind probetopic archive
docsdependenciesstructsconstsfunctions

about

nx_archive_probe.nx -- R4 step 1: a SOVEREIGN, read-only live probe that resolves the time-machine's live-source dependency. Fetches (1) the Wayback CDX API for the operator's example site page3.com -- which returns real historical capture rows "urlkey timestamp original mimetype status digest length" = EXACTLY the temporal-index data -- (2) the same for megastar.co.uk, and (3) data.commoncrawl.org for reachability + TLS-version. All over our own TLS-1.3 client (nx_https_fetch_follow). If a host is TLS-1.2-max, our 1.3-only client fails the handshake -> honest status=0, which blocks on the in-flight nx_tls12 work. No writes, no state change. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_research_engine.nx nx_archive_probe.nx

imports: nx_research_engine.nx

imported by: nobody (leaf or entry point)

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

main rf_init nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_length x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻ asn1_expect_tag ↻ trust_store_add

structs

none

consts

8const K_MAGIC_4194304: i64 = 4194304
9const K_MAGIC_1400: i64 = 1400

functions

11func phead(out: *u8, n: i64, lim: i64) -> i64 { var m: i64 = n; if m < 0 { m = 0 } if m > lim { m = lim } if m > 0 { sys_write(1, out, m) } sys_write(1, "\n" as *u8, 1); return 0 }
called by 1: main
13func main() -> i64