Extract ash_resource? helper to reduce nesting depth. Add ensure_role_loaded fallback for unloaded actor roles.
31 tests covering all 4 permission sets and bypass scenarios Update HasPermission tests to expect false for scope :own without record
Add comprehensive test suite for the HasPermission Ash Policy Check covering permission lookup, scope application, error handling, and logging.