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
- Start Redis.
- Run the Sentinel service:
uvicorn coreason_sentinel.main:app --reload
- 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef61563e1f039efb750afc009e1b64ab009c82341dbb3f7e08c281dc1c2d2309
|
|
| MD5 |
e873c46b37886e32d44aaff336d14498
|
|
| BLAKE2b-256 |
670edd841c40da1a04f13602864d37cbd99bc3a6300e3aacdec5c588d6688124
|
Provenance
The following attestation bundles were made for coreason_sentinel-0.3.0.tar.gz:
Publisher:
publish.yml on CoReason-AI/coreason-sentinel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_sentinel-0.3.0.tar.gz -
Subject digest:
ef61563e1f039efb750afc009e1b64ab009c82341dbb3f7e08c281dc1c2d2309 - Sigstore transparency entry: 881345624
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-sentinel@de1476204382d00547724461cae54eec28536f31 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de1476204382d00547724461cae54eec28536f31 -
Trigger Event:
release
-
Statement type:
File details
Details for the file coreason_sentinel-0.3.0-py3-none-any.whl.
File metadata
- Download URL: coreason_sentinel-0.3.0-py3-none-any.whl
- Upload date:
- Size: 30.7 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 |
901fd62e20f62954980e7ecf561f5bb9de32ce4b9aa8417b270d34cb62cc732e
|
|
| MD5 |
4ce1f6660c02af2c08e714f8987a3dfe
|
|
| BLAKE2b-256 |
dcfe62834f852b70091481bf6f4f6559ed4ac22e2f8e4cf684dbef094cb69de7
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_sentinel-0.3.0-py3-none-any.whl -
Subject digest:
901fd62e20f62954980e7ecf561f5bb9de32ce4b9aa8417b270d34cb62cc732e - Sigstore transparency entry: 881345681
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-sentinel@de1476204382d00547724461cae54eec28536f31 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@de1476204382d00547724461cae54eec28536f31 -
Trigger Event:
release
-
Statement type: