Skip to main content

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.

Metadata

Release files for agentmesh_runtime 3.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentmesh_runtime 3.7.0
File Size Uploaded
agentmesh_runtime-3.7.0.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentmesh_runtime 3.7.0
File Interpreter ABI Platform
agentmesh_runtime-3.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / agentmesh_runtime-3.7.0.tar.gz

Download URL agentmesh_runtime-3.7.0.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b38235459da0fdb6c0a0d914b036d59075d2f2c2468dadb7ab479865638f86e5
BLAKE2b-256 checksum
How to use checksums
6f9f0325cba41ac751f274a0a68c1e62e245fb69444542f9c51e94ae4f19c3e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / agentmesh_runtime-3.7.0-py3-none-any.whl

Download URL agentmesh_runtime-3.7.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6a03398e7544c85cb0d9a2c392d0612e596c1e09fe33080fcc9aba1fcc932e3
BLAKE2b-256 checksum
How to use checksums
af61f3673223c0856c864c90190e5aab680cff06dd39c73766e842c2b89204f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release history Release notifications | RSS feed

This release

3.7.0 This release

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page