Inventory Admin Flow

Pillar 6 of 11 · Item · Location · Quantity · Movement history · 3 tools · Single-model

01 User Input 02 Routing 03 Tool Layer 04 Inventory Sources 05 Response User Question "How much RS7245 in Heartland?" Pillar = inventory_admin R85 ROLE_FILTERS · inventory scope Intent classifier inventory_lookup Decision Few-shot R89 · inventory precedents Guardrails scope check get_inventory_ movements movement history list_open_ fulfillments committed/in-flight list_open_receipts incoming stock inventory_movements NS sync · per-location items.quantityonhand live on-hand snapshot locations 13 NS locations Citations API tx# + location refs Response qty available + recent moves ai_audit_log + chat_messages Legend User UI Worker / agent D1 table / store CF binding Tool / action External system Policy / gate

Tools available (3)

  • • get_inventory_movements
  • • list_open_fulfillments (committed)
  • • list_open_receipts (incoming)

Question flow

  • • Item lookup → resolve item_code
  • • Location filter → 13 NS locations
  • • Movement history (last N days)
  • • Available = on-hand − committed + incoming

Source ranking

  • • inventory_movements is authoritative history
  • • items.quantityonhand may be stale (15min lag)
  • • Open IF/IR shows committed/incoming flux