$ npm run test:hardening
cross-tenant-isolation.......... attacks cross-tenant isolation
security-definer-boundaries..... attacks security definer boundaries
rbac-privilege-escalation....... attacks rbac privilege escalation
anon-auth-boundary.............. attacks anonymous / auth boundary
invitation-lifecycle............ attacks invitation lifecycle
stripe-webhook-reliability...... attacks stripe webhook reliability
data-integrity.................. attacks data integrity / owner protections
api-key-validation.............. attacks api key validation
billing-enforcement............. attacks billing enforcement
# these attacks caught 3 of them. a manual review caught the 4th.
# all four fixed. the regression tests ship with the product.