Independent LLM observability prototype, 2026
Sentinel
A self-hosted LLM observability prototype. It traces every call and, when one fails, investigates the cause and proposes a patch behind a deterministic risk gate.
- +36 ms
- median gateway overhead, measured locally
- < 10 ms
- replay of a recurring incident from cache
- SHA-256
- chained audit ledger, verifiable offline
- 7
- assertion types in the eval suites

The problem
Most LLM observability tools stop at showing what happened. Finding out why a call failed, and what to change, is still manual work.
The approach
A drop-in gateway for OpenAI, Anthropic and local Ollama traffic traces every call. On a failing or high-risk call, a triage agent diagnoses the root cause with retrieval over the codebase and proposes a patch. A non-LLM gate scores each patch, and anything sensitive stops for a human.
What I did
- Developed the API tracing and failure-analysis platform using FastAPI, Celery, Redis and PostgreSQL.
- Implemented SHA-256 chained audit logging and retrieval-assisted debugging workflows for investigating LLM application failures.
How it works
Application
Points at Sentinel instead of the provider
Gateway
Auth, risk classification and routing policy
Trace and ledger
Persisted asynchronously, off the request path
Triage agent
Diagnoses the cause and proposes a patch
Risk gate
A deterministic check on each patch's blast radius
Human approval
Required before anything sensitive goes further
Key decisions
A deterministic gate over the LLM's own confidence
Patches touching auth, payments, migrations or more than a few files stop for a person. An agent should not be the one to decide its own work is safe.
Drop-in proxy rather than a new SDK
Adopting it means changing where calls are sent, not rewriting them.
Fully offline triage by default
Diagnosis, patch generation and embeddings can all run on a local model, with no API key and no marginal cost.
What has been checked
- Overhead of +36 ms median against a direct call (196 ms to 232 ms), from 15 requests per path, measured locally.
- Exact or semantically similar recurring incidents replay from a SQLite cache in single-digit milliseconds.
What has not
- A prototype, evaluated on local runs and seeded traffic rather than production load.
- The audit ledger is designed with EU AI Act record-keeping in mind. It is not a legal compliance certification.
Working on something related?
I am looking for a Master's thesis or visiting research placement on LLM pipelines, covering their reliability, evaluation and structured output, including language-guided robotics, starting in winter semester 2027/28.