agentsre  by Ajay150313

SRE reliability instrumentation for agentic AI

Created 2 months ago
306 stars

Top 87.4% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This library addresses the critical gap in traditional observability for AI agents, where semantic failures (wrong decisions, inefficient operations) go undetected despite green infrastructure metrics. It provides SRE reliability instrumentation, including novel SLIs and governance modules, to manage agent sprawl and ensure production-ready AI systems for engineers and SREs.

How It Works

The core approach implements four key Service Level Indicators (SLIs): Decision Quality Rate (DQR), Tool Invocation Efficiency (TIE), Human Escalation Rate (HER), and Approval Queue Depth Drift (AQDD). These SLIs target the semantic layer of AI agent behavior, complementing traditional infrastructure metrics. The system also incorporates an A2A semantic boundary validator, an agent chain circuit breaker, and an Agent Sprawl governance module for robust production deployments.

Quick Start & Requirements

Installation is straightforward via pip: pip install agentsre for the core library, or pip install agentsre[aws] for AWS CloudWatch publishing integration (requires boto3). Python 3 is the primary requirement. Detailed AWS implementation guides are referenced.

Highlighted Details

  • Novel SLIs: DQR, TIE, HER, and AQDD are designed to catch semantic drift, inefficient tool usage, human-escalated tasks, and silent queue growth, respectively.
  • A2A Semantic Validation: Validates semantic correctness across agent-to-agent communication, preventing propagation of erroneous outputs.
  • Agent Chain Circuit Breaker: Protects against cascading failures by operating on semantic validation success rates.
  • Agent Sprawl Governance: Manages AI agent complexity with features like fleet inventory, SLO ownership tracking, deprecation alerts, and framework upgrade canaries.
  • Enterprise Features: Includes Fintech SRE Orchestration for payment processing with autonomy constraint ladders and a Cost Optimization Module for tracking and recommending cost savings on AI models.

Maintenance & Community

The project is authored by Ajay Devineni, with contributions welcomed via PRs as detailed in CONTRIBUTING.md. No specific community channels (e.g., Discord, Slack) or corporate sponsorships are listed.

Licensing & Compatibility

Released under the permissive MIT license, allowing for commercial use and integration into closed-source projects without significant restrictions.

Limitations & Caveats

While the core library is dependency-light, detailed cloud publishing is focused on AWS. Integration with other cloud providers (GCP, Azure) and frameworks (LangChain, CrewAI) are listed as areas for contribution. Some advanced features are designated as "Enterprise Features" and may have specific deployment contexts.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
0
Star History
307 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.