Skip to main content

PACT Platform — human judgment surface for governed AI operations. Org definition, approval UX, work management, dashboard, and deployment on top of kailash-pact governance primitives.

Project description

PACT Platform

License Python Tests

Human judgment surface for governed AI operations.

PACT Platform is a Layer 3 application built on kailash-pact governance primitives and kaizen-agents autonomous execution. It provides the org definition, approval UX, work management, dashboard, and deployment that turn governance rules into an operational system.

Not a generic agent orchestrator. Every agent action passes through a governance pipeline -- D/T/R accountability, operating envelopes, knowledge clearance, and verification gradient -- before execution.


Quick Start

pip install pact-platform[all]
pact quickstart --example university

This loads the university demo org, registers 3 agents, seeds sample data, and starts the API server at http://localhost:8000.

What you'll see:

  • Dashboard at http://localhost:3000 -- objectives, requests, approvals, cost tracking
  • 1 HELD action in the approval queue (researcher needs CONFIDENTIAL clearance)
  • $0.10 total cost across 3 demo agent runs
  • API at http://localhost:8000/docs -- 42+ endpoints

Architecture

┌─────────────────────────────────────────────────────┐
│  L3: pact-platform (this package)                   │
│  ┌────────┐ ┌────────┐ ┌─────┐ ┌──────────────┐    │
│  │ Models │ │ API    │ │ CLI │ │ Integrations │    │
│  │ (11)   │ │ (42+)  │ │     │ │ Slack/Teams  │    │
│  └────────┘ └────────┘ └─────┘ └──────────────┘    │
│  ┌─────────────────────────────────────────────┐    │
│  │ Engine: Envelope Adapter, Governed Delegate, │    │
│  │ Approval Bridge, Supervisor Orchestrator     │    │
│  └─────────────────────────────────────────────┘    │
├─────────────────────────────────────────────────────┤
│  L2: kaizen-agents (GovernedSupervisor)             │
├─────────────────────────────────────────────────────┤
│  L1: kailash-pact (GovernanceEngine, D/T/R grammar) │
│  L1: kailash[trust] (EATP SDK, trust chains)        │
│  L1: kailash-dataflow (auto-generated CRUD nodes)   │
├─────────────────────────────────────────────────────┤
│  L0: Kailash Core SDK (workflow runtime, 140+ nodes) │
└─────────────────────────────────────────────────────┘

Key Concepts

Concept What it means
D/T/R Grammar Department → Team → Role. Every address resolves to exactly one governance envelope.
Operating Envelope Five constraint dimensions: Financial, Operational, Temporal, Data Access, Communication.
Knowledge Clearance Five levels: PUBLIC → RESTRICTED → CONFIDENTIAL → SECRET → TOP_SECRET.
Verification Gradient Four zones: AUTO_APPROVED → FLAGGED → HELD → BLOCKED.
GovernedSupervisor Autonomous agent execution within governance constraints.

CLI Reference

pact quickstart --example university   # Demo with seeded data
pact org create my-org.yaml            # Load org from YAML
pact org list                          # List compiled orgs
pact role assign D1-T1-R1 agent-001    # Assign agent to role
pact clearance grant D1-T1-R1 CONFIDENTIAL  # Grant clearance
pact bridge create D1-R1 D2-R1         # Cross-functional bridge
pact envelope show D1-T1-R1            # Show effective envelope
pact agent register agent-001 D1-T1-R1 # Register agent
pact audit export --format json        # Export audit trail

API Endpoints

Group Prefix Endpoints
Objectives /api/v1/objectives create, list, detail, update, cancel, requests, cost
Requests /api/v1/requests submit, list, detail, cancel, sessions, artifacts
Sessions /api/v1/sessions list, detail, pause, resume
Decisions /api/v1/decisions list, detail, approve, reject, stats
Pools /api/v1/pools create, list, detail, add/remove members, capacity
Reviews /api/v1/reviews list, detail, add finding, finalize
Metrics /api/v1/platform/metrics cost, throughput, governance, budget
Governance /api/v1/ teams, agents, envelopes, trust-chains, bridges, etc.

Docker Deployment

docker compose up

Services:

  • api — FastAPI server (port 8000)
  • web — Next.js dashboard (port 3000)

Development

git clone https://github.com/terrene-foundation/pact.git
cd pact
pip install -e ".[all,dev]"
pytest  # 1838 tests

License

Apache 2.0 — Terrene Foundation (Singapore CLG). Fully independent, irrevocably open.

The Quartet

Standard Purpose License
CARE Governance philosophy (Dual Plane Model) CC BY 4.0
PACT Architecture (D/T/R, envelopes, clearance, gradient) CC BY 4.0
EATP Protocol (trust chains, delegation, verification) CC BY 4.0
CO Methodology (human-AI collaboration) CC BY 4.0

Project details


Download files

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

Source Distribution

pact_platform-0.3.0.tar.gz (279.6 kB view details)

Uploaded Source

Built Distribution

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

pact_platform-0.3.0-py3-none-any.whl (344.5 kB view details)

Uploaded Python 3

File details

Details for the file pact_platform-0.3.0.tar.gz.

File metadata

  • Download URL: pact_platform-0.3.0.tar.gz
  • Upload date:
  • Size: 279.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pact_platform-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ee946c4e53d1ee66d78e993e0efad51ccc7924c215be95ff57b55e8485fc4d8c
MD5 63fb6d91f933a2cd714abb5311ad0f94
BLAKE2b-256 269e0e1c65d9a08d62cf722c9c714c7333a077768f8b43cbed4e6a63947513d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pact_platform-0.3.0.tar.gz:

Publisher: publish.yml on terrene-foundation/pact

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

File details

Details for the file pact_platform-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pact_platform-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 344.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pact_platform-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c74065ecb90c0c9ba49d7c6c0f8d5f6084ef281f4be380829f91caccb18d0692
MD5 e11f208f5fc659766d9c806a0287f086
BLAKE2b-256 74049d07604f29f502fd011ac6c9e24e6dbc29928d0735e02e06e274f9e7b38b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pact_platform-0.3.0-py3-none-any.whl:

Publisher: publish.yml on terrene-foundation/pact

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