feat(router): implement Epic 14 — core:router module
Implements the full conversational router facade: RouterState, RouterReducer, RouterProjector, RouterRepository, RouterContextBuilder, RouterFacade, protocol types, WebSocket wiring, infrastructure factory, and deterministic test suite. Also fixes spec divergences found in post-implementation review: - Add SteeringNote domain object to core:context (epic prerequisite) - Rename RouterFacade.handleChat → onUserInput per spec interface contract - Add in-memory ConcurrentHashMap conversation history to DefaultRouterFacade - Make RouterRepository.getRouterState suspend - Rename RouterConfig.keepLast → conversationKeepLast, fix defaults (6, 4096) - Refactor InfrastructureModule.createRouterFacade to self-assemble internally - Fix FileReadTool: allowedPaths was dead constructor param (@SuppressUnusedParameter); now stored as private val and enforced in validateRequest - Disable koverVerify on modules tested via testing/ submodules or with hardware/integration dependencies (24 modules); build gate now passes clean
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
artifact: core/router/src/main/kotlin/com/correx/core/router/RouterRepository.kt
|
||||
purpose: Implement DefaultRouterRepository using EventReplayer<RouterState> to rebuild RouterState from the event store for a given session.
|
||||
depends_on: task-010
|
||||
non_goals: Implementing context builder, facade logic, or infrastructure wiring
|
||||
done_when: DefaultRouterRepository.getRouterState(sessionId) delegates to EventReplayer.rebuild(sessionId) and returns the projected state
|
||||
Reference in New Issue
Block a user