End-to-End Alarm Pipeline (v1.0.0)

Complete flow from MES event to supervisor alert

Flow Description

  1. A MesEvent (e.g., SCRAPPED with reason code DIM_OUT_OF_SPEC) arrives from the factory floor MES system
  2. The stream-processor joins the event with LineConfig, updates the running shift aggregate, and emits a ShiftAggregate if meaningful changes are detected
  3. The alarm-service receives the ShiftAggregate, evaluates all enabled alarm rules, and checks hysteresis state
  4. If an alarm fires (NORMAL→ACTIVE or CLEARED→ACTIVE), the alarm-service generates a SupervisorAlert with an LLM-enriched message (or fallback template)
  5. The SupervisorAlert is published to the supervisor-alerts topic for the websocket-bridge to forward to the dashboard