docs: define calendar-aware analytics model

This commit is contained in:
2026-08-20 13:38:23 +03:30
parent f91e529298
commit 9d57be161d
4 changed files with 127 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ For every Go-related task, always invoke and follow the `golang-how-to` skill, t
## Product invariants
- Use the canonical domain terms in `CONTEXT.md`; update that glossary when a term's meaning is approved, without adding implementation details to it.
- The backend is the authority for authentication, authorization, tenant isolation, metric definitions, and data provenance.
- Every merchant-scoped query derives merchant identity from the authenticated server-side session; never trust a client-supplied merchant identifier as authorization.
- Cross-merchant results are anonymized aggregates only. Exclude the active merchant and suppress the benchmark unless at least 10 other merchants and 1,000 combined peer sessions contribute to the approved cohort/window.