Reliability, failure detection and prevention in cyber‐physical systems (CPSs) with agents. (30th March 2018)