Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

SentinelLayer

AI safety, governance, and security layer with prompt firewalls and PII protection.

Status Category

📖 Overview

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.

🚀 Quick Start

# 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

✨ Key Features

  • Prompt firewall (injection / policy screening)
  • PII detection and redaction
  • Type-safe, validated model I/O
  • Central governance for AI calls

🏗️ Architecture

%%{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
Loading

Blocking prompt-injection and PII leakage without breaking legitimate requests.

See docs/ARCHITECTURE.md for the full HLD/LLD and design decisions.

🧰 Tech Stack

Layer Technology Role
PydanticAI PydanticAI Type-safe agent outputs
Presidio Presidio PII detection & redaction
Python Python AI & data-processing services

📚 Documentation

🔭 Future Enhancements

  • Policy management UI
  • Audit logging
  • Configurable redaction rules

📄 License

Released under the MIT License.

👤 Author

Harshan Aiyappa Senior Full-Stack Hybrid AI Engineer Voice AI • Distributed Systems • Infrastructure

Portfolio GitHub LinkedIn X

About

AI Safety, Governance, and Security Layer featuring advanced Prompt Firewalls and PII protection.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors