Skip to main content

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

  1. 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.
  2. Trust, but Verify: Every line of Diff passes through a multi-layer perception engine (anomaly detection, entropy analysis, risk matching) for decoupled review.
  3. 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


Download files

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

Source Distribution

trusted_agent_engine-2.0.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

trusted_agent_engine-2.0.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

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

Hashes for trusted_agent_engine-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6ad4a07f9b4752ae58a287ed64c7d4b364725a8dfd6c254375854933d69eae6f
MD5 3c4ecf08f4c43d2c44b782f32daaba04
BLAKE2b-256 45708ce216319d448c13ec3b985a380d34ef424d1c08b7dcd83566f41aff8564

See more details on using hashes here.

Provenance

The following attestation bundles were made for trusted_agent_engine-2.0.0.tar.gz:

Publisher: workflow.yml on yuanguangshan/pyuangs

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

File details

Details for the file trusted_agent_engine-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for trusted_agent_engine-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47af191db70ea6a022fb4a0fefb7e966374b2bf10dcf38b6d004617bce41eedb
MD5 715552aac776ee72a06e3636df91b9c0
BLAKE2b-256 e387493096ec5b40acb8965f61af16921d9cfa37bc53db25bccc0f9a0988879a

See more details on using hashes here.

Provenance

The following attestation bundles were made for trusted_agent_engine-2.0.0-py3-none-any.whl:

Publisher: workflow.yml on yuanguangshan/pyuangs

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