Architectural principles
- Separation between presentation layer and decision engine logic
- Backend-enforced rules via database (RLS and RPC)
- Multi-tenant isolation by account and CNPJ
- Entitlement-driven access control tied to subscription logic
- Stateless frontend with controlled persistence (localStorage + backend sync)
Scalability logic
The system is not designed for brute-force scale, but for controlled expansion.
Each additional account contributes to structured data accumulation, reinforcing
the decision layer and enabling future benchmarking, monitoring and intelligence.