Skip to main content

FailSafe governance adapter for Microsoft Agent Governance Toolkit

Project description

agent-failsafe

PyPI Downloads Python License VS Code

FailSafe governance adapter for the Microsoft Agent Governance Toolkit.

agent-failsafe is a Python adapter that connects the FailSafe runtime governance engine to the Microsoft Agent Governance Toolkit.

• Adds runtime behavioral governance to the toolkit • Detects failure patterns such as tool recursion and reasoning collapse • Integrates through interceptors, validators, and policy providers • Install with pip install agent-failsafe

Core runtime: https://github.com/MythologIQ/Failsafe

Installation

# Core only (types, clients, patterns, trust scoring)
pip install agent-failsafe

# With specific toolkit packages
pip install agent-failsafe[agent-os]          # Interceptor + Integration + Webhook events
pip install agent-failsafe[agent-sre]         # SLI + Signal generation
pip install agent-failsafe[agent-mesh]        # Audit sink
pip install agent-failsafe[agent-hypervisor]  # ExecutionRing + KillSwitch

# Everything
pip install agent-failsafe[full]

The public extras above keep their names, but resolve to the consolidated Microsoft Agent Governance Toolkit 4.x packages: agent-os, agent-mesh, and agent-hypervisor pull agent-governance-toolkit-core (>=4.0.0,<5.0), while agent-sre pulls agent-governance-toolkit-cli (>=4.0.0,<5.0). full (and dev) install the union of both consolidated packages.

Extension Points

Adapter Toolkit Extension Point Module
FailSafeInterceptor ToolCallInterceptor interceptor.py
FailSafeKernel BaseIntegration + @register_adapter integration.py
GovernancePipeline Full lifecycle orchestration pipeline.py
FailSafeRingAdapter ExecutionRing + KillSwitch ring_adapter.py
FailSafeTrustValidator ValidatorInterface (control plane) trust_validator.py
ShadowGenomePolicyProvider PolicyProviderInterface policy_provider.py
FailSafeComplianceSLI SLI (agent-sre) sli.py
FailSafeAuditSink AuditSink audit_sink.py
FailSafeApprovalBackend ApprovalBackend escalation.py
FailSafeTrustMapper DID translation (did:myth <> did:mesh) trust_mapper.py
decision_to_webhook_event WebhookEvent translation webhook_events.py

Architecture Diagram

AI Agent
↓
Agent Governance Toolkit
↓
agent-failsafe adapter
↓
FailSafe runtime engine
↓
Tool execution

Basic Usage Example

Basic interceptor example

from agent_failsafe import FailSafeInterceptor

interceptor = FailSafeInterceptor()
result = interceptor.intercept(request)
from agent_failsafe import FailSafeInterceptor

interceptor = FailSafeInterceptor()
result = interceptor.intercept(request)

See docs/ADAPTER_ARCHITECTURE.md for full API reference.

Ecosystem

FailSafe runtime engine https://github.com/MythologIQ/Failsafe

Developer extension https://marketplace.visualstudio.com/items?itemName=MythologIQ.mythologiq-failsafe https://open-vsx.org/extension/MythologIQ/mythologiq-failsafe

Recommended GitHub Topics

  • ai-agents
  • agent-governance
  • agentic-ai
  • ai-runtime
  • ai-reliability
  • llm-agents
  • ai-infrastructure
  • open-source

License

MIT

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

agent_failsafe-0.6.1.tar.gz (99.2 kB view details)

Uploaded Source

Built Distribution

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

agent_failsafe-0.6.1-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

Details for the file agent_failsafe-0.6.1.tar.gz.

File metadata

  • Download URL: agent_failsafe-0.6.1.tar.gz
  • Upload date:
  • Size: 99.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agent_failsafe-0.6.1.tar.gz
Algorithm Hash digest
SHA256 bf6261a8581c6c13b67a6dd3707bde4a1a88f058abfff7b166814f505b2f0c82
MD5 b1f00788a67183808a5d00f76c263760
BLAKE2b-256 41cc3bbc3dc9811c15329759eb50d96658e0140c5de0fa5e9168013ac2ae8e62

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_failsafe-0.6.1.tar.gz:

Publisher: publish.yml on MythologIQ-Labs-LLC/agent-failsafe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_failsafe-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: agent_failsafe-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 49.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agent_failsafe-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0337c9322ff5b9639b464ea428b8eab5cb5f01676613a5ef4c8101bd08d38f
MD5 93310f91e4d2cdcda4b9886e116a6eda
BLAKE2b-256 5bdc36eb6b761c444c48a28ec9fdd2eebce70a5733fb363d8d24f6898bb8a2d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_failsafe-0.6.1-py3-none-any.whl:

Publisher: publish.yml on MythologIQ-Labs-LLC/agent-failsafe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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