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]

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.0.tar.gz (84.6 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.0-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agent_failsafe-0.6.0.tar.gz
Algorithm Hash digest
SHA256 62f05d346af42d34d0be64c114eb9a2adf6e4538a9646a4dbed927049ac47568
MD5 ab95e03eb84de114efab2a58174e5172
BLAKE2b-256 822c8fe0184541ba4aca7f098d8533034e45c48f9ebba59c5b47216dd3e9fbc5

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on MythologIQ/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.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for agent_failsafe-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c86641080aedd687beaaca5583014d7e8e1340da753e4f4b9aa089a4c04010
MD5 7b82ba8c0eba37b48eb680a25e1d4bc6
BLAKE2b-256 1f550c65430169b8b6a7d3ae4a8291c1bcba4371faf63e2b3ba735e138040acc

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on MythologIQ/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