code wiki / _hdl_build / nx_ad_store.nx

nx_ad_store.nx

buildroot/runtime/_hdl_build/nx_ad_store.nx

2711 B60 linesdepth 3pulls 4 transitivereach 21 importersview sourcekind librarytopic ad
docsdependenciesstructsconstsfunctions

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

nx_seg_store.nx nx_ad_botfilter.nx nx_syscalls.nx nx_ad_store.nx nx_ad_bill.nx nx_ad_bill_gate.nx nx_ad_botfilter_gate.nx nx_ad_conversion_gate.nx nx_ad_exceed.nx nx_ad_exceed_gate.nx nx_ad_feedback_gate.nx nx_ad_intake.nx nx_ad_intake_gate.nx nx_ad_ivt.nx

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

16const ADS_PREFIX: *u8 = "knowledge/store/ad-"

functions

20func ads_get(key: *u8, ptrout: *i64, lenout: *i64) -> i64
25func ads_seg_next() -> i64
34func ads_kanon_k() -> i64
55func ads_botrules(rules: *i64, maxr: i64) -> i64