What problem does it solve? Managing role-based access control, user activation, and dynamic permission matrices across a FastAPI backend and React frontend is error-prone, especially when debugging 403 errors, onboarding users, or adding new module permission keys that must stay in sync across backend, frontend, and database. ## Core Features & Use Cases - JWT Verification & Role Resolution: Documents the resolve_actor() flow in backend/rbac.py, including role normalization, the 4-level role hierarchy, and sub-team data scoping via enforce_report_scope(). - Activation Gate Runbook: Explains the is_activated signup gate, the admin activation procedure, the CRM-link prerequisite for sale accounts, and the one-shot backfill script for existing users. - Dynamic Permission Matrix: Step-by-step procedure for adding a new permission key across MODULE_LIST, DEFAULT_DEPT_PERMISSIONS, frontend constants, and DB seeding. - Use Case: A new user reports a bare 403 on first login. Use this Skill to trace the activation gate, verify SYSTEM_ADMIN_EMAILS bypass rules, and walk the admin through the activation toggle in the Auth Accounts tab. ## Quick Start Ask the assistant to diagnose why a newly signed-up user gets a 403 error and walk through the admin activation steps.