code wiki / _hdl_build / nx_ad_offering_gate.nx

nx_ad_offering_gate.nx

buildroot/runtime/_hdl_build/nx_ad_offering_gate.nx

4890 B85 linesdepth 7pulls 12 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 5 imports · 0 importers

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

imports: nx_ad_offering.nxnx_ad_bill.nxnx_ad_serve.nxnx_syscalls.nxnx_gate_verdict.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ 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 ↻

structs

none

consts

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

functions

21func 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
22func 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
24func 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
37func main() -> i64