Class: Protege::AgentToolkitRule

Inherits:
ApplicationRecord show all
Defined in:
app/models/protege/agent_toolkit_rule.rb

Overview

One allow/deny address rule for a toolkit grant's sender gate — the dashboard-editable pattern that decides which correspondents can unlock this agent's copy of a toolkit's tools. Belongs to the attachment (+AgentToolkit+), not the toolkit, so each grant is gated independently. Mirrors AccessRule: each row carries a kind (+allow+/+deny+) and an address pattern (an exact address or a * wildcard such as *@company.co); the grant folds its rules into a Gateway::AccessPolicy via Protege::AgentToolkit#access_policy.