Skip to main content

Community Edition — 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] Community Preview — The agentmesh-runtime package on PyPI is a community preview release for testing and evaluation only. It is not an official Microsoft-signed release. Official signed packages will be available in a future release.


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-2.3.0.tar.gz (8.3 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-2.3.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_runtime-2.3.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for agentmesh_runtime-2.3.0.tar.gz
Algorithm Hash digest
SHA256 bd3788eb8c8bfd1a5a0a261ae1e1b064ffef458413e5298d5b66e1451e99d17f
MD5 d22a863cacdc903d66db2960d4c4f11a
BLAKE2b-256 a76f058b75ac1cb8c79b46834a7440888849bf04c6710656f926eba08e0f93bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_runtime-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab52cf595830f0fda6d402016173b673386c85353ad84da93a8d4171ef180461
MD5 a623106b014f59d929aafb2ecd3172da
BLAKE2b-256 e9dbec25ad631c8aa78191a80c6fd1c4d953de79283a0c663851eb7bb8a16c2b

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