Compatible relations on logic-based algebras