Towards a Certificate of Trust: Task-Aware OOD Detection for Scientific AI