feat(events): RefinementIterationEvent + orchestration state counter

This commit is contained in:
2026-06-04 00:50:16 +04:00
parent bcc20509e0
commit 9d1fe397f1
7 changed files with 88 additions and 0 deletions
@@ -3,6 +3,7 @@ package com.correx.core.kernel.orchestration
import com.correx.core.events.events.ChatSessionStartedEvent
import com.correx.core.events.events.OrchestrationPausedEvent
import com.correx.core.events.events.OrchestrationResumedEvent
import com.correx.core.events.events.RefinementIterationEvent
import com.correx.core.events.events.RetryAttemptedEvent
import com.correx.core.events.events.StoredEvent
import com.correx.core.events.events.TransitionExecutedEvent
@@ -60,6 +61,10 @@ class DefaultOrchestrationReducer : OrchestrationReducer {
failureReason = null,
)
is RefinementIterationEvent -> state.copy(
refinementIterations = state.refinementIterations + (p.cycleKey to p.iteration),
)
else -> state
}
}