Trusted AI Agent Governance Engine
Project description
Trusted AI Agent Governance Engine (TAAGE) 🛡️
TAAGE is a governance engine designed for AI agents, featuring sovereignty awareness and self-evolution capabilities. It provides a solid defense boundary for AI behavior through physical decoupling of rule hot-loading, Ed25519 signature verification, and credit score game mechanisms.
🌟 Core Philosophy
- Sovereignty Over Intelligence: Only the human with the private key is the commander-in-chief of the project. AI rule modifications must be signed by the sovereign.
- Trust, but Verify: Every line of Diff passes through a multi-layer perception engine (anomaly detection, entropy analysis, risk matching) for decoupled review.
- Self-Audit: The system automatically monitors governance health, identifying performance drift and permission creep.
🚀 Quick Start (Python)
1. Installation
pip install trusted-agent-engine
2. Initialize Sovereignty Keys
Generate your governance identity:
trusted-engine init
.ai/sovereign.key: Your private key (NEVER commit to Git)..ai/sovereign.pub: Your public key.
3. Configure and Sign Policy
Create agent.policy.yaml and sign it with your private key:
# 1. Create policy
cat > agent.policy.yaml <<EOF
meta:
mode: strict
privileges: ["high-risk-decision"]
scopes:
- id: "src"
allow: ["src/**"]
rules:
- id: "scope-enforcement"
check: {"!": {"var": "engine.isScoped"}}
action: "block"
description: "Unauthorized file access detected"
EOF
# 2. Sign it
trusted-engine sign agent.policy.yaml
🛠 Integration Guide
Option A: One-click Wrapper (Python)
import asyncio
from trusted_agent_engine import TrustedGuard, Proposal
async def main():
proposal = Proposal(
id='p-001',
author='ai-agent',
reasoning='Update user login logic',
files=['src/auth.py'],
diff='... standard git diff ...'
)
# Evaluate: auto-load policy, verify signature, audit and log
decision = await TrustedGuard.evaluate("./", proposal)
if not decision.allowed:
print(f"🚫 Blocked: {decision.audit_log}")
return
print(f"✅ Allowed, Value Score: {decision.valueScore}")
if __name__ == "__main__":
asyncio.run(main())
Option B: CLI Interception
Run before your AI Agent executes tasks:
trusted-engine check --author=ai
🌐 API Service Mode
Start a standalone governance gateway:
trusted-engine serve
Default: http://localhost:3000.
📊 Governance Insights
The engine automatically discovers:
- Trusted Patterns: Suggests promoting frequently successful paths to trusted scopes.
- Frequent Violations: Suggests hardening rules that are frequently triggered.
Stored in .ai/governance_assets.json.
⚖️ License
MIT License.
pyuangs
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 Distribution
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 trusted_agent_engine-2.0.0.tar.gz.
File metadata
- Download URL: trusted_agent_engine-2.0.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ad4a07f9b4752ae58a287ed64c7d4b364725a8dfd6c254375854933d69eae6f
|
|
| MD5 |
3c4ecf08f4c43d2c44b782f32daaba04
|
|
| BLAKE2b-256 |
45708ce216319d448c13ec3b985a380d34ef424d1c08b7dcd83566f41aff8564
|
Provenance
The following attestation bundles were made for trusted_agent_engine-2.0.0.tar.gz:
Publisher:
workflow.yml on yuanguangshan/pyuangs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trusted_agent_engine-2.0.0.tar.gz -
Subject digest:
6ad4a07f9b4752ae58a287ed64c7d4b364725a8dfd6c254375854933d69eae6f - Sigstore transparency entry: 907325004
- Sigstore integration time:
-
Permalink:
yuanguangshan/pyuangs@281392927f7dff7b4a076f64627db412f55bc0cb -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/yuanguangshan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@281392927f7dff7b4a076f64627db412f55bc0cb -
Trigger Event:
push
-
Statement type:
File details
Details for the file trusted_agent_engine-2.0.0-py3-none-any.whl.
File metadata
- Download URL: trusted_agent_engine-2.0.0-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47af191db70ea6a022fb4a0fefb7e966374b2bf10dcf38b6d004617bce41eedb
|
|
| MD5 |
715552aac776ee72a06e3636df91b9c0
|
|
| BLAKE2b-256 |
e387493096ec5b40acb8965f61af16921d9cfa37bc53db25bccc0f9a0988879a
|
Provenance
The following attestation bundles were made for trusted_agent_engine-2.0.0-py3-none-any.whl:
Publisher:
workflow.yml on yuanguangshan/pyuangs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trusted_agent_engine-2.0.0-py3-none-any.whl -
Subject digest:
47af191db70ea6a022fb4a0fefb7e966374b2bf10dcf38b6d004617bce41eedb - Sigstore transparency entry: 907325021
- Sigstore integration time:
-
Permalink:
yuanguangshan/pyuangs@281392927f7dff7b4a076f64627db412f55bc0cb -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/yuanguangshan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@281392927f7dff7b4a076f64627db412f55bc0cb -
Trigger Event:
push
-
Statement type: