Gazebo
    ServicesAgentsDocsSpecWritingPricing
    Log inSign up
    Log in

    Overview

    • Introduction
    • Changelog
    • Implementations

    Identity

    • Identity declaration
    • Scope syntax

    Consent

    • The consent token
    • Verification

    Runtime

    • Overview
    • Access policy
    • Audit log
    • Credential broker
    • Compliance mappings

    Implementing AIP

    • Compatibility guide
    AIP Specification

    Overview

    • Introduction
    • Changelog
    • Implementations

    Identity

    • Identity declaration
    • Scope syntax

    Consent

    • The consent token
    • Verification

    Runtime

    • Overview
    • Access policy
    • Audit log
    • Credential broker
    • Compliance mappings

    Implementing AIP

    • Compatibility guide
    SpecRuntimeAccess policy

    Access Policy

    An access policy document is a machine-readable declaration of what a specific agent installation may do, including any approval rules that gate specific operations.

    Schema

    {
      "$schema": "https://schema.gazebohq.com/v0.1/policy.json",
      "aip": "0.1",
      "agent_id": "stripe-payment-monitor",
      "install_id": "...",
      "version": "1.0.0",
      "policy": [
        {
          "service": "stripe",
          "actions": ["payments:read", "charges:list", "charges:create"]
        },
        {
          "service": "github",
          "actions": ["issues:write"]
        }
      ],
      "approval_rules": [
        {
          "service": "stripe",
          "actions": ["charges:create"],
          "threshold": { "amount_usd": 100 },
          "requires_approval": true
        }
      ]
    }
    

    Fields

    FieldRequiredDescription
    $schemayesUse the canonical https://schema.gazebohq.com/v0.1/policy.json URL by default. A validator may accept an explicitly trusted, content-equivalent mirror that preserves the canonical schema $id; arbitrary schema URLs are not conforming.
    aipyesProtocol version. Must match the agent identity declaration.
    agent_idyesMust match the id in the agent's identity declaration.
    install_idyesUnique identifier for this installation — links the policy to the consent token.
    versionyesMust match the agent version that was consented to.
    policyyesNon-empty array of service permission objects using the scope syntax. Must be equal to or narrower than the declared scope.
    approval_rulesnoArray of conditional approval rules. Each rule's actions must already appear in policy; matching actions require human approval before execution.

    Policy narrowing

    A policy document may grant a subset of the agent's declared scope. It may never grant more than the declared scope — enforced by the identity provider at install time. The installing user may narrow scope further at consent time; the policy document reflects the scope actually granted.

    Approval rules

    Approval rules gate specific operations already granted by policy behind human confirmation. A rule specifies:

    • service and actions — which operations are gated
    • threshold (optional) — exactly one condition that triggers the gate
    • requires_approval: true — the broker must hold the request and notify the approver before proceeding

    If threshold is omitted, the rule applies to every matching operation. A v0.1 threshold object must contain exactly one of:

    FieldTypeMeaning
    amount_usdnon-negative numberApply the rule when the operation's USD amount is at least this value.
    record_countnon-negative integerApply the rule when the operation affects at least this many records.

    Unknown threshold fields and threshold objects containing both fields are not conforming in v0.1.

    OverviewAudit log
    Gazebo

    IAM for AI agents. Scoped credentials, access policies, and audit trails — without rotating keys.

    Product

    • Pricing
    • Status

    Explore

    • Services
    • Agents
    • Workflows
    • Integrations

    Content

    • Writing
    • Topics
    • Blog
    • Docs

    Free Tools

    • Scanner

    Company

    • About
    • hello@gazebohq.com
    • security@gazebohq.com

    © 2026 Gazebo. All rights reserved.

    PrivacyTermsSecurity