code wiki / _hdl_build / nx_food_menu_gate.nx
nx_food_menu_gate.nx
buildroot/runtime/_hdl_build/nx_food_menu_gate.nx
about
nx_food_menu_gate.nx -- GATE: R-MENU. Per-restaurant availability (the original ask). Proves: T1 every
restaurant yields a complete build from ONLY its menu, T2 availability honored (Green Wok has no red meat ->
never recommends Beef), T3 availability MATTERS (different restaurants -> different recommendations), T4 the
directory lists every restaurant, T5 sovereign + availability visible in the rendered pages (Golden Wok page
shows Beef, Green Wok page does not), T6 the bundle SHIPS through the publisher. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_food_menu.nxnx_publisher.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
| 10 | const MG_STORE: *u8 = "knowledge/store/food-" |
| 11 | const MG_CAT: *u8 = "knowledge/registry/nishi_builder.tsv" |
| 12 | const MG_Q: *u8 = "knowledge/publish/food-queue.tsv" |
| 13 | const MG_LED: *u8 = "knowledge/publish/food-ledger.tsv" |
| 14 | const MG_STAGE: *u8 = "knowledge/publish/food-stage" |
| 15 | const MG_LIVE: *u8 = "knowledge/publish/food-live" |
functions
| 17 | 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 } |
| 18 | func g_i(v: i64) -> i64 |
| 26 | func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 29 | func mg_choose(store: *u8, rest_id: *u8, build: *i64, roles: *i64, prefw: *i64) -> i64 called by 1: main calls 7: sys_mmapfs_restaurant_availfd_world_openfd_set_allfd_load_framefd_load_weights+1 |
| 44 | func mg_ship_restaurant(store: *u8, cat: *u8, rest_id: *u8) -> i64 |
| 58 | func main() -> i64 |