{"id":51246355,"url":"https://github.com/TheIndicSentinel/kavachxv2","last_synced_at":"2026-07-17T15:00:57.826Z","repository":{"id":348903174,"uuid":"1182633447","full_name":"TheIndicSentinel/kavachxv2","owner":"TheIndicSentinel","description":"Production-grade AI Governance Engine for real-time risk scoring, compliance enforcement (DPDP/RBI), and immutable audit logs.","archived":false,"fork":false,"pushed_at":"2026-04-16T16:05:12.000Z","size":16117,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-12T00:14:35.732Z","etag":null,"topics":["ai-governance","bharat","compliance","dpdp","it-act","llm-safety","privacy-engineering","responsible-ai"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheIndicSentinel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-15T19:21:36.000Z","updated_at":"2026-04-16T16:07:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TheIndicSentinel/kavachxv2","commit_stats":null,"previous_names":["nerd1412/kavachxv2","theindicsentinel/kavachxv2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheIndicSentinel/kavachxv2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheIndicSentinel%2Fkavachxv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheIndicSentinel%2Fkavachxv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheIndicSentinel%2Fkavachxv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheIndicSentinel%2Fkavachxv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheIndicSentinel","download_url":"https://codeload.github.com/TheIndicSentinel/kavachxv2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheIndicSentinel%2Fkavachxv2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35585715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-governance","bharat","compliance","dpdp","it-act","llm-safety","privacy-engineering","responsible-ai"],"created_at":"2026-06-29T05:00:18.739Z","updated_at":"2026-07-17T15:00:57.820Z","avatar_url":"https://github.com/TheIndicSentinel.png","language":"Python","funding_links":[],"categories":["🛠️ Tools \u0026 Libraries"],"sub_categories":[],"readme":"\u003c!-- ═══════════════════════════════════════════════════════════ --\u003e\n\u003c!--                    KAVACHX GOVERNANCE ENGINE               --\u003e\n\u003c!-- ═══════════════════════════════════════════════════════════ --\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"assets/hero.png\" alt=\"KavachX Product Hero\" width=\"100%\" /\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# 🛡️ KavachX — The AI Governance Infrastructure for Bharat\n\n**Real-time Policy Enforcement · Multi-Gate Risk Scoring · Immutable Compliance Auditing**\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-7C3AED?style=for-the-badge\u0026labelColor=0D0F1A)](LICENSE)\n[![Python](https://img.shields.io/badge/Python-3.10%2B-06B6D4?style=for-the-badge\u0026logo=python\u0026labelColor=0D0F1A)](https://www.python.org/)\n[![Deployment](https://img.shields.io/badge/Deployment-Production_Ready-10B981?style=for-the-badge\u0026labelColor=0D0F1A)](https://github.com/TheIndicSentinel/kavachxv2)\n[![Architecture](https://img.shields.io/badge/Logic-Vedic_Armor-F59E0B?style=for-the-badge\u0026labelColor=0D0F1A)](docs/architecture.md)\n\n\u003c/div\u003e\n\n---\n\n## ⚡ The Enforcement Gap\nAs AI models integrate into the core of Bharat's digital infrastructure—from Fintech to Healthtech—the gap between **intelligence** and **accountability** is widening. Every inference is a potential compliance risk, a privacy leak, or a security breach.\n\n**KavachX** (sanskrit: *Kavach* - Armor) is the software-defined enforcement layer that closes this gap. It provides a robust, low-latency \"Digital Armor\" that intercepts, analyzes, and regulates every interaction between AI models and users in real-time.\n\n---\n\n## ✨ Core Pillars of Governance\n\n| Pillar | Capability | Technical Driver |\n|:---:|:---|:---|\n| **🔐 Security** | Immune to Prompt Injection \u0026 NAEL | Adversarial Noise Classifiers |\n| **🧬 Safety** | Context-Aware Hate \u0026 Harm Filtering | Fine-tuned Transformer Models |\n| **📋 Compliance** | DPDP 2023 \u0026 RBI Policy Adherence | Regex + NLP PII Detection |\n| **📊 Audit** | Immutable Evidence Chains | Cryptographic Interaction Logging |\n| **🌐 Flexibility** | Universal AI Interceptor | Headless API \u0026 Browser Extension |\n\n---\n\n## 🏛️ Architecture: The 4-Gate Enforcement Pipeline\n\n```text\n                    ┌─────────────────────────────────────────┐\n                    │         AI MODEL (LLM / ML System)       │\n                    └──────────────────┬──────────────────────┘\n                                       │  Inference Request\n                                       ▼\n        ╔══════════════════════════════════════════════════════╗\n        ║              K A V A C H X   E N G I N E            ║\n        ║──────────────────────────────────────────────────────║\n        ║  Gate 1: 🔐 Security    │  Prompt Injection / NAEL   ║\n        ║  Gate 2: 🧬 Safety      │  Hate, Bias, Harm Scoring  ║\n        ║  Gate 3: 📋 Compliance  │  DPDP PII / IT Act Check   ║\n        ║  Gate 4: 📊 Audit       │  Immutable Log + Dashboard ║\n        ╚══════════════════════════════════════════════════════╝\n                                       │  Governed Response\n                                       ▼\n                    ┌─────────────────────────────────────────┐\n                    │              END USER / CLIENT            │\n                    └─────────────────────────────────────────┘\n```\n\n---\n\n## 🚀 Quick Start in 60 Seconds\n\n### 📦 1. Installation\n```bash\ngit clone https://github.com/TheIndicSentinel/kavachxv2.git\ncd kavachxv2/backend\npip install -r requirements.txt\n```\n\n### 🐍 2. Basic Initialization\n```python\nfrom kavachx import Sentinel\n\n# Initialize the governance gate\nsentinel = Sentinel(api_key=\"your_kavach_key\")\n\n# Governed inference\nresponse = sentinel.inspect(\n    prompt=\"Generate a response for the user...\",\n    context=\"banking_domain\"\n)\n\nif response.is_blocked:\n    print(f\"Action Blocked: {response.violation_reason}\")\nelse:\n    print(response.content)\n```\n\n---\n\n## 🗺️ Roadmap \u0026 Current Focus\n- [x] **v2.0 Core:** Real-time interception and basic gate logic.\n- [ ] **v2.5 Bhasha-Shield:** Fine-tuned safety classifiers for 12+ Indian languages.\n- [ ] **v3.0 Edge-Enforce:** Moving governance logic to the client-side/edge for zero-latency.\n- [ ] **v3.5 DPDPA-Masker:** Specialized PII redaction for Indian data patterns (Aadhaar, PAN).\n\n---\n\n## 🤝 Community \u0026 Support\n*   **Documentation:** Detailed guides in the [docs/](docs/) folder.\n*   **Contributing:** Read our [CONTRIBUTING.md](CONTRIBUTING.md) to get started.\n*   **Security:** Report vulnerabilities via [SECURITY.md](SECURITY.md).\n*   **Contact:** Reach out at [inerd1412@gmail.com](mailto:inerd1412@gmail.com).\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**🛡️ KavachX** — Policy-Aligned AI Infrastructure for Bharat\n\u003cbr/\u003e\n*Built with conviction in 🇮🇳 India*\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheIndicSentinel%2Fkavachxv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheIndicSentinel%2Fkavachxv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheIndicSentinel%2Fkavachxv2/lists"}