Introduction
Policy simulation engine for AI agent pricing governance
guardrail-sim
guardrail-sim tests AI pricing policies before they cost you millions. Define discount caps, margin floors, and volume tiers—then let deterministic rules govern what AI agents can approve.
The Problem
You're deploying an AI sales agent. It can negotiate discounts. But:
- Will it honor your margin floors? Or give 40% off to anyone who asks nicely?
- How does it behave at scale? One bad discount is a rounding error. 10,000 is a crisis.
- Can you prove compliance? When finance asks, "what are the rules?", show them—don't guess.
The Solution
Define policies declaratively. Evaluate discounts deterministically.
Features
- Deterministic policies: json-rules-engine ensures predictable, auditable outcomes
- MCP integration: 5 tools for AI agent integration via Model Context Protocol
- UCP alignment: Compatible with Universal Commerce Protocol for agentic commerce
- Policy insights: Health checks and recommendations for policy optimization
- Type-safe: Full TypeScript support with inference
Packages
| Package | Description |
|---|---|
| @guardrail-sim/policy-engine | Core policy evaluation engine |
| @guardrail-sim/mcp-server | MCP server for AI agent integration |
| @guardrail-sim/ucp-types | UCP type definitions and converters |
| @guardrail-sim/insights | Policy health checks and recommendations |
Next Steps
- Getting Started - Set up guardrail-sim in your project
- Core Concepts - Learn about policies and evaluation
- MCP Tools - Use guardrail-sim with AI assistants
- Examples - See real-world usage patterns