LatticeRegistry
ModulesTemplatesContributorsDocs
Lattice

Runtime enforcement and identity infrastructure for autonomous AI agents.

Registry

  • Modules
  • Templates
  • Contributors
  • Search

Resources

  • Documentation
  • GitHub
  • Contributing

Lattice

  • Website
  • Runtime
  • Contact

© 2026 Lattice Runtime. Apache 2.0 License.

Back to Modules

Policy Engine

lattice/policy-engine

Runtime policy enforcement and authorization rules for AI agents

policy
authorization
enforcement
security
agent

Quick Start

module "policy-engine" {
  source   = "registry.latticeruntime.com/lattice/policy-engine/lattice"
  version  = "1.0.0"

  # Configure module inputs
  agent_id = lattice_agent.main.id
}

Inputs

NameDescriptionTypeDefault
policiesList of policy definitionslist(object)[]
default_effectDefault policy effect (allow/deny)string"deny"
enable_auditEnable audit logging for policy decisionsbooltrue
audit_retention_daysNumber of days to retain audit logsnumber30

Outputs

NameDescription
audit_endpointThe audit log endpoint

Documentation

Policy Engine

This module configures runtime policy enforcement for AI agents in Lattice Runtime.

Features

  • Define authorization policies for agent actions
  • Rate limiting and resource quotas
  • Action allowlists and blocklists
  • Audit logging for policy decisions

Usage

module "policy-engine" {
  source   = "registry.latticeruntime.com/lattice/policy-engine/lattice"
  version  = "1.0.0"
  agent_id = lattice_agent.main.id

  # Define policies
  policies = [
    {
      name   = "api-rate-limit"
      effect = "allow"
      actions = ["api:*"]
      conditions = {
        rate_limit = "100/minute"
      }
    },
    {
      name   = "deny-destructive"
      effect = "deny"
      actions = ["system:delete", "system:shutdown"]
    }
  ]
}

Inputs

Name Description Type Default Required
agent_id The ID of the Lattice agent string - yes
policies List of policy definitions list(object) [] no
default_effect Default policy effect (allow/deny) string "deny" no
enable_audit Enable audit logging for policy decisions bool true no
audit_retention_days Number of days to retain audit logs number 30 no

Outputs

Name Description
policy_endpoint The policy evaluation endpoint
audit_endpoint The audit log endpoint

Published by

Lattice
Lattice
@latticeHQ

Links

View SourceReport Issue

Add to your Lattice template:

source = "registry.latticeruntime.com/lattice/policy-engine/lattice"