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
myna run ./pipelines/demo_pipeline.yml

# Check execution status
myna status <session_id>

# View detailed audit trail
myna audit <session_id>

CLI Commands

  • myna run <pipeline.yml> - Execute a pipeline
  • myna status <session_id> - Check pipeline status
  • myna audit <session_id> - View audit logs
  • myna checkpoint <session_id> --label <name> - Create checkpoint
  • myna rollback <session_id> --to <checkpoint> - Rollback to checkpoint
  • myna approve <session_id> --request-id <id> - Approve pending requests
  • myna pause <session_id> - Pause execution
  • myna 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-myna/
โ”œโ”€โ”€ main.py                 # CLI entry point
โ”œโ”€โ”€ pyproject.toml          # Project configuration
โ”œโ”€โ”€ myna.toml              # Runtime defaults
โ”œโ”€โ”€ src/myna/              # 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-myna
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/myna

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.1.0.tar.gz (32.1 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.1.0-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentic_maya-0.1.0.tar.gz
  • Upload date:
  • Size: 32.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 b62ebbf46cbe5ee7f8f4d4fb1db7f4ef8fa03af4ae422dee7787e3280599e3fb
MD5 5b5cd4ad38c74bb8748d120afbb6e2c8
BLAKE2b-256 972983584804781079c2e3d632ec44fc6e9fdfc94d20c84187e64cab622cf192

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentic_maya-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c50a2b1be3a3e290ecf04b46202155071ea5ad6b2e2d1fe3480003ece1d75ca
MD5 4f7aa0339d8cd6cf70cd061c406a7cca
BLAKE2b-256 d4f7c70de95e5134a9698c5b06ab9ebab001f4bb996576fefa2b34762fcc66ae

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