Exception: Parse::Agent::MissingTenantScope

Inherits:
AgentError
  • Object
show all
Defined in:
lib/parse/agent/errors.rb

Overview

Raised at semantic-search dispatch time when at least one class in the model registry declares +agent_tenant_scope+ but the class being searched does not. In a tenant-aware deployment an un-scoped searchable surface would let an agent retrieve across tenant boundaries, so the gate is a hard refusal, not a warning. Enforced at dispatch (when all classes are loaded) rather than at +agent_searchable+ declaration time so class-load order can't produce a false negative.