code wiki / _hdl_build / nx_ad_store.nx
nx_ad_store.nx
buildroot/runtime/_hdl_build/nx_ad_store.nx
about
nx_ad_store.nx -- LIB: the ad engine's window onto the SOVEREIGN INFORMATION STORE (the team's
own substrate, knowledge/store/ad-*), via nx_seg_store. This is the "pure Nishi ecosystem" home
for ad config + registry data -- NO TSV flat files, NO SQL. Records are key->bytes, append-only,
versioned, content-addressed, term-indexed (operator: "get away from tsv to pure nishi ecosystem").
Keys (the ad registry schema, all under prefix knowledge/store/ad-):
adcfg:botrules -> invalid-traffic rule lines `field<tab>bad<tab>rule_id` (ADS-019 DATA, rule 11)
adcfg:kanon_k -> the k-anonymity floor K (ADS-018 DATA)
adgoal:<goal> -> the pick-a-goal menu row (reach/leads/sales; target=census-benchmarked)
adpricing:<goal> -> the pricing row (perform_fee/exceed_mult/exceed_bonus; figures=sponsor co-spec)
license_tier: ORIGINAL
dependencies 3 imports · 17 importers
diagram shows first 10 each side; +0 more imports, +7 more importers in the complete lists below.
imports: nx_seg_store.nxnx_ad_botfilter.nxnx_syscalls.nx
imported by: nx_ad_bill.nxnx_ad_bill_gate.nxnx_ad_botfilter_gate.nxnx_ad_conversion_gate.nxnx_ad_exceed.nxnx_ad_exceed_gate.nxnx_ad_feedback_gate.nxnx_ad_intake.nxnx_ad_intake_gate.nxnx_ad_ivt.nxnx_ad_ivt_gate.nxnx_ad_meter.nxnx_ad_meter_gate.nxnx_ad_offering.nxnx_ad_reach_gate.nxnx_ad_store_seed.nxnx_kanon_gate.nx
structs
| none |
consts
| 16 | const ADS_PREFIX: *u8 = "knowledge/store/ad-" |
functions
| 20 | func ads_get(key: *u8, ptrout: *i64, lenout: *i64) -> i64 called by 16: ab_perform_fee_ofab_exceed_bonus_offg_streq_storemainin_goal_knownin_fee_max+10 calls 1: ss_get |
| 25 | func ads_seg_next() -> i64 |
| 34 | func ads_kanon_k() -> i64 |
| 55 | func ads_botrules(rules: *i64, maxr: i64) -> i64 |