code wiki / _hdl_build / nx_research_engine_admission_t68_gate.nx

nx_research_engine_admission_t68_gate.nx

buildroot/runtime/_hdl_build/nx_research_engine_admission_t68_gate.nx

8247 B127 linesdepth 24pulls 156 transitivereach 0 importersview sourcekind gate/prooftopic research
docsdependenciesstructsconstsfunctions

about

nx_research_engine_gate.nx -- s-class gate for the shared research engine (nx_research_engine). Proves the EXTRACT (rf_strip) and the GZIP-guard (rf_is_gzip) DETERMINISTICALLY, no network -- the functionality the engine guarantees, measured + repeatable. This is the functionality the old copy-pasted fetchers carried, now CENTRALIZED into one DRY engine and tested ONCE (rule 15). No functionality reduced; gzip-guard + extract proven. (helpers carry a ge_ prefix -- the engine pulls in the TLS stack, so generic names like streq/slen/chk collide.) criteria: 1 rf_strip drops tags, keeps text: "<p>hi <b>there</b></p>" -> "hi there " 2 rf_strip SUPPRESSES <script> body: "<script>var x=1;</script>OK" -> "OK" 3 rf_strip collapses whitespace: "a b" -> "a b" 4 rf_strip handles <style> + blocks: "<div>A</div><style>x{}</style><p>B</p>" -> "A B " 5 rf_is_gzip: 0x1f 0x8b body detected (would skip), plain text NOT (would bank) expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_research_engine_admission_t68.n nx_gate_verdict.nx nx_research_engine_admission_t

imports: nx_research_engine_admission_t68.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main rf_puts sys_write ge_tstrip rf_strip rf_tag_eq ge_slen ge_streq ge_chk rf_puts ↻ rf_is_gzip rf_scat rf_slot_lock sys_flock sys_close sys_write ↻ sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read sys_munmap rf_rint sys_openat_rd sys_mmap ↻ sys_read ↻ sys_close ↻ rf_slot_release sys_close ↻

structs

none

consts

none

functions

16func ge_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ge_tstrip
17func ge_streq(a: *u8, an: i64, b: *u8) -> i64
called by 1: ge_tstrip
23func ge_chk(name: *u8, ok: i64) -> i64
called by 1: main calls 1: rf_puts
27func ge_tstrip(h: *u8, expect: *u8) -> i64
called by 1: main calls 3: rf_stripge_slenge_streq
33func main() -> i64