2026 · Customer deployment · industrial maintenance
Plant Maintenance Agent
- Agents
- Maintenance
- Evaluation
An alarm-to-work-order agent for a fictional pump maker's two plants, built on the open-source machina framework. When an alarm fires, it diagnoses the likely failure for that specific machine, checks the storeroom, sets a priority from the planners' policy, and drafts the work order for a planner to approve.
- 17/20failure mode correct
- 20/20priority correct
- 18/20parts correct
- <100 msper alarm, no LLM call
- My role
- Solo build
- Team
- Fictional customer, synthetic data
- Result
- 17 / 20 alarms with failure mode, priority and parts all correct (baseline: 0 / 20)
- Status
- Public · 28 tests passing
- Tools and methods
- Python, machina (open source), Pydantic, Chroma + BM25 retrieval, Ollama, pytest
The problem
Unplanned downtime on CNC spindles and air compressors. When an alarm fires, a planner works out the cause, checks the storeroom, sets a priority and writes the work order by hand, and the fixes live in technicians' heads and PDF manuals.
What I built
- An adapter for messy maintenance and ERP exports: hand-typed equipment IDs, month-first and day-first dates from two plants, duplicate rows, supplier typos and costs in pesos.
- A ten-step workflow: diagnosis limited to that machine's own failure modes, history and stock lookups, repair kits, a priority policy based on criticality and severity, and a drafted work order. Nothing is written until a planner approves.
- A 20-alarm evaluation with the expected failure mode, priority and parts for each alarm.
Results
- Failure mode 17 of 20, priority 20 of 20, parts 18 of 20. The framework's built-in workflow scored 14, 6 and 4.
- 24 to 94 ms per alarm, with no LLM call.
- The three misses are real limits of rule-based diagnosis, such as a failed sensor reading 131 °C with no other signal to back it up.
What I don't claim
- I wrote both the labels and the rules, so 20 of 20 on priority shows the policy is wired correctly, not that the policy is right.
- Technician Q&A over the manuals retrieves the right passages, but the small local model answered poorly (0 of 4 fully correct). It needs a larger model.