Skip to main content

alerts you when things go wrong in production

Project description

CoReason Sentinel

Production Monitoring & Circuit Breaker Service for AI Agents

Coreason Sentinel acts as a centralized "Watchtower" for distributed AI agents. It ingests cognitive traces (OTEL spans) and business logs (Veritas events) to monitor agent health in real-time. If safety thresholds are breached (e.g., high hallucination rates, budget leaks, or statistical drift), Sentinel trips a global Circuit Breaker, preventing further risky operations.

Architecture

Sentinel is built as a FastAPI service backed by Redis for state persistence.

  • Ingestor: Asynchronously processes telemetry from agents.
  • Circuit Breaker: Manages the global health state (CLOSED, OPEN, HALF_OPEN) based on configured triggers.
  • Drift Engine: Performs statistical analysis (Cosine Similarity, KL-Divergence) to detect input/output drift.
  • Spot Checker: Probabilistically samples traffic for deep evaluation (Assay).

Key Features

  • Centralized Circuit Breaker: Shared health state across all agent instances.
  • Real-time Monitoring: Tracks latency, token usage, cost, and custom metrics.
  • Drift Detection: Detects vector drift and output distribution shifts using SciPy and NumPy.
  • Control API: Simple REST endpoints for agents to check their status before execution.

Getting Started

Refer to the documentation in docs/ for detailed instructions.

Installation

pip install coreason-sentinel

Quick Start

  1. Start Redis.
  2. Run the Sentinel service:
    uvicorn coreason_sentinel.main:app --reload
    
  3. Check the health endpoint:
    curl http://localhost:8000/health
    

License

Prosperity Public License 3.0

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

coreason_sentinel-0.3.0.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

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

coreason_sentinel-0.3.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file coreason_sentinel-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for coreason_sentinel-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ef61563e1f039efb750afc009e1b64ab009c82341dbb3f7e08c281dc1c2d2309
MD5 e873c46b37886e32d44aaff336d14498
BLAKE2b-256 670edd841c40da1a04f13602864d37cbd99bc3a6300e3aacdec5c588d6688124

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_sentinel-0.3.0.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-sentinel

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

File details

Details for the file coreason_sentinel-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_sentinel-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 901fd62e20f62954980e7ecf561f5bb9de32ce4b9aa8417b270d34cb62cc732e
MD5 4ce1f6660c02af2c08e714f8987a3dfe
BLAKE2b-256 dcfe62834f852b70091481bf6f4f6559ed4ac22e2f8e4cf684dbef094cb69de7

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_sentinel-0.3.0-py3-none-any.whl:

Publisher: publish.yml on CoReason-AI/coreason-sentinel

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