code wiki / _hdl_build / nx_ad_offering_gate.nx
nx_ad_offering_gate.nx
buildroot/runtime/_hdl_build/nx_ad_offering_gate.nx
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
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
structs
| none |
consts
| 17 | const OG_LOG: *u8 = "knowledge/status/ad_offering.log" |
| 18 | const OG_PREVIEW: *u8 = "knowledge/status/ad_offering_preview.html" |
functions
| 20 | func 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 } |
| 21 | func 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 } |
| 23 | func 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 |
| 36 | func main() -> i64 |