Module: Ask::Agent::Policies
- Defined in:
- lib/ask/agent.rb,
lib/ask/agent/policies/audit_log.rb,
lib/ask/agent/policies/permissions.rb,
lib/ask/agent/policies/rate_limiter.rb,
lib/ask/agent/policies/approval_policy.rb,
lib/ask/agent/policies/permission_rules.rb,
lib/ask/agent/policies/audit_log/active_record_writer.rb
Overview
Policies are opt-in, replaceable implementations of the tool-lifecycle hook seam (before_tool / after_tool). The agent loop runs without them and their semantics are unchanged by their absence; users compose and swap them freely (see Ask::Agent::Hooks for the seam).
A policy is NOT core machinery. Core mechanisms live on Session — the
approval queue, the :pending result status, and the approval: true
option are core; Policies::ApprovalPolicy is the reference
classification policy wired on top of them.
Defined Under Namespace
Classes: ApprovalPolicy, AuditLog, PermissionRules, Permissions, RateLimiter