package p.studio.api.automation; /** Exactly one lookup key, always scoped to a separately validated project/task identity. */ public record OperationLookup(String operationId, String clientRequestId) { public OperationLookup { if ((operationId == null) == (clientRequestId == null) || (operationId != null && operationId.isBlank()) || (clientRequestId != null && clientRequestId.isBlank())) throw new IllegalArgumentException("Supply exactly one nonblank operationId or clientRequestId"); } }