Skip to content

LOLA0786/UAAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ UAAL - Universal Agent Action Layer

The Zero-Trust Control Plane for AI Agents

Deploy autonomous AI agents safely with enterprise-grade governance, compliance, and security controls.

License: MIT Python 3.9+ PRs Welcome


🎯 What is UAAL?

UAAL is the missing governance layer for AI agents. It sits between your AI agents and the systems they interact with, enforcing:

βœ… Zero-Trust Access - Least-privilege policies for every agent action
βœ… Human-in-the-Loop - Approval workflows for high-risk operations
βœ… Spend Controls - Set and enforce budget limits per agent/team
βœ… Complete Audit Trail - Every action logged for compliance
βœ… Action Replay - Simulate what-if scenarios before execution
βœ… Instant Rollback - Undo any agent action with one click
βœ… Multi-Provider - Works with OpenAI, Anthropic, Google, any LLM


πŸ”₯ Why UAAL?

The Problem

AI agents can now act autonomously across your systems - accessing databases, calling APIs, moving money, and making decisions. But:

  • 🚨 80% of companies have experienced unintended AI agent actions
  • πŸ’Έ No visibility into AI spending until the bill arrives
  • βš–οΈ Compliance teams can't audit what agents did
  • πŸ”“ Traditional IAM doesn't cover AI agents

The Solution

UAAL creates a control plane that standardizes, governs, and secures all AI agent actions - giving you:

  • Visibility: See every action in real-time
  • Control: Enforce policies before actions execute
  • Compliance: Complete audit logs for SOC2, HIPAA, GDPR
  • Safety: Rollback dangerous actions instantly

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   OpenAI    β”‚     β”‚  Anthropic  β”‚     β”‚   Gemini    β”‚
β”‚   Agents    │────▢│   Agents    │────▢│   Agents    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                   β”‚                    β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚  UAAL Control β”‚
                   β”‚     Plane     β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
            β–Ό              β–Ό              β–Ό
      [Policy       [Approval      [Audit
       Engine]       Workflow]      Logger]
            β”‚              β”‚              β”‚
            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚  Target APIs  β”‚
                   β”‚   & Systems   β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Installation

# Clone the repo
git clone https://github.com/LOLA0786/UAAL.git
cd UAAL

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run the server
uvicorn app_v2:app --reload --port 8000

Send Your First Action

from agent_sdk import send_to_uaal

# Agent wants to send an email
result = send_to_uaal(
    adapter="openai_function",
    agent_output={
        "action": "send_email",
        "to": "ceo@company.com",
        "subject": "Q4 Results"
    },
    require_approval=True  # High-risk action
)

print(f"Action ID: {result['action_id']}")
print(f"Status: {result['status']}")  # "pending_approval"

πŸ“š Core Features

1. Universal Action Schema

All agent actions are normalized to a standard format:

{
  "action_id": "act_abc123",
  "agent_id": "gpt-4-analyst",
  "action_type": "api_call",
  "target": "stripe.com/v1/charges",
  "parameters": {...},
  "risk_level": "high",
  "estimated_cost": 150.00
}

2. Policy Engine

Define rules that automatically approve, block, or require human review:

# Block actions over $10k
policy = {
    "rule": "block_if",
    "condition": "estimated_cost > 10000",
    "action": "require_approval"
}

3. Approval Workflows

Route high-risk actions to the right humans:

# Approve via API
POST /api/v1/actions/{action_id}/approve
{
    "approver": "cfo@company.com",
    "notes": "Approved for Q4 budget"
}

4. Spend Tracking

Monitor and limit AI spending in real-time:

# Set budget limits
POST /api/v1/agents/{agent_id}/budget
{
    "daily_limit": 500,
    "monthly_limit": 10000,
    "alert_threshold": 0.8
}

5. Action Replay & Simulation

Test what-if scenarios before executing:

# Simulate without executing
result = replay_action(
    action_id="act_abc123",
    simulation_mode=True
)

6. Instant Rollback

Undo any action with full audit trail:

# Rollback a payment
POST /api/v1/actions/{action_id}/undo
{
    "reason": "Incorrect amount",
    "undone_by": "ops@company.com"
}

🎯 Use Cases

FinTech

  • Problem: AI agent moved $50K to wrong account
  • Solution: UAAL requires approval for transfers >$1K, maintains audit trail for compliance

Healthcare

  • Problem: Need HIPAA audit logs for AI accessing patient data
  • Solution: UAAL logs every data access with timestamps, user IDs, and purposes

E-Commerce

  • Problem: AI agent gave 90% discount to all customers
  • Solution: UAAL policy engine blocks discounts >50%, rollback fixed the mistake

SaaS Platforms

  • Problem: No visibility into which AI agent is burning through API credits
  • Solution: UAAL tracks costs per agent, alerts when budgets are exceeded

UAAL β€” Verifiable AI Decision Infrastructure

UAAL (Universal AI Authorization Layer) ensures that autonomous AI actions are provable, auditable, and tamper-evident.

This is not logging. This is cryptographic decision accountability.


Why UAAL Exists

Modern AI agents can:

  • change prices
  • approve transactions
  • trigger emails
  • modify systems

Traditional logs can be edited. UAAL produces immutable decision evidence that can be verified independently.


What UAAL Guarantees

For every AI action:

  1. Authorization
    • Every action is checked against an explicit policy
  2. Evidence
    • A structured decision record is generated
  3. Immutability
    • Evidence is cryptographically hashed
  4. Independent Verification
    • Anyone can verify integrity without trusting UAAL

Independent Verification (Auditors / Regulators)

Verification does not require:

  • UAAL runtime
  • Source code access
  • Secrets
  • Database access

Install verifier

pip install uaal-verify


Verify all AI decisions for a day
uaal-verify day YYYY-MM-DD

Verify a single AI decision
uaal-verify record <decision_id>

Verify a date range
uaal-verify range YYYY-MM-DD YYYY-MM-DD


If any evidence was modified, verification fails deterministically.

Regulatory Mapping
EU AI Act (High-Risk Systems)

Article 12: Logging β†’ UAAL evidence

Article 14: Human oversight β†’ uaal-approvals

Article 15: Accuracy & robustness β†’ tamper detection

SOC 2

CC7.2: Change detection β†’ Merkle verification

CC5.3: Control enforcement β†’ policy gating

CC8.1: Auditability β†’ independent verifier

RBI / Financial Regulators

Non-repudiation of automated decisions

Post-facto audit of AI actions

Separation of execution and verification

What UAAL Is NOT

❌ Not an LLM wrapper

❌ Not a monitoring dashboard

❌ Not prompt logging

UAAL is compliance infrastructure for autonomous systems.

Summary (for auditors)

β€œUAAL allows any third party to independently verify that AI decisions
were authorized, unmodified, and policy-compliant.”

That is the core guarantee.


This doc alone is enough for:
- enterprise security review
- compliance conversations
- regulator discussions

---

# 3️⃣ Integration Example (distribution lever)

We’ll do **CrewAI-style** because it’s simple and familiar.

---

## πŸ“¦ Example: CrewAI + UAAL (20 lines)

**Where**
- New repo or folder: `uaal-crewai-demo/`
- Or add to `uaal-regulated-ai-demo/`

---

### `crew_agent.py`

```python
from uaal import authorize
from uaal.approvals import require_approval

def pricing_agent(new_price: int):
    decision = authorize(
        agent="pricing-agent",
        action="update_price",
        payload={"new_price": new_price}
    )

    if not decision.allowed:
        raise Exception("Blocked by policy")

    if new_price > 500:
        require_approval(decision)

    return "price updated"

What this demonstrates (important)

CrewAI / agents stay unchanged

UAAL is a drop-in gate

Policies are enforced before action

Evidence is generated automatically

Verification is external

This is exactly what enterprises want:

β€œDon’t rewrite my agents. Just control them.”





## πŸ”Œ Integrations

### Supported AI Providers
- βœ… OpenAI (GPT-4, GPT-3.5)
- βœ… Anthropic (Claude 3.5 Sonnet, Claude 3 Opus)
- βœ… Google (Gemini Pro, Gemini Ultra)
- βœ… Open-source models via API
- πŸ”œ AWS Bedrock
- πŸ”œ Azure OpenAI

### Notification Channels
- βœ… Webhooks
- πŸ”œ Slack
- πŸ”œ Microsoft Teams
- πŸ”œ Email
- πŸ”œ PagerDuty

---

## πŸ“Š Dashboard

UAAL includes a web dashboard for monitoring and management:
```bash
# Access at http://localhost:8000/dashboard
open http://localhost:8000/dashboard

Dashboard Features:

  • Real-time action feed
  • Approval queue
  • Spend analytics
  • Anomaly alerts
  • Audit log viewer

πŸ”’ Security & Compliance

Zero-Trust Architecture

  • Every action authenticated and authorized
  • Least-privilege access by default
  • No ambient authority

Audit & Compliance

  • SOC 2 Type II ready (audit logs)
  • HIPAA compliant data handling
  • GDPR data retention policies
  • Complete action replay for investigations

Enterprise Features

  • πŸ”œ SSO/SAML integration
  • πŸ”œ Role-Based Access Control (RBAC)
  • πŸ”œ Multi-tenancy
  • πŸ”œ 99.9% SLA with monitoring

πŸ—ΊοΈ Roadmap

Q1 2025

  • βœ… Core action standardization
  • βœ… Approval workflows
  • βœ… Basic policy engine
  • 🚧 Spend tracking dashboard
  • 🚧 Replay/simulation engine

Q2 2025

  • SSO/SAML integration
  • Advanced anomaly detection
  • Slack/Teams approvals
  • Multi-tenancy support

Q3 2025

  • SOC 2 Type II certification
  • GraphQL API
  • Action marketplace
  • Advanced analytics

🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Development Setup

# Install dev dependencies
pip install -r requirements-dev.txt

# Run tests
pytest tests/

# Run linter
black . && flake8 . && mypy .

# Run locally
uvicorn app_v2:app --reload

πŸ“„ License

MIT License - see LICENSE for details


πŸ†š UAAL vs. Competitors

Feature UAAL Astrix ACP Microsoft Agent 365 LangChain
Zero-Trust βœ… βœ… βœ… ❌
Multi-Provider βœ… ❌ ❌ βœ…
Spend Controls βœ… ❌ ❌ ❌
Action Replay βœ… ❌ ❌ ❌
Open Source βœ… ❌ ❌ βœ…
Approval Flows βœ… Limited βœ… ❌

πŸ’¬ Community & Support


πŸ“ˆ Status

⚠️ Alpha Release - UAAL is under active development. Not recommended for production use yet.

  • Current Version: 0.2.0
  • Production Ready: Q2 2025 (estimated)
  • Contributors: 1
  • Stars: ⭐ Give us a star if this interests you!

πŸ™ Acknowledgments

Built with inspiration from:

  • Zero-Trust security principles
  • Policy-as-Code movement
  • Enterprise IAM patterns
  • AI safety research

Made with πŸ›‘οΈ by the UAAL Team

Website β€’ Twitter β€’ LinkedIn

CHANDAN GALANI, AI ENTHUSIAST +91-9326176427

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors