# task-018 status: - done ## goal Add createRouterFacade() factory that assembles RouterFacade from RouterRepository, RouterContextBuilder, InferenceRouter, EventStore, and RouterConfig. ## target artifact infrastructure/src/main/kotlin/com/correx/infrastructure/InfrastructureModule.kt ## execution steps - Add imports for com.correx.core.router (RouterRepository, RouterContextBuilder, RouterFacade, DefaultRouterFacade) and com.correx.core.router.model (RouterConfig) to InfrastructureModule.kt - Append createRouterFacade() factory method to InfrastructureModule object that takes RouterRepository, RouterContextBuilder, InferenceRouter, EventStore, and RouterConfig parameters and returns RouterFacade by instantiating DefaultRouterFacade ## changed artifacts - infrastructure/src/main/kotlin/com/correx/infrastructure/InfrastructureModule.kt (added 5 router imports + factory function) - apps/server/src/main/kotlin/com/correx/apps/server/Main.kt (replaced local buildRouterFacade() call with InfrastructureModule.createRouterFacade(); removed unused DefaultRouterFacade import and local function) ## blockers - none ## notes - Non-goal: modifying Main.kt or ServerModule (those are separate tasks) - Non-goal: creating intermediate factory functions (RouterRepository, RouterContextBuilder, etc.) — these are taken as parameters per task spec - Build verification: :infrastructure:compileKotlin passes, :infrastructure:detekt passes - Pre-existing kover failures in :apps:desktop and :apps:worker are unrelated to this task