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

8
view/AGENTS.md Normal file
View File

@@ -0,0 +1,8 @@
# View / React Rules
- React is display-only UI and user-intent capture.
- React must not own, manage, derive authoritative, or mutate document/editor state.
- React may keep only local UI state with no app meaning, e.g. popover open state or unsent input draft.
- Event handlers, toolbar buttons, menus, and effects must request state changes by dispatching commands.
- Do not implement business rules, document mutation, renderer backend logic, or editor workflow ownership in components.
- Effects are for subscriptions and UI integration only.