⚡ Supreme AI Reliability Infrastructure · PyPI v0.1.8
The supreme transactional engine for autonomous AI agents.
From hobby builders and indie coders to high-precision medical examination, banking settlements, and flight control — agent-saga v0.1.8 guarantees 99.999% reliability with pre-flight safety gates, anti-hallucination reality anchors, OpenTelemetry & LangSmith tracing, GitHub/AWS/Slack connectors, and automatic LIFO rollbacks.
pip install agent-saga
Universal Spectrum Coverage
From Hobby Makers & Coders to High-Precision Aerospace.
Whether building an indie side project, auto-refactoring code, executing $10M banking transfers, or diagnosing patient treatments, agent-saga powers mission-critical reliability everywhere.
IoT & Hardware Robotics
Enforces hardware actuator angle limits and battery voltage bounds, preventing physical servo burnout or runaway robot motor commands.
GitHub & Cloud Infrastructure
Plug-and-play GitHub/GitLab PR auto-reverts and AWS/GCP/K8s infrastructure auto-cleanup if deployment or coding agent tasks fail.
High-Value Wire & Billing
Enforces 3/3 Triple Redundant Consensus before executing multi-million dollar transfers, preventing hallucinated refunds or duplicated wire charges.
Prescription & Diagnosis Safety
Intersects LLM treatment recommendations against strict clinical boundary range rules (0.1mg - 50mg), blocking lethal medication overdose attempts pre-flight.
LangSmith, Phoenix & OTEL
Stamps Saga UUID and prompt context into OpenTelemetry spans and LLM trace providers, linking hallucinated prompts directly to rollback causes.
Interactive Web UI & Replay
Clean Web UI (agent-saga ui) and CLI Time-Travel Replay (agent-saga replay <id>) for risk teams to inspect, approve, or debug failed sagas.
Interactive Practical Playground
Practically test your own input data: Before vs. After agent-saga.
Type custom input parameters below. Use the prominent toggle switch to compare how raw AI models crash and corrupt data (BEFORE) versus how agent-saga verifies and auto-restores state (AFTER).
Engineered Innovations
Click any feature to inspect its live code payload & architecture.
📊 OpenTelemetry & LangSmith Tracing
Binds Saga UUIDs to OpenTelemetry spans, LangSmith runs, and Phoenix traces, identifying the exact prompt context that caused a transaction rollback.
Click to inspect code →🔌 Expanded Native Connectors
Plug-and-play safety connectors for GitHub PR/Commit auto-revert, AWS/GCP/K8s infra auto-cleanup, and Slack/Discord message redactions.
Click to inspect code →🛡️ Dynamic AI Risk Policies
Evaluates anomaly risk scores in real-time. If an anomaly score exceeds threshold, spend limits dynamically scale down and escalate to human review.
Click to inspect code →🗄️ Relational Postgres Approval Store
Stores pending human approvals directly in PostgreSQL (PostgresApprovalStore) for enterprise risk teams without requiring Redis infrastructure.
⏳ Time-Travel Debugging & Replay
Run agent-saga replay <saga_id> to simulate historical failed sagas locally from WAL data without touching live production APIs.
💻 Risk Team Dashboard (agent-saga ui)
Out-of-the-box web UI server (agent-saga ui) providing risk teams with visual approval queues, token auth, and live trace inspection.
Developer Documentation
Quickstart & Integration Reference.
Get started in 30 seconds. Wrap your agent loops in a single decorator or context manager.