← Back
Privacy & Security Architecture

Class Copilot Privacy Policy

Telegram-first design built around zero passive eavesdropping, PII scrubbing, group isolation, and instant erasure.

1. Zero Passive Eavesdropping

Class Copilot operates in Telegram BotFather Privacy Mode and defaults every group to Strict Commands Mode. Casual group conversations never leave Telegram's servers unless an admin explicitly opts into Auto-Capture or a member invokes /save, /ask, /cag, /deadline, or mentions the bot.

2. Pre-Storage PII Scrubbing & Injection Defense

Before any uploaded PDF, spreadsheet, or note is indexed or sent to an LLM, Class Copilot strips emails, phone numbers, Aadhaar/PAN IDs, and API tokens, and scans for indirect prompt-injection payloads (English & Hinglish). Raw PDF binaries are never saved.

3. AI Routing Controls (/privacy)

Groups default to always-on Cloud AI (Gemini / Groq) for seamless mobile usage. Group admins can run /privacy anytime to switch to Hybrid mode or Strict Local-Only fail-closed mode when connected to private local inference.

4. Group-Scoped Isolation & Right to Erasure

Every record is strictly partitioned by chat_id. Direct anonymous database reads are disabled via Row Level Security; web dashboard access requires cryptographic Telegram Mini App initData verification and live getChatMember membership checks. Members can erase their own notes via /forget_mine, and admins can wipe all group data via /forget. Notes carry a default 120-day semester retention TTL.