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

7881 B124 linesdepth 9pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic food
docsdependenciesstructsconstsfunctions

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

nx_food_clean_source.nx nx_food_menu.nx nx_syscalls.nx nx_food_clean_source_gate.nx

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

main g_p sys_write fd_seed sys_mmap ss_begin ss_begin_cap sys_mmap ↻ as_len fd_streq_store sys_mmap ↻ ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_scan_seglist ss_len sys_mmap ↻ ss_cat ss_readall ss_r32 ss_add ss_add2 ss_w32 ss_len ↻ fd_seg_next sys_mmap ↻ ss_manifest ss_manifest_file sys_mmap ↻ ss_cat ↻ ss_readall ↻ ss_commit ss_segid_ok sys_mmap ↻ ss_cat ↻ ss_catn sys_mmap ↻

structs

none

consts

12const FCS_CAT: *u8 = "knowledge/registry/nishi_builder.tsv"
13const FCS_STORE: *u8 = "knowledge/store/food-"

functions

15func 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 }
called by 1: main calls 1: sys_write
16func g_i(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
24func 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 }
called by 1: main calls 3: sys_mmapim_moneysys_write
26func main() -> i64