Exception: LcpRuby::Authorization::InvariantError

Inherits:
AuthorizationError show all
Defined in:
lib/lcp_ruby/authorization/invariant_error.rb

Overview

Boot-time invariant violation raised by RuntimeInvariantValidator when permission YAML references runtime concepts (custom-scope methods, columns, parent permissions) that don’t exist.

Dev/test: raised, surfacing the misconfiguration at ‘bin/rails s` or in CI before any traffic. Production: routed through `LcpRuby.record_error` (boot continues unless `invariant_check.fail_boot = true`).