Skip to content

STD-CMP-001: Compliance Frameworks

1. Context

To protect the platform from liability, fraud, and rot by strictly adhering to the "Big 5" industrial standards (Finance, Security, Arch, Privacy, A11y).

2. The Standard (The Floor)

  • [MUST] Financial Integrity (GAAP): Ledger entries MUST be immutable. Deletions are forbidden; use Reverse Entries.
  • [MUST] Security (OWASP): All Server Actions MUST use Zod Codecs for Input/Output sanitization. ReBAC MUST be enforced per action.
  • [MUST] Architecture (Clean): Client Components MUST NOT import Server Modules. Business logic MUST reside in packages/modules.
  • [MUST] Privacy (GDPR): PII MUST be anonymizable ("Soft Delete") while preserving Financial Records (7-year retention).
  • [MUST] Accessibility (WCAG): All interactive elements MUST be keyboard navigable.

3. Best Practices (The Path)

  • [SHOULD] Audit Trail: Write to system_audit_log in the same atomic batch as the mutation.
  • [SHOULD] Data Minimization: Only query fields required for the view (use Projections).
  • [SHOULD] Semantic HTML: Use native elements (<button>) over divs.

4. The "Big 5" Table

ID Domain Standard Guardrail
STD-FIN Finance GAAP/SOC2 Ledger Immutability
STD-SEC Security OWASP Top 10 SafeAction Envelope
STD-ARC Architecture Clean Arch Dependency Cruiser
STD-PRI Privacy GDPR/CCPA Encryption/Anonymization
STD-ACC Accessibility WCAG 2.1 AA ESLint A11y

5. Version History

Version Date Author Change
1.0 2026-01-25 AI Migrated from 07_COMPLIANCE_STANDARDS.md

Version History

Version Date Author Change
0.1.0 2026-01-26 Antigravity Initial Audit & Metadata Injection