code wiki / (root) / nx_fetchwall_gate.nx

nx_fetchwall_gate.nx

buildroot/runtime/nx_fetchwall_gate.nx

10424 B167 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_fetchwall_gate.nx -- THE GATE FOR THE FETCH-WALL CLASSIFIER, 2026-09-03. SUBJECT: fw_classify / fw_classify_file in-process (nx_fetchwall_lib has no main). THE FIXTURES ARE REAL, NOT PLANTED. The positive is the actual Google AI Mode share body mirrored by nx_research_fetch on 2026-09-03 (status=200, 92982 bytes, a JS gate carrying none of the answer). The false-positive controls are the SEVENTEEN curated phototwin reference mirrors -- real fetched pages that were adjudicated and re-fetched by the refs lane -- because a detector bite-proven only on planted fixtures is not calibrated, which is exactly how nx_mirrorintegrity shipped a 941-permil false-positive rate onto real data. EVERY control row is PRINTED with its permil so a genuine wall hiding among the mirrors is visible as a finding rather than swallowed as a failure. Teeth, in order: T1 the real wall body classifies as a WALL at all. T2 it is named WALL-JS-GATED, not merely convicted. T3 the STRUCTURAL axis is what fired: its fitted-text permil is under the bar. T4 FALSE-POSITIVE CONTROL over all seventeen real mirrors. T5 NEG-CONTROL: dense prose with no markers reads CONTENT. T6 NEG-CONTROL: dense prose that MENTIONS sign-in and cookies STILL reads CONTENT -- markers must never override structure, and without this tooth the marker list would convict half the estate's corpus. T7 NEG-CONTROL: a thin JS-gate body reads WALL-JS-GATED -- so T6 cannot pass by the markers being dead. T6 and T7 are the SAME ordering proven from both sides; either alone is vacuous. T8 NEG-CONTROL: a zero-length body ABSTAINS as UNPROVEN and never reads as content. T9 NEG-CONTROL: a body under the prose floor reads EMPTY, not a convicted wall. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_fetchwall_lib.nx nx_fetchwall_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_fetchwall_lib.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr 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 ↻ gv_head gv_puts sys_write ↻ sys_mmap ↻ fw_classify_file sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close fw_classify sys_mmap ↻ bd_fit_text bd_load_conf bd_conf_one lc_geti bd_count_lt sys_mmap ↻ bd_scan bd_set

structs

none

consts

30const FWG_WALL: *u8 = "knowledge/fetched/cmp_aimode_q4rAREPI.html"
31const FWG_NC: i64 = 17
32const FWG_MIN_CONTENT: i64 = 14
33const FWG_SLOT: i64 = 8
35const FWG_PROSE: *u8 = "<html><body><article><h1>Colour management on cotton</h1><p>An ICC profile describes what gamut a device can reproduce, so an image and a substrate meet in one space and the difference between them is stated in the unit the whole field uses rather than argued about in adjectives. </p><p>Wash fastness is measured on the actual blank rather than promised in a brochure, and the licence chain travels with every item as data on the row beside it. </p></article></body></html>"
36const FWG_PROSE_MARKED: *u8 = "<html><body><article><h1>Colour management on cotton</h1><p>An ICC profile describes what gamut a device can reproduce, so an image and a substrate meet in one space and the difference between them is stated in the unit the whole field uses rather than argued about in adjectives. </p><p>This article discusses paywalls, and notes that some publishers ask you to sign in to continue and to accept all cookies before you continue reading their material. </p></article></body></html>"
37const FWG_WALLJS: *u8 = "<html><head><title>Google Search</title><script>window.g=window.g||{};function q(a,b){return a+b}var z=q(1,2);function r(x){var y=0;while(y<x){y=y+1}return y}var w=r(64);function s(k){return k*3}var v=s(w);function t(m){return m-1}var u=t(v);</script></head><body><noscript><meta content='0;url=/httpservice/retry/enablejs' http-equiv='refresh'><div>Please click here if you are not redirected within a few seconds.</div></noscript><script>var aa=1;var bb=2;var cc=3;function dd(){return aa+bb+cc}var ee=dd();function ff(){return ee*2}</script></body></html>"
38const FWG_SHORT: *u8 = "<html><body><p>hi</p></body></html>"

functions

40func fwg_len(s: *u8) -> i64
called by 1: main
45func fwg_row(tag: *u8, path: *u8, o: *i64) -> i64
called by 1: main calls 3: gv_putsfw_namegv_num
61func main(argc: i64, argv: *i64) -> i64