Skip to main content

Public Preview — AgentMesh Runtime: Execution supervisor for multi-agent sessions with privilege rings, saga orchestration, and audit trails

Project description

AgentMesh Runtime

Execution supervisor for multi-agent sessions — privilege rings, saga orchestration, and governance enforcement

Part of the Agent Governance Toolkit

CI License Python PyPI

[!IMPORTANT] Public Preview — The agentmesh-runtime package on PyPI is a Microsoft-signed public preview release. APIs may change before GA.


Note: This package was renamed from agent-runtime to agentmesh-runtime to avoid a PyPI name collision with the AutoGen team's package. The agent-hypervisor package remains the canonical upstream implementation; agentmesh-runtime is a thin re-export wrapper for incremental import migration.

What is Agent Runtime?

Agent Runtime provides execution-level supervision for autonomous AI agents. While Agent OS handles policy decisions and AgentMesh handles trust/identity, Agent Runtime enforces those decisions at the session level:

  • Execution Rings — 4-tier privilege model (Ring 0–3) controlling what agents can do at runtime
  • Shared Sessions — Multi-agent session management with consistency modes (strict, eventual, causal)
  • Saga Orchestration — Compensating transactions for multi-step agent workflows
  • Kill Switch — Immediate termination with audit trail and blast radius containment
  • Joint Liability — Attribution tracking across multi-agent collaborations
  • Audit Trails — Hash-chained, append-only execution logs

Quick Start

pip install agentmesh-runtime
from hypervisor import Hypervisor, SessionConfig, ConsistencyMode

# Create the runtime supervisor
hv = Hypervisor()

# Create a governed session
session = await hv.create_session(
    config=SessionConfig(consistency_mode=ConsistencyMode.EVENTUAL)
)

# Execute with privilege enforcement
result = await session.execute(
    agent_id="researcher-1",
    action="tool_call",
    tool="web_search",
    ring=2  # restricted privilege ring
)

Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                        Agent Runtime                                 │
├─────────────┬──────────────────┬──────────────────┬─────────────────┤
│  Execution  │     Session      │      Saga        │    Liability    │
│   Rings     │   Management     │  Orchestration   │    Tracking     │
│             │                  │                  │                 │
│  Ring 0:    │  Create/join     │  Multi-step      │  Attribution    │
│   System    │  Consistency     │  Compensation    │  Vouching       │
│  Ring 1:    │  Checkpoints     │  Rollback        │  Slashing       │
│   Trusted   │  Merge/fork      │  Recovery        │  Quarantine     │
│  Ring 2:    │                  │                  │                 │
│   Standard  │                  │                  │                 │
│  Ring 3:    │                  │                  │                 │
│   Sandboxed │                  │                  │                 │
└─────────────┴──────────────────┴──────────────────┴─────────────────┘

Ecosystem

Agent Runtime is one of 7 packages in the Agent Governance Toolkit:

Package Role
Agent OS Policy engine — deterministic action evaluation
AgentMesh Trust infrastructure — identity, credentials, protocol bridges
AgentMesh Runtime Execution supervisor — rings, sessions, sagas (this package)
Agent SRE Reliability — SLOs, circuit breakers, chaos testing
Agent Compliance Regulatory compliance — GDPR, HIPAA, SOX frameworks
Agent Marketplace Plugin lifecycle — discover, install, verify, sign
Agent Lightning RL training governance — governed runners, policy rewards

License

MIT — see LICENSE.

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

agentmesh_runtime-3.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

agentmesh_runtime-3.0.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_runtime-3.0.2.tar.gz.

File metadata

  • Download URL: agentmesh_runtime-3.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for agentmesh_runtime-3.0.2.tar.gz
Algorithm Hash digest
SHA256 1790277bc6a6d39791c210817c2378e5d38f8739ae80528fac87d883d0fe1953
MD5 bfb39f6a1344f7865d39331c4010dabb
BLAKE2b-256 6009b7679d74659c9574563e2102ea2db40f4d5d26666a5f7ec388dc0634e0bd

See more details on using hashes here.

File details

Details for the file agentmesh_runtime-3.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_runtime-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9504ecd4d23ed9b9f93adba69bac55a5b8b885003d4af52531e83cc1cbc424
MD5 bb49765eccd97620d4daac7ce779cce9
BLAKE2b-256 a5748dba327f680700f119e37c9825205a2be283798cf338f36989e2e1ea381e

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