From 4ec6295d1d66c3c0731ee347e5d36989e870f6cb Mon Sep 17 00:00:00 2001 From: Janis Date: Fri, 5 Jun 2026 11:00:45 +0200 Subject: [PATCH] docs(claude): mandate NativeReflectionConfig registration for all serialized types Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index c98fd79..2571f30 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -57,6 +57,14 @@ Use consistently. - **Tests are the spec.** Don't modify to pass. Fix requirements/code. Update only if requirements change. - Never read build folders. Ask permission if needed. - Keep file current with decisions + conventions. +- **NativeReflectionConfig (mandatory):** Every new type (class, case class, enum, sealed trait — anything serialized) must be registered in the `NativeReflectionConfig` of **every module that interacts with it**. Configs live at: + - `modules/account/src/main/scala/de/nowchess/account/config/NativeReflectionConfig.scala` + - `modules/coordinator/src/main/scala/de/nowchess/coordinator/config/NativeReflectionConfig.scala` + - `modules/core/src/main/scala/de/nowchess/chess/config/NativeReflectionConfig.scala` + - `modules/io/src/main/scala/de/nowchess/io/service/config/NativeReflectionConfig.scala` + - `modules/rule/src/main/scala/de/nowchess/rules/config/NativeReflectionConfig.scala` + - `modules/store/src/main/scala/de/nowchess/store/config/NativeReflectionConfig.scala` + - `modules/ws/src/main/scala/de/nowchess/ws/config/NativeReflectionConfig.scala` ---