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
Metadata
Release files for trusted-agent-engine 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trusted_agent_engine-2.0.0.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trusted_agent_engine-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.5 kB
Release files / trusted_agent_engine-2.0.0.tar.gz
| Download URL | trusted_agent_engine-2.0.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ad4a07f9b4752ae58a287ed64c7d4b364725a8dfd6c254375854933d69eae6f
|
|
BLAKE2b-256 checksum How to use checksums |
45708ce216319d448c13ec3b985a380d34ef424d1c08b7dcd83566f41aff8564
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.
Transparency logRelease files / trusted_agent_engine-2.0.0-py3-none-any.whl
| Download URL | trusted_agent_engine-2.0.0-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47af191db70ea6a022fb4a0fefb7e966374b2bf10dcf38b6d004617bce41eedb
|
|
BLAKE2b-256 checksum How to use checksums |
e387493096ec5b40acb8965f61af16921d9cfa37bc53db25bccc0f9a0988879a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 3, 2026.
Transparency log