AI-Assisted Device Automation Workflow
Design a workflow that turns device observations into validated AI proposals and controlled hardware actions.
Problem statement
For this exercise, assume an operator starts a versioned workflow on a device. One run acquires one observation, asks a versioned AI service for one proposed action, checks that proposal against the workflow allowed-action policy, dispatches one authorized hardware command and records the observed result.
Only one active run may control a device at a time. The device gateway accepts stable command ids, deduplicates repeated use of the same id and supports status readback, but an outcome can remain unknown when the device is unreachable. Model training, firmware and network-protocol implementation are outside scope.
What to build
- An operator can start a run against a fixed workflow version and inspect its progress.
- A run can acquire a device observation and obtain a correlated versioned AI action proposal.
- Only proposals permitted by the workflow policy can produce a hardware command.
- Each run records the observed command result or exposes uncertainty for reconciliation and operator review.
At scale
- For this exercise, assume 100 devices and 10 new runs per second across the fleet, with one active run per device.
- For this exercise, target normally completing a run within 5 seconds; an AI response may take 3 seconds and hardware communication can time out.
- For this exercise, a device outcome may remain permanently unknown; the system must not blindly repeat a physical action to satisfy the latency target.