SentinelLayer sits in front of model calls: it screens prompts through a firewall, redacts PII with Presidio, and enforces typed, validated I/O with PydanticAI — a guardrail layer for any AI feature.
Built on the "Antigravity" model.
# 1. Clone
git clone https://github.com/Kimosabey/sentinel-layer.git
cd sentinel-layer
# 2. Install
# (see docs/GETTING_STARTED.md for the full setup)
# 3. Run
docker compose up- Prompt firewall (injection / policy screening)
- PII detection and redaction
- Type-safe, validated model I/O
- Central governance for AI calls
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#ffffff','lineColor':'#2563eb','mainBkg':'#ffffff'}}}%%
graph LR
A([Prompt])
B([Prompt Firewall + PII Filter])
C([Safe Call])
D([Validated Output])
A --> B
B --> C
C --> D
style A fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
style B fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
style C fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
style D fill:#eff6ff,stroke:#2563eb,stroke-width:2px,color:#1e40af
Blocking prompt-injection and PII leakage without breaking legitimate requests.
See docs/ARCHITECTURE.md for the full HLD/LLD and design decisions.
| Layer | Technology | Role |
|---|---|---|
| PydanticAI | PydanticAI |
Type-safe agent outputs |
| Presidio | Presidio |
PII detection & redaction |
| Python | Python |
AI & data-processing services |
- Architecture — high- and low-level design, decision log
- Getting Started — prerequisites, setup, environment
- Failure Scenarios — fault analysis and recovery
- Interview Q&A — deep-dive walkthrough
- Policy management UI
- Audit logging
- Configurable redaction rules
Released under the MIT License.
Harshan Aiyappa Senior Full-Stack Hybrid AI Engineer Voice AI • Distributed Systems • Infrastructure