An inspection and replacement policy for a protection system is described by a mathematical model that incorporates multiple aspects of maintenance quality. A three-state component failure model is assumed, with a defective state preceding failure. The quality of maintenance intervention is modelled by supposing that inspections may misclassify defects (false positives and false negatives) and further that an inspection may induce a defect. The quality of replacement is modelled by supposing that a component arises from a heterogeneous population, composed of weak and strong items and with the mixing parameter determining quality. Isolation valves used in water distribution systems motivate the model development, and a case study is conside...