code wiki / _hdl_build / nx_adnet_invoice_gate.nx
nx_adnet_invoice_gate.nx
buildroot/runtime/_hdl_build/nx_adnet_invoice_gate.nx
about
nx_adnet_invoice_gate.nx -- GATE for the billing pipeline (nx_adnet_invoice).
Independent re-derivation over fixture journals, not a call into the code under test to describe itself.
The teeth that matter are the REFUSALS -- a biller is dangerous in the direction of over-charging:
* an ad with NO rate row must emit an explicit REFUSED line, never a zero-priced or omitted one
* an ad measured but never viewable must bill 0, not its served count
* a rate card with a malformed number must REFUSE, not parse-to-zero
* SPEND (the number a budget ceiling consumes) must be UNMEASURABLE rather than 0 when unpriced --
assuming zero spend is exactly how an exhausted campaign keeps serving
expect_exit: 0 license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_adnet_invoice.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
structs
| none |
consts
| none |
functions
| 14 | func ti_slen(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i } |
| 15 | func ti_puts(s: *u8) -> i64 { sys_write(1, s, ti_slen(s)); return 0 } |
| 16 | func ti_pn(v: i64) -> i64 |
| 28 | func ti_has(buf: *u8, n: i64, pat: *u8) -> i64 |
| 42 | func ti_check(name: *u8, cond: i64) -> i64 |
| 48 | func main() -> i64 |