PACT governance framework — D/T/R accountability grammar, operating envelopes, knowledge clearance, and verification gradient for AI agent organizations
Project description
kailash-pact
PACT governance framework — D/T/R accountability grammar, operating envelopes, knowledge clearance, and verification gradient for AI agent organizations.
Part of the Kailash enterprise AI platform.
Quick Start
from pact.governance import GovernanceEngine
engine = GovernanceEngine.from_yaml("my-org.yaml")
verdict = engine.verify_action("D1-R1-T1-R1", "write_report", {"cost": 50.0})
if verdict.allowed:
print("Approved:", verdict.reason)
else:
print("Blocked:", verdict.reason)
Installation
pip install kailash-pact
With Kaizen agent integration:
pip install kailash-pact[kaizen]
Features
- D/T/R Grammar Engine — Accountability grammar (Department/Team/Role) with positional addressing
- Three-Layer Envelopes — Role (standing) + Task (ephemeral) = Effective (computed intersection)
- Knowledge Clearance — Five-level classification independent of authority/seniority
- 5-Step Access Enforcement — Clearance → Classification → Compartment → Containment → Deny
- GovernanceEngine — Single facade composing all primitives
- PactGovernedAgent — Wrap any Kaizen agent with governance enforcement
- SQLite/PostgreSQL Stores — Persistent governance state
- REST API — 9 governance endpoints with auth and rate limiting
- CLI —
kailash-pact validate org.yaml
Documentation
- Quickstart — Zero to governance in 10 minutes
- Architecture — How it all fits together
- Vertical Guide — Build your own governed platform
- API Reference — REST endpoints
- Cookbook — Common patterns
- YAML Schema — Org definition format
License
Apache 2.0 — Terrene Foundation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kailash_pact-0.3.0-py3-none-any.whl.
File metadata
- Download URL: kailash_pact-0.3.0-py3-none-any.whl
- Upload date:
- Size: 135.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0d93251d0f40263f138f88398074985f03e79fe7b767cf398a194618d1c6faf
|
|
| MD5 |
d726b1614a307e6e2c90d26abcc6e258
|
|
| BLAKE2b-256 |
9ee9da84561d50509b0f2343b01cc031d3ba13e04193fe4e4c9bda6e99b1494c
|