Resilient by Design -- Active Inference for Distributed Continuum Intelligence