FailSafe governance adapter for Microsoft Agent Governance Toolkit
Project description
agent-failsafe
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62f05d346af42d34d0be64c114eb9a2adf6e4538a9646a4dbed927049ac47568
|
|
| MD5 |
ab95e03eb84de114efab2a58174e5172
|
|
| BLAKE2b-256 |
822c8fe0184541ba4aca7f098d8533034e45c48f9ebba59c5b47216dd3e9fbc5
|
Provenance
The following attestation bundles were made for agent_failsafe-0.6.0.tar.gz:
Publisher:
publish.yml on MythologIQ/agent-failsafe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_failsafe-0.6.0.tar.gz -
Subject digest:
62f05d346af42d34d0be64c114eb9a2adf6e4538a9646a4dbed927049ac47568 - Sigstore transparency entry: 1118523417
- Sigstore integration time:
-
Permalink:
MythologIQ/agent-failsafe@e6ff7f22a142c6f11e9b39232610b7e0c78f32ad -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/MythologIQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e6ff7f22a142c6f11e9b39232610b7e0c78f32ad -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c86641080aedd687beaaca5583014d7e8e1340da753e4f4b9aa089a4c04010
|
|
| MD5 |
7b82ba8c0eba37b48eb680a25e1d4bc6
|
|
| BLAKE2b-256 |
1f550c65430169b8b6a7d3ae4a8291c1bcba4371faf63e2b3ba735e138040acc
|
Provenance
The following attestation bundles were made for agent_failsafe-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on MythologIQ/agent-failsafe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_failsafe-0.6.0-py3-none-any.whl -
Subject digest:
d3c86641080aedd687beaaca5583014d7e8e1340da753e4f4b9aa089a4c04010 - Sigstore transparency entry: 1118523421
- Sigstore integration time:
-
Permalink:
MythologIQ/agent-failsafe@e6ff7f22a142c6f11e9b39232610b7e0c78f32ad -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/MythologIQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e6ff7f22a142c6f11e9b39232610b7e0c78f32ad -
Trigger Event:
release
-
Statement type: