code wiki / _hdl_build / nx_food_clean_source_gate.nx
nx_food_clean_source_gate.nx
buildroot/runtime/_hdl_build/nx_food_clean_source_gate.nx
about
nx_food_clean_source_gate.nx -- GATE: R-IMPACT-3, the clean-sourcing badge joins the stir-fry SITE to the
impact ECONOMICS. T1 the stir-fry vegetables are seeded into the impact catalog (coverage probe). T2 HONEST:
a non-catalog ingredient (protein/sauce) is NOT claimed covered. T3 every seeded veg triple-wins (cleaner +
greener + cheaper + higher-margin), so the badge can't greenwash. T4 the per-build savings aggregate is
correct over covered veg only. T5 the badge renders with measured clean scores + savings, sovereign no-JS.
T6 END-TO-END: the badge appears on the REAL rendered restaurant site (fs_render_restaurant) ALONGSIDE the
existing science + recommendation sections (no regression), still sovereign. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_food_clean_source.nxnx_food_menu.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
| 12 | const FCS_CAT: *u8 = "knowledge/registry/nishi_builder.tsv" |
| 13 | const FCS_STORE: *u8 = "knowledge/store/food-" |
functions
| 15 | func g_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 16 | func g_i(v: i64) -> i64 |
| 24 | func g_money(c: i64) -> i64 { let b: *u8 = sys_mmap(24); let o: i64 = im_money(b, 0, c); sys_write(1, b, o); return 0 } |
| 26 | func main() -> i64 |