Skip to main content

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
  • CLIkailash-pact validate org.yaml

Documentation

License

Apache 2.0 — Terrene Foundation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kailash_pact-0.10.0-py3-none-any.whl (84.4 kB view details)

Uploaded Python 3

File details

Details for the file kailash_pact-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: kailash_pact-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 84.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kailash_pact-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e149b6f83eabd6a89eefd44c71dc58c2e6f98af78ca81c861c625853b947c1
MD5 09f57e89ab0ec167201cc3cc8ecedc9a
BLAKE2b-256 d62b1038b131df576df2418f7f3a7f7b3ea357698323fb90655a4e8bc33c806c

See more details on using hashes here.

Provenance

The following attestation bundles were made for kailash_pact-0.10.0-py3-none-any.whl:

Publisher: publish-pypi.yml on terrene-foundation/kailash-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page