Food Safety Compliance Alert
AI → HumanIoT sensors monitor storage conditions; AI flags violations for kitchen managers.
5 nodes · 5 edgesfood-service
eventagenthumansystem
Visual
IoT Sensor Data Streamevent
Temperature, humidity, and door-open events from refrigerators and storage.
↓sequential→ AI Compliance Check
AI Compliance Checkagent
Compare readings against HACCP thresholds and time-temperature abuse limits.
↓conditional→ Violation Classification
↓timeout→ Kitchen Manager Alert
Violation Classificationsystem
Critical (immediate discard), major (corrective action), minor (log only).
↓sequential→ Kitchen Manager Alert
Kitchen Manager Alertapi
Immediate push notification with affected unit, reading, and time exceeded.
↓sequential→ Corrective Action
Corrective Actionhuman
Manager inspects product, discards if necessary, recalibrates equipment.
uc-food-safety-alert.osop.yaml
osop_version: "1.0"
id: "food-safety-alert"
name: "Food Safety Compliance Alert"
description: "IoT sensors monitor storage conditions; AI flags violations for kitchen managers."
nodes:
- id: "sensor_data"
type: "event"
name: "IoT Sensor Data Stream"
description: "Temperature, humidity, and door-open events from refrigerators and storage."
- id: "compliance_check"
type: "agent"
subtype: "llm"
name: "AI Compliance Check"
description: "Compare readings against HACCP thresholds and time-temperature abuse limits."
security:
risk_level: "high"
- id: "violation_classify"
type: "system"
name: "Violation Classification"
description: "Critical (immediate discard), major (corrective action), minor (log only)."
- id: "kitchen_alert"
type: "api"
name: "Kitchen Manager Alert"
description: "Immediate push notification with affected unit, reading, and time exceeded."
- id: "corrective_action"
type: "human"
subtype: "review"
name: "Corrective Action"
description: "Manager inspects product, discards if necessary, recalibrates equipment."
security:
approval_gate: true
edges:
- from: "sensor_data"
to: "compliance_check"
mode: "sequential"
- from: "compliance_check"
to: "violation_classify"
mode: "conditional"
when: "violation.detected == true"
- from: "violation_classify"
to: "kitchen_alert"
mode: "sequential"
- from: "kitchen_alert"
to: "corrective_action"
mode: "sequential"
- from: "compliance_check"
to: "kitchen_alert"
mode: "timeout"
timeout_sec: 10
label: "Bypass if critical temperature breach"