CoolFace
Apppublic

manzz05/kitchenflow-v2

sourceHugging Facemitupdated 5mo agoView on Hugging Face
1likes
App README

KitchenFlow-v2 โ€” Ghost Kitchen Dispatcher

๐Ÿš€ Training Notebook (Colab): https://colab.research.google.com/drive/1Sfvju98sWX4HEDqJczHpGSiK1wSux2LW?usp=sharing ๐Ÿ”— Live Demo: https://huggingface.co/spaces/manzz05/kitchenflow-v2 ๐Ÿ“ Blog Post: https://huggingface.co/spaces/manzz05/kitchenflow-v2/blob/main/blog.md

Everyone knows the pain of cold fries. KitchenFlow-v2 trains an AI to prevent it.

Training Results

Reward Curve

[image]

Before vs After

[image]

The Problem

Ghost kitchens lose money every day to the order-ready mismatch. Summon a driver too early โ€” they wait 20 minutes and may cancel (โˆ’20 penalty). Summon too late โ€” food drops from 72ยฐC to 55ยฐC (โˆ’1 per degree). The agent must learn perfect timing under real-time uncertainty.

What's New in v2

  • โ€”Multi-agent: KitchenCoordinator sub-agent broadcasts prep signals
  • โ€”Chaos events: Driver cancellations, traffic surges, GPS corruption
  • โ€”Expanded action space: 4 actions including priority requests and GPS requery
  • โ€”5 tasks: T1โ€“T5 from easy single order to enterprise lunch rush
  • โ€”Richer rewards: Sync bonus, rush completion, chaos recovery bonus

Tasks

Task IDDifficultyOrdersChaosTime Limit
T1_single_order_dispatchEasy1None30 min
T2_multi_order_coordinationMedium3None35 min
T3_peak_hour_rushHard5None45 min
T4_chaos_dispatchMedium11 event30 min
T5_enterprise_lunch_rushHard52 events60 min

Action Space

CodeActionDescription
0waitDo nothing
1summon_driverCall nearest driver
2request_priorityAsk coordinator to speed up prep
3requery_gpsUse when GPS data is stale

Reward Function

SignalValueTrigger
delivery_base+50Order delivered
sync_bonus+10Driver arrives โ‰ค 2 min of food ready
rush_bonus+15All orders done in โ‰ค 75% of max s