chore(architecture): enforce layer boundaries

This commit is contained in:
syntaxbullet
2026-07-03 09:34:21 +02:00
parent a8dbd26474
commit d7406e803a
14 changed files with 354 additions and 17 deletions

9
renderer/AGENTS.md Normal file
View File

@@ -0,0 +1,9 @@
# Renderer Rules
- `renderer/` draws the current `ImageDocument` plus read-only editor overlays.
- Rendering backend details, e.g. WebGL objects, stay isolated here.
- Do not mutate document or editor state directly.
- Renderer interactions may emit intents/events only; callers translate them into commands.
- Do not import React components or view code.
- Do not leak backend objects into `core/`, `commands/`, `editor/`, or React state.
- Cache only derived rendering data; authoritative state lives in `core/` and `editor/`.