refactor: decomposition WIP (orchestrator/server/execution-plan)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DhFXmKe4WisSSPf9LrmmTg
This commit is contained in:
2026-07-15 13:17:01 +04:00
parent 9b925e141d
commit d69cb12ce9
17 changed files with 209 additions and 20 deletions
@@ -542,6 +542,10 @@ class ServerModule(
val planAlreadyLocked = eventStore.read(sessionId)
.any { it.payload is ExecutionPlanLockedEvent }
if (planAlreadyLocked) return
// completeWorkflow evicts artifactContentCache on the planning graph's completion (#54),
// so the execution_plan slot lockAndRun reads is gone by now. Rebuild it from the durable
// ArtifactContentStoredEvent before handing off. Rehydrate-safe and idempotent.
orchestrator.rehydrate(sessionId)
freestyleDriver?.lockAndRun(sessionId)
}