package com.correx.core.kernel.retry

import com.correx.core.events.execution.RetryPolicy
import com.correx.core.events.types.SessionId
import com.correx.core.events.types.StageId

interface RetryCoordinator {
    suspend fun shouldRetry(
        sessionId: SessionId,
        stageId: StageId,
        currentAttempt: Int,
        policy: RetryPolicy,
        failureReason: String,
    ): Boolean
}
