2c459da009
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
978 B
978 B
task-008
status: done
goal
Define RouterResponse as a serializable data class holding the inference output content and a steeringEmitted flag for the server protocol.
target artifact
core/router/src/main/kotlin/com/correx/core/router/model/RouterResponse.kt
execution steps
- Create
RouterResponse.ktwith@Serializabledata class:content: String— inference output contentsteeringEmitted: Boolean— whether a steering note was emitted (defaultfalse)
- Compile
:core:router:compileKotlin— succeeds - Run
:core:router:detekt— clean
changed artifacts
core/router/src/main/kotlin/com/correx/core/router/model/RouterResponse.kt— new file
blockers
- None
notes
RouterResponsefollows the same@Serializabledata class pattern asRouterConfigandRouterStatein themodel/package.- The
steeringEmittedflag defaults tofalseso that inference-only paths do not require an explicit argument.