What problem does it solve?
Enforces architectural rules and patterns for the property/building system to prevent regressions, ensuring safe evolutions of the codebase and stability across properties, buildings, building_units, property API routes, wizard store, RLS policies, and database types.
Core Features & Use Cases
- Enforces critical guardrails including RLS enforcement with user_profile_id(), zero-use of auth.uid() in policies, and consistent admin/tenant access controls.
- Applies rate-limiting on mutation routes, uses structured logging, and enforces strict type safety and Zod validation across property/building-related code.
- Use case: when creating or modifying properties, buildings, or related APIs and migrations, this guard prevents regressions by validating patterns and configurations.
Quick Start
Activate this guard whenever touching property or building code and follow its rules during development and code reviews.