code wiki / _hdl_build / nx_ad_ivt_gate.nx
nx_ad_ivt_gate.nx
buildroot/runtime/_hdl_build/nx_ad_ivt_gate.nx
about
nx_ad_ivt_gate.nx -- GATE (runnable) for the strengthened IVT classifier (nx_ad_ivt). Seeds the
richer GIVT rule set into the sovereign store (adcfg:ivtrules, additive + idempotent), then proves:
load : >=8 rules across 6 signal fields load from the store (data-driven, rule 11)
signals : EACH GIVT signal flags invalid -- known-bot UA, non-browser UA, data-center ASN,
proxy/VPN, raw-JS, missing-referrer, impossible-cadence, declared-bot
clean : a clean human vector is VALID (the filter is not stuck-at-invalid: anti-false-green)
tally : a mixed corpus separates exactly (served=100 -> valid=70, invalid=30), aggregate-only
richer : rule count strictly exceeds the legacy 3-signal nx_ad_botfilter set
Evidence -> knowledge/status/ad_ivt.log (IVTGATE ... verdict=GREEN). license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_ad_ivt.nxnx_ad_store.nxnx_seg_store.nxnx_syscalls.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
| 15 | const IVG_LOG: *u8 = "knowledge/status/ad_ivt.log" |
| 16 | const IVT_KEY: *u8 = "adcfg:ivtrules" |
| 17 | const IVT_RULES: *u8 = "0\t1\tIVT-UA-KNOWNBOT\n0\t2\tIVT-UA-NONBROWSER\n1\t1\tIVT-SRC-DATACENTER\n1\t2\tIVT-SRC-PROXY\n2\t1\tIVT-JS-RAW\n3\t1\tIVT-REF-MISSING\n4\t1\tIVT-CADENCE-IMPOSSIBLE\n5\t1\tIVT-DECLARED-BOT\n" |
functions
| 19 | func ivg_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 20 | func ivg_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;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 } |
| 21 | func ivg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 23 | func ivg_streq_store(key: *u8, val: *u8) -> i64 |
| 37 | func ivg_probe(idx: i64, val: i64, rules: *i64, nrules: i64) -> i64 |
| 45 | func main() -> i64 |