phase-1: scaffold platform foundation structure and architecture governance

This commit is contained in:
sdarbinyan
2026-07-03 01:26:30 +04:00
parent a59ffbcaa4
commit b957112fc7
85 changed files with 918 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# ADR-007: State Management and Facade Boundaries
Status: Accepted
Date: 2026-07-03
## Context
State must be predictable and isolated by domain to support Website, Builder, and Backoffice without cross-domain leakage.
## Decision
Use facade-centered state management by bounded context:
- Each feature domain exposes one or more facades.
- Facades expose read models and command methods.
- State is local to domain and projected as readonly selectors/signals.
- Shared/global state is limited to platform concerns (configuration, theme, localization, session status).
## Consequences
Positive:
- Clear ownership of state transitions.
- Improved maintainability and testability.
Negative:
- Requires disciplined facade boundaries.
## Compliance Requirements
- Components do not mutate service internals directly.
- Cross-domain communication is contract-based, not direct state access.