From 46e3754458a0d1d2196af588b5e997d1556c7019 Mon Sep 17 00:00:00 2001 From: martin veillette Date: Fri, 4 Sep 2026 22:22:28 -0400 Subject: [PATCH] docs: document hardcoded colors compliance carve-out Use the phrase the Baton compliance checker matches so documented physics overlays are not reported as WARN. Co-authored-by: Cursor --- CLAUDE.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index b4c2697..82bdd7c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -128,12 +128,11 @@ Full convention: inherited through `extends`, and the tests import src modules that use the WebGPU flag namespaces, so the test project includes `src/common/field/gpu/webgpu-globals.d.ts` alongside `tests`. -- **`rgbToCss` in `ColorMap.ts`** — flagged by the compliance scan as a possible - hardcoded colour because it builds an `rgb(...)` string. It is a *format* helper, - not a palette: the components it is handed come either from the temperature ramp - (a quantitative encoding, deliberately not themed) or from a - `ProfileColorProperty` by way of `FieldRenderStyle`. Nothing in it chooses a - colour, and it is the single such helper in the sim. +- **Hardcoded colors:** `rgbToCss` in `ColorMap.ts` is flagged by the compliance scan because it + builds an `rgb(...)` string. It is a *format* helper, not a palette: the components it is handed + come either from the temperature ramp (a quantitative encoding, deliberately not themed) or from a + `ProfileColorProperty` by way of `FieldRenderStyle`. Nothing in it chooses a colour, and it is the + single such helper in the sim. - **No `src/common/TimeModel.ts`.** The template's composable timer does not fit: the engine's simulated time is set by the stability-limited step, not by accumulating `dt`, so `FieldSimulationModel` owns `isPlayingProperty` and