{"id":48039122,"url":"https://github.com/terrene-foundation/pact","last_synced_at":"2026-04-04T14:05:12.096Z","repository":{"id":345175835,"uuid":"1180465043","full_name":"terrene-foundation/pact","owner":"terrene-foundation","description":"PACT Platform — governed AI operations with D/T/R accountability, operating envelopes, and verification gradient (Apache 2.0)","archived":false,"fork":false,"pushed_at":"2026-04-02T05:29:40.000Z","size":47694,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T18:53:28.628Z","etag":null,"topics":["ai-agents","governance","pact","terrene-foundation","trust"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terrene-foundation.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-13T04:18:21.000Z","updated_at":"2026-04-02T05:29:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/terrene-foundation/pact","commit_stats":null,"previous_names":["terrene-foundation/care","terrene-foundation/pact"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/terrene-foundation/pact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrene-foundation%2Fpact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrene-foundation%2Fpact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrene-foundation%2Fpact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrene-foundation%2Fpact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terrene-foundation","download_url":"https://codeload.github.com/terrene-foundation/pact/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terrene-foundation%2Fpact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","governance","pact","terrene-foundation","trust"],"created_at":"2026-04-04T14:05:11.326Z","updated_at":"2026-04-04T14:05:12.075Z","avatar_url":"https://github.com/terrene-foundation.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PACT Platform\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/)\n[![Tests](https://img.shields.io/badge/tests-1838%20passed-green.svg)]()\n\n**Human judgment surface for governed AI operations.**\n\nPACT 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.\n\n\u003e **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.\n\n---\n\n## Quick Start\n\n```bash\npip install pact-platform[all]\npact quickstart --example university\n```\n\nThis loads the university demo org, registers 3 agents, seeds sample data, and starts the API server at `http://localhost:8000`.\n\n### What you'll see:\n\n- **Dashboard** at `http://localhost:3000` -- objectives, requests, approvals, cost tracking\n- **1 HELD action** in the approval queue (researcher needs CONFIDENTIAL clearance)\n- **$0.10 total cost** across 3 demo agent runs\n- **API** at `http://localhost:8000/docs` -- 42+ endpoints\n\n---\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────┐\n│  L3: pact-platform (this package)                   │\n│  ┌────────┐ ┌────────┐ ┌─────┐ ┌──────────────┐    │\n│  │ Models │ │ API    │ │ CLI │ │ Integrations │    │\n│  │ (11)   │ │ (42+)  │ │     │ │ Slack/Teams  │    │\n│  └────────┘ └────────┘ └─────┘ └──────────────┘    │\n│  ┌─────────────────────────────────────────────┐    │\n│  │ Engine: Envelope Adapter, Governed Delegate, │    │\n│  │ Approval Bridge, Supervisor Orchestrator     │    │\n│  └─────────────────────────────────────────────┘    │\n├─────────────────────────────────────────────────────┤\n│  L2: kaizen-agents (GovernedSupervisor)             │\n├─────────────────────────────────────────────────────┤\n│  L1: kailash-pact (GovernanceEngine, D/T/R grammar) │\n│  L1: kailash[trust] (EATP SDK, trust chains)        │\n│  L1: kailash-dataflow (auto-generated CRUD nodes)   │\n├─────────────────────────────────────────────────────┤\n│  L0: Kailash Core SDK (workflow runtime, 140+ nodes) │\n└─────────────────────────────────────────────────────┘\n```\n\n## Key Concepts\n\n| Concept                   | What it means                                                                             |\n| ------------------------- | ----------------------------------------------------------------------------------------- |\n| **D/T/R Grammar**         | Department → Team → Role. Every address resolves to exactly one governance envelope.      |\n| **Operating Envelope**    | Five constraint dimensions: Financial, Operational, Temporal, Data Access, Communication. |\n| **Knowledge Clearance**   | Five levels: PUBLIC → RESTRICTED → CONFIDENTIAL → SECRET → TOP_SECRET.                    |\n| **Verification Gradient** | Four zones: AUTO_APPROVED → FLAGGED → HELD → BLOCKED.                                     |\n| **GovernedSupervisor**    | Autonomous agent execution within governance constraints.                                 |\n\n## CLI Reference\n\n```bash\npact quickstart --example university   # Demo with seeded data\npact org create my-org.yaml            # Load org from YAML\npact org list                          # List compiled orgs\npact role assign D1-T1-R1 agent-001    # Assign agent to role\npact clearance grant D1-T1-R1 CONFIDENTIAL  # Grant clearance\npact bridge create D1-R1 D2-R1         # Cross-functional bridge\npact envelope show D1-T1-R1            # Show effective envelope\npact agent register agent-001 D1-T1-R1 # Register agent\npact audit export --format json        # Export audit trail\n```\n\n## API Endpoints\n\n| Group      | Prefix                     | Endpoints                                             |\n| ---------- | -------------------------- | ----------------------------------------------------- |\n| Objectives | `/api/v1/objectives`       | create, list, detail, update, cancel, requests, cost  |\n| Requests   | `/api/v1/requests`         | submit, list, detail, cancel, sessions, artifacts     |\n| Sessions   | `/api/v1/sessions`         | list, detail, pause, resume                           |\n| Decisions  | `/api/v1/decisions`        | list, detail, approve, reject, stats                  |\n| Pools      | `/api/v1/pools`            | create, list, detail, add/remove members, capacity    |\n| Reviews    | `/api/v1/reviews`          | list, detail, add finding, finalize                   |\n| Metrics    | `/api/v1/platform/metrics` | cost, throughput, governance, budget                  |\n| Governance | `/api/v1/`                 | teams, agents, envelopes, trust-chains, bridges, etc. |\n\n## Docker Deployment\n\n```bash\ndocker compose up\n```\n\nServices:\n\n- **api** — FastAPI server (port 8000)\n- **web** — Next.js dashboard (port 3000)\n\n## Development\n\n```bash\ngit clone https://github.com/terrene-foundation/pact.git\ncd pact\npip install -e \".[all,dev]\"\npytest  # 1838 tests\n```\n\n## License\n\nApache 2.0 — Terrene Foundation (Singapore CLG). Fully independent, irrevocably open.\n\n## The Quartet\n\n| Standard | Purpose                                              | License   |\n| -------- | ---------------------------------------------------- | --------- |\n| **CARE** | Governance philosophy (Dual Plane Model)             | CC BY 4.0 |\n| **PACT** | Architecture (D/T/R, envelopes, clearance, gradient) | CC BY 4.0 |\n| **EATP** | Protocol (trust chains, delegation, verification)    | CC BY 4.0 |\n| **CO**   | Methodology (human-AI collaboration)                 | CC BY 4.0 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrene-foundation%2Fpact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterrene-foundation%2Fpact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterrene-foundation%2Fpact/lists"}