code wiki / _hdl_build / nx_ad_exceed.nx
nx_ad_exceed.nx
buildroot/runtime/_hdl_build/nx_ad_exceed.nx
about
nx_ad_exceed.nx -- LIB: the ad engine's MEASURED-EXCEED CENSUS (organ-graded, cited). Answers the
operator's standing question "where are we / where do we need to go" for the "Brought to you by"
ad system, as a DURABLE MACHINE rather than a claim. The maturity ladder (per the Graceful
Evolution Charter): ABSENT < STUB < BUILT < GATED < MEASURED < EXCEEDS < PHYSICS-OPTIMUM.
HONESTY BY CONSTRUCTION (feedback-no-wave-measured-exceed + feedback-author-by-organ-not-claude):
the grade for each axis is a PURE MONOTONE FUNCTION of LIVE EVIDENCE gathered by calling the real
organs (serve, botfilter, conversion) -- never a self-score. `ax_level` cannot skip a rung: you
cannot reach EXCEEDS without the whole chain exists->built->gated->measured->beats. That monotone
gate IS the liar-kill (the gate proves a fabricated "beats" with no "measured" is REFUSED).
THE FRAME (cited, sovereignly fetched by nx_research_fetch into knowledge/fetched/srch_*.raw):
VIEWABILITY MRC: >=50% of ad pixels in view for >=1 continuous second (display) / >=2s (video),
in an in-focus tab; "Time in View" [srch_adview.raw]
BOT / IVT MRC Invalid-Traffic Detection Guidelines + TAG; GIVT (data-center / known-bot /
non-browser) vs SIVT; fraud $88B(2023)->$172B(2028); ~50% of acquired traffic from
data-center IPs (2016) [srch_adfraud.raw]
PRIVACY Plausible: cookieless, NO persistent identifier, GDPR+CCPA, privacy-by-design
-- ours ADDS a k-anon suppression floor the peer lacks [srch_privacy.raw]
TRANSPARENCY IAB ads.txt (Authorized Digital Sellers), DIRECT vs RESELLER, anti domain-spoof
-- a DIRECT single-sponsor model has no reseller chain [srch_adstxt.raw]
license_tier: ORIGINAL
dependencies 9 imports · 2 importers
imports: nx_ad_serve.nxnx_ad_view.nxnx_ad_botfilter.nxnx_ad_conversion.nxnx_ad_intake.nxnx_ad_ivt.nxnx_ad_h2h.nxnx_ad_store.nxnx_syscalls.nx
imported by: nx_ad_exceed_gate.nxnx_advertising_page.nx
structs
| none |
consts
| 32 | const AX_MAGIC_4096: i64 = 4096 |
| 33 | const AX_MAGIC_5000: i64 = 5000 |
| 34 | const AX_MAGIC_1500: i64 = 1500 |
| 35 | const AX_MAGIC_3000: i64 = 3000 |
| 38 | const AX_ABSENT: i64 = 0 |
| 39 | const AX_STUB: i64 = 1 |
| 40 | const AX_BUILT: i64 = 2 |
| 41 | const AX_GATED: i64 = 3 |
| 42 | const AX_MEASURED: i64 = 4 |
| 43 | const AX_EXCEEDS: i64 = 5 |
functions
| 48 | func ax_level(exists: i64, built: i64, gated: i64, measured: i64, beats: i64) -> i64 called by 1: main |
| 58 | func xw(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 } |
| 59 | func xwn(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 } |
| 65 | func ev_delivery() -> i64 |
| 81 | func ev_bot(rules: *i64, nrules: i64) -> i64 |
| 106 | func ev_privacy(rules: *i64, nrules: i64, k: i64) -> i64 |
| 128 | func ev_transparency() -> i64 |
| 140 | func ev_viewability() -> i64 |
| 159 | func ev_signup() -> i64 |
| 170 | func ev_ivt() -> i64 |
| 189 | func ax_census_levels(lv: *i64) -> i64 |
| 212 | func ax_level_name(fd: i64, lv: i64) -> i64 |
| 223 | func ax_report(fd: i64, lv: *i64, k: i64) -> i64 |