Versions in this module Expand all Collapse all v1 v1.4.0 Oct 20, 2026 Changes in this version + const Revision + type Decision struct + Allow bool + DenyReasons []string + RequiresApproval bool + type Engine struct + func New(tenants TenantPolicies) (*Engine, error) + func (e *Engine) Evaluate(ctx context.Context, tenantID string, task TaskContext) Decision + func (e *Engine) EvaluateModel(ctx context.Context, tenantID string, model ModelContext) Decision + func (e *Engine) EvaluatePeer(ctx context.Context, tenantID string, peer PeerContext) Decision + func (e *Engine) EvaluateTool(ctx context.Context, tenantID string, tool ToolContext) Decision + type ModelContext struct + Name string + type PeerContext struct + To string + type TaskContext struct + Priority int + type TenantPolicies map[string]TenantPolicy + type TenantPolicy struct + AllowedModels []string + AllowedPeers []string + AllowedTools []string + ApprovalRequiredRisk string + MaxPriority int + type ToolContext struct + Action string + Name string + Resource string + Risk string + Version string