Pātuhitia tēnei: Logics and languages for reliability and security