Inventory Telemetry Service
Ingests stock changes from POS, RFID, shelf sensors, expiry OCR, and warehouse systems. The single source of truth for on-hand inventory.
Computes FreshScore (0-100), spoilage probability, and the discount window for every inventory item. Authoritative on freshness — nothing else sets freshness.
Pricing Orchestrator Service
Sets the current dynamic price from FreshScore bands, employer subsidy rules, and partner margins. The only service that mutates current_price_aed.
Zero-Waste Marketplace Service
Auto-lists near-expiry, surplus, and cosmetic-defect items as discounted bundles. Owns the marketplace listing lifecycle.
Manages micro-subscriptions (daily essentials, veggie box, employer-sponsored pack), auto-renewal, pause/resume, and employer/worker billing split.
Converts a Smart Basket, subscription fulfillment, or marketplace purchase into an order. Applies credits and employer subsidy, then hands off to routing + ledger.
Learns consumer purchase patterns and generates Smart Basket suggestions and personalized discounts. The only service that emits recommendations.
Builds weekly meal plans and a Smart Basket that prioritizes discounted, near-expiry produce to drive zero-waste goals.
Routing & Delivery Engine
Assigns orders to optimized routes and drivers, prioritizing perishable items. Confirms delivery completion and emits fulfillment.
Atomic financial transactions for orders, subscriptions, and settlements. Enforces employer/worker split immutably. The only service that posts to FinancialLedger.
Issues and redeems grocery credits for sustainable actions (near-expiry purchase, packaging return, local produce, campaigns). The only service that mutates GroceryCreditLedger.
Manages supplier relationships, confirms inventory on order creation, and syncs price changes back to suppliers. Boundary to external procurement systems.
Worker-facing surface. Surfaces grocery benefits, subscription status, credits, Smart Basket, and delivery ETA. Read-only consumer of grocery events.
Employer-facing surface. Shows sponsored subscription spend, subsidy split, and workforce grocery benefits. Read-only consumer.
Partner-facing surface. Shows dynamic pricing impact, zero-waste marketplace, and partner margin rules. Read-only consumer.
Direct-to-consumer surface (where applicable). Smart Basket, order placement, delivery ETA. Read-only consumer of personalized events.