Files
correx/docs/specs/2026-05-20-router/exec/task-005.md
T
kami 2c459da009 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
2026-05-21 15:06:20 +04:00

1.4 KiB

task-005

status: done

goal

Register SteeringNoteAddedEvent in the eventModule polymorphic block via subclass(SteeringNoteAddedEvent::class) to prevent silent runtime deserialization failure.

target artifact

core/events/src/main/kotlin/com/correx/core/events/serialization/Serialization.kt

execution steps

  • Add import for SteeringNoteAddedEvent in alphabetical order among other event imports
  • Add subclass(SteeringNoteAddedEvent::class) to the eventModule polymorphic block, placed after SessionFailedEvent and before StageStartedEvent
  • Run ./gradlew :core:events:compileKotlin --rerun-tasks to verify compilation
  • Run ./gradlew :core:events:test --rerun-tasks to verify existing tests still pass
  • Run ./gradlew :core:events:detekt to verify no detekt errors introduced

changed artifacts

  • core/events/src/main/kotlin/com/correx/core/events/serialization/Serialization.kt — added import and subclass registration for SteeringNoteAddedEvent

blockers

  • none

notes

  • No existing serialization round-trip test for SteeringNoteAddedEvent exists in the codebase (verified via grep in both core/events/src/test and testing/). The registration prevents silent runtime deserialization failure when the event is encountered in the event store, which is the primary purpose of this task.
  • All pre-existing detekt warnings (NewLineAtEndOfFile) are unrelated to this change.