chore(cleanup): delete confirmed-dead files with no live references

Removes 6 files audited as fully unused: StageExecutor interface (shadowed
by kernel), CyclePolicyResolver and PolicyValidation (deferred cycle policy),
ApprovalRoutes (never registered), TuiNavigation (superseded by reducer),
and ReplayContractTest abstract class (no concrete subclasses).

ArtifactRelationshipType and CyclePolicy were audited but retained —
both are actively referenced by production code.
This commit is contained in:
2026-05-19 12:55:27 +04:00
parent 71a73a4fa2
commit 1c70511436
6 changed files with 0 additions and 151 deletions
@@ -1,19 +0,0 @@
package com.correx.apps.tui
import com.correx.apps.tui.state.TuiState
internal fun navigateUp(state: TuiState): TuiState {
val sessions = state.sessions.sessions
if (sessions.isEmpty()) return state
val idx = sessions.indexOfFirst { it.id == state.sessions.selectedId }
val newIdx = if (idx <= 0) sessions.lastIndex else idx - 1
return state.copy(sessions = state.sessions.copy(selectedId = sessions[newIdx].id))
}
internal fun navigateDown(state: TuiState): TuiState {
val sessions = state.sessions.sessions
if (sessions.isEmpty()) return state
val idx = sessions.indexOfFirst { it.id == state.sessions.selectedId }
val newIdx = if (idx >= sessions.lastIndex) 0 else idx + 1
return state.copy(sessions = state.sessions.copy(selectedId = sessions[newIdx].id))
}