code wiki / _hdl_build / nx_ad_h2h.nx

nx_ad_h2h.nx

buildroot/runtime/_hdl_build/nx_ad_h2h.nx

3844 B71 linesdepth 6pulls 10 transitivereach 4 importersview sourcekind librarytopic ad
docsdependenciesstructsconstsfunctions

about

nx_ad_h2h.nx -- LIB: MEASURED HEAD-TO-HEAD vs representative REAL incumbent baselines -- the evidence the census requires for an EXCEEDS grade (the "beats" bit), computed by the organ, NEVER self-scored. Each comparator measures OUR value and a real incumbent baseline on a NAMED, objective, lower-is- better axis and returns 1 ONLY if we strictly beat it. HONEST RESTRAINT (feedback-no-wave-measured-exceed + feedback-show-raw-output-no-overclaim): there is DELIBERATELY no comparator for viewability (incumbents measure it too, e.g. Google Active View) or bot-detection DEPTH (incumbents do SIVT via the per-user fingerprinting we REFUSE) -- those axes stay MEASURED, not EXCEEDS. We only claim a beat where it is structural and objective. Cited incumbent baselines: DELIVERY standard programmatic display loads a third-party <script src> (Google Publisher Tag, securepubads.g.doubleclick.net/tag/js/gpt.js) [srch_adfraud.raw] TRANSPARENCY programmatic supply has reseller hops -- ads.txt exists to authorize them (DIRECT vs RESELLER); a DIRECT single-sponsor model references zero external seller domains [srch_adstxt.raw] SIGNUP CPM = "cost per thousand impressions": billed per impression regardless of outcome; ours bills $0 on a miss (nx_ad_bill returns 0 for an UNDER verdict) [srch_cpm.raw] license_tier: ORIGINAL

dependencies 3 imports · 3 importers

nx_ad_serve.nx nx_ad_bill.nx nx_syscalls.nx nx_ad_h2h.nx nx_ad_exceed.nx nx_ad_exceed_gate.nx nx_ad_h2h_gate.nx

imports: nx_ad_serve.nxnx_ad_bill.nxnx_syscalls.nx

imported by: nx_ad_exceed.nxnx_ad_exceed_gate.nxnx_ad_h2h_gate.nx

structs

none

consts

none

functions

25func h2h_beats_lower(ours: i64, incumbent: i64) -> i64
called by 1: main
31func h2h_incumbent_unit() -> *u8
36func h2h_our_unit(out: *u8) -> i64
43func h2h_delivery_ours() -> i64
48func h2h_delivery_incumbent() -> i64
52func h2h_delivery() -> i64 { return h2h_beats_lower(h2h_delivery_ours(), h2h_delivery_incumbent()) }
56func h2h_transparency_ours() -> i64
61func h2h_transparency_incumbent() -> i64
65func h2h_transparency() -> i64 { return h2h_beats_lower(h2h_transparency_ours(), h2h_transparency_incumbent()) }
69func h2h_signup_ours() -> i64 { return ab_charge(0, 50, 25) } // verdict 0 = UNDER -> $0
70func h2h_signup_incumbent() -> i64 { return 1 } // CPM bills regardless of outcome [>0]
71func h2h_signup() -> i64 { return h2h_beats_lower(h2h_signup_ours(), h2h_signup_incumbent()) }