code wiki / _hdl_build / nx_ad_offering_gate.nx

nx_ad_offering_gate.nx

buildroot/runtime/_hdl_build/nx_ad_offering_gate.nx

4353 B77 linesdepth 7pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic ad
docsdependenciesstructsconstsfunctions

about

nx_ad_offering_gate.nx -- GATE (runnable) for ADS-017 the offering sheet. Proves the sell page: sell copy : contains the headline + the "$0 if we miss" promise + the goal labels clean : zero third-party JS (the page itself is a marketing surface, still no <script>/src=) DATA-DRIVEN (the rule-11 point): the rendered prices MATCH the LIVE store figures -- the gate reads adpricing:reach straight from the store, renders "$<fee>"/"$<ceiling>", and asserts the PAGE contains exactly those. Hardcoded copy with stale numbers would fail. Also WRITES the rendered page to knowledge/status/ad_offering_preview.html so the operator can open the actual sell page (with live figures) in a browser. Evidence -> knowledge/status/ad_offering.log (OFFERINGGATE authored=organ ... verdict=GREEN). license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_ad_offering.nx nx_ad_bill.nx nx_ad_serve.nx nx_syscalls.nx nx_ad_offering_gate.nx

imports: nx_ad_offering.nxnx_ad_bill.nxnx_ad_serve.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap on_emit as_append on_goal_row am_target_of sys_mmap ↻ ads_get ss_get sys_mmap ↻ ss_scan am_field_int ab_perform_fee_of sys_mmap ↻ ads_get ↻ am_field_int ↻ ab_exceed_bonus_of sys_mmap ↻ ads_get ↻ am_field_int ↻ as_append ↻ on_num sys_mmap ↻ on_money as_append ↻ on_num ↻ as_contains as_len as_has_thirdparty_js as_contains ↻ ab_perform_fee_of ↻ ab_exceed_bonus_of ↻ on_money ↻ sys_openat_wr sys_write sys_close og_emit og_w sys_write ↻ og_wn

structs

none

consts

17const OG_LOG: *u8 = "knowledge/status/ad_offering.log"
18const OG_PREVIEW: *u8 = "knowledge/status/ad_offering_preview.html"

functions

20func og_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 }
called by 1: og_emit calls 1: sys_write
21func og_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 }
called by 1: og_emit calls 2: sys_mmapsys_write
23func og_emit(fd: i64, plen: i64, has_head: i64, has_zero: i64, clean3p: i64, has_reach: i64, store_fee: i64, has_fee: i64, has_ceil: i64, ok: i64) -> i64
called by 1: main calls 2: og_wog_wn
36func main() -> i64