Skip to main content

Agentic Maya v1 Python CLI MVP

Project description

Agentic Maya

Python License Tests

Agentic Maya โ€” Governed multi-agent orchestration with YAML pipelines, policies, and skills for enterprise-grade AI workflows.

What It Does

Agentic Maya provides a secure, auditable framework for running multi-agent AI pipelines with built-in governance, memory management, and human oversight. It's designed for production use cases requiring compliance, traceability, and safety.

Key Features

  • YAML-Driven Pipelines: Define complex workflows with steps, checkpoints, and fallback models
  • Policy Enforcement: Six-layer governance system (Intent, Auth, Budget, PII, External Gate, Escalation)
  • Skill Registry: Reusable, versioned agent capabilities with audit trails
  • Memory Tiers: Session, episodic, long-term, and audit memory for safe persistence
  • CLI Tools: Full lifecycle management with status, audit, checkpoint, and rollback commands
  • HITL Integration: Human-in-the-loop approvals for critical decisions
  • Audit Logging: Immutable, hash-chained logs for compliance

Quick Start

Installation

pip install agentic-maya
# or for development
pip install -e .

First Pipeline

# Run a sample pipeline
maya run ./pipelines/demo_pipeline.yml

# Check execution status
maya status <session_id>

# View detailed audit trail
maya audit <session_id>

CLI Commands

  • maya run <pipeline.yml> - Execute a pipeline
  • maya status <session_id> - Check pipeline status
  • maya audit <session_id> - View audit logs
  • maya checkpoint <session_id> --label <name> - Create checkpoint
  • maya rollback <session_id> --to <checkpoint> - Rollback to checkpoint
  • maya approve <session_id> --request-id <id> - Approve pending requests
  • maya pause <session_id> - Pause execution
  • maya terminate <session_id> - Stop pipeline

Architecture

Governance Layers

  1. Intent Verification - Validate task intent against policies
  2. Model Authorization - Check model access permissions
  3. Budget Control - Enforce token and cost limits
  4. PII Detection - Block sensitive data leaks
  5. External Gate - Control API/tool usage
  6. Escalation - Human approval for critical actions

Memory Tiers

  • Session Memory: Current execution state
  • Episodic Memory: Step checkpoints and resumes
  • Long-Term Memory: Persistent knowledge and preferences
  • Audit Memory: Compliance event history

Agent Roles

  • Orchestrator: Controls pipeline execution
  • Specialist: Executes domain tasks
  • Subagent: Scoped helper agents
  • Critic: Validates outputs and compliance
  • Memory Manager: Handles all memory operations
  • Tool Executor: Runs external tools/APIs
  • Audit Agent: Enforces governance and logging

Documentation

๐Ÿ“– Full Documentation - Complete guides and API reference

Project Structure

agentic-maya/
โ”œโ”€โ”€ main.py                 # CLI entry point
โ”œโ”€โ”€ pyproject.toml          # Project configuration
โ”œโ”€โ”€ maya.toml              # Runtime defaults
โ”œโ”€โ”€ src/maya/              # Core package
โ”‚   โ”œโ”€โ”€ cli.py            # Command-line interface
โ”‚   โ”œโ”€โ”€ runtime.py        # Pipeline execution engine
โ”‚   โ”œโ”€โ”€ governance.py     # Policy enforcement
โ”‚   โ”œโ”€โ”€ memory.py         # Memory management
โ”‚   โ””โ”€โ”€ schemas.py        # Data validation
โ”œโ”€โ”€ pipelines/             # YAML pipeline definitions
โ”œโ”€โ”€ policies/              # YAML governance policies
โ”œโ”€โ”€ skills/                # YAML skill definitions
โ”œโ”€โ”€ tests/                 # Test suite
โ”‚   โ”œโ”€โ”€ test_*.py         # Unit tests
โ”‚   โ””โ”€โ”€ scenarios/        # Integration tests
โ”œโ”€โ”€ docs/                  # Markdown documentation
โ””โ”€โ”€ website/               # Static website
    โ”œโ”€โ”€ index.html        # Homepage
    โ””โ”€โ”€ docs/             # HTML documentation

Development

Setup

git clone <repository-url>
cd agentic-maya
pip install -e .[dev]

Testing

# Run all tests
python -m pytest

# Run specific test
python -m pytest tests/test_governance.py -v

# Run with coverage
python -m pytest --cov=src/maya

Building Documentation

# Generate HTML docs from Markdown
python scripts/build_docs.py

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Write tests for new functionality
  4. Ensure all tests pass (python -m pytest)
  5. Commit changes (git commit -m 'Add amazing feature')
  6. Push to branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Guidelines

  • Follow PEP 8 style guidelines
  • Add type hints for new functions
  • Update documentation for API changes
  • Ensure backward compatibility

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support


Agentic Maya - Safe, Auditable, Multi-Agent AI Orchestration

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

agentic_maya-0.2.0.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

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

agentic_maya-0.2.0-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file agentic_maya-0.2.0.tar.gz.

File metadata

  • Download URL: agentic_maya-0.2.0.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for agentic_maya-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0bc823e13f6a426bd110ad2a5254005bf44578910846db4b30425775c7e42abf
MD5 27adbb194afbfa5f95cfc637d466d1b5
BLAKE2b-256 c3484ea62799fcbcdb498ac36cabed147449cffcec07592dbba3eef9562f2b7c

See more details on using hashes here.

File details

Details for the file agentic_maya-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agentic_maya-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for agentic_maya-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 faeb1a25d27081c7081089860610651c693f305c6872b336e14cd56bebb18176
MD5 f26c3dfd1ad115f725fa827c3be93d6b
BLAKE2b-256 3824d2898551dd150eaf4eb5af3a9c48c8a5f546051dbdb4ca47f59b6ae4bfae

See more details on using hashes here.

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