  This paper applies operads and functorial semantics to address the problem of
failure diagnosis in complex systems. We start with a concrete example,
developing a hierarchical interaction model for the Length Scale
Interferometer, a high-precision measurement system operated by the US National
Institute of Standards and Technology. The model is expressed in terms of
combinatorial/diagrammatic structures called port-graphs, and we explain how to
extract an operad LSI from a collection of these diagrams. Next we show how
functors to the operad of probabilities organize and constrain the relative
probabilities of component failure in the system. Finally, we show how to
extend the analysis from general component failure to specific failure modes.
