| marp | true |
|---|---|
| theme | default |
| paginate | true |
| header | EduIdentityAI • Autonomous Cognitive Campus OS |
| footer | Educational Purpose & Technical Project Presentation |
| backgroundColor | |
| color | |
| style | section { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; padding: 40px 60px; } h1 { color: #58a6ff; } h2 { color: #79c0ff; border-bottom: 1px solid #30363d; } h3 { color: #d2a8ff; } table { font-size: 13px; width: 100%; } th { background-color: #161b22; color: #58a6ff; } td { border-bottom: 1px solid #21262d; } code { background-color: #161b22; color: #ff7b72; } blockquote { border-left: 4px solid #58a6ff; padding-left: 15px; color: #8b949e; } |
Comprehensive Technical Project Presentation
- Domain: Higher Education, Generative AI, Polyglot Database Federation, Zero-Trust IAM
- Core Technologies: FastAPI, Google Gemini 3.8 Flash, SQLite Domain Federation, Alpine.js, WebSockets
- Date: October 2026
- Status: Production Deployment Ready
Educational institutions face severe operational and pedagogical bottlenecks:
- Fragmented Communication: Students, faculty, and administrators use unlogged consumer messaging apps (WhatsApp, Telegram) with no academic record or institutional accountability.
- Delayed Guidance & High Faculty Burnout: Mentors spend hundreds of hours answering routine syllabus, policy, and revision questions instead of high-value counseling.
- Monolithic Database Lock Contention: Conventional monolithic campus ERPs lock entire student tables during simultaneous chat messaging, fee payments, and attendance logging.
- Identity Fraud & Stale Records: Unverified admissions, fraudulent marksheets, and lack of real-time national digital locker (DigiLocker / APAAR) integration.
EduIdentityAI bridges these challenges with four tightly integrated architectural pillars:
- WhatsApp-Style EduMentor Meta AI:
- Google Gemini 3.8 Flash with 8 educational criteria, interactive quiz cards, and an iridescent animated trigger ring.
- Unified 3-Category Campus Chat Hub:
- Segregated, role-governed channels:
PEER_STUDENT,FACULTY_MENTOR,ADMIN_SUPPORTwith inline@AImentions.
- Segregated, role-governed channels:
- Polyglot 7-Database Domain Federation:
- Decoupled domain isolation preventing lock contention across IAM, SIS, Heritage, Governance, Audit, Career, and Events.
- Partitioned Tamper-Evident User Work Logging:
- Isolated per-user directories with rolling SHA-256 cryptographic verification digests.
How EduIdentityAI stands out compared to legacy Campus ERPs and generic consumer chat tools:
| Feature / Dimension | Legacy Campus ERPs (Moodle, Blackboard, ERPNext) | Generic Consumer Tools (WhatsApp, MS Teams, Slack) | 🚀 EduIdentityAI (Our Project) |
|---|---|---|---|
| Academic AI Guidance | Non-existent or bolted-on generic chatbots without context | Unregulated ChatGPT; hallucinations and academic integrity risks | 8 Enforced Educational Criteria (Socratic tutoring, quiz generation, policy RAG) |
| System Resilience | Fails completely if external cloud API drops | Complete reliance on proprietary external servers | Hybrid 3.0s Circuit Breaker: Auto-fallback to local deterministic RAG engine |
| Database Performance | Monolithic SQL DB; severe lockups during crunch periods | Centralized messaging silos disconnected from student SIS | Polyglot 7-Domain DB Federation: Zero lock contention between chat, audit & grades |
| Identity Verification | Manual paper submissions or unverified uploaded PDFs | Phone number / basic email auth without institutional validation | DigiLocker / APAAR Sandbox API with automated checksum verification |
| Audit & Forensic Trail | Opaque server syslog files easily wiped or modified | Zero institutional access to private chats or forensic logs | Per-User Partitioned Storage with tamper-evident rolling SHA-256 digests |
| In-Chat Pedagogical UX | Static forum threads; disengaging interfaces | Casual social UX lacking educational structuring | WhatsApp Meta AI Parity: Iridescent ring, chips & in-channel @AI summons |
Four concrete architectural breakthroughs empower our platform:
- Pedagogical Intent Steering (System-Prompt Constrained Ingestion):
- How: Incoming prompts do not bypass directly to an unconstrained LLM. The
EduMentorAIServiceenforces strict institutional guidelines, Socratic pedagogical questioning, and ABET-aligned rubrics based on the selected educational criterion.
- How: Incoming prompts do not bypass directly to an unconstrained LLM. The
- Sub-3s Resilient Hybrid Circuit Breaker:
- How: Google Gemini 3.8 Flash calls are executed with a strict 3000ms timeout. If cloud latency spikes or API tokens expire, the backend instantaneously intercepts the request and generates a grounded response using local deterministic rule tables and cached policy vectors.
- Polyglot Domain Federation (
db_federation.py):- How: Instead of executing all transactions on one monolithic database file, the data layer routes writes to 7 isolated SQLite databases. Chat messages live in
academic_sis.db(unified_chat_messages), leavingauth_iam.dbandsecurity_audit.dbcompletely free from locking overhead.
- How: Instead of executing all transactions on one monolithic database file, the data layer routes writes to 7 isolated SQLite databases. Chat messages live in
- Partitioned Tamper-Evident User Work Logging (
UserWorkLogger):- How: Every session write is isolated to
storage/logs/users/{email}/. Theaudit_forensics.jsonmaintains a rolling SHA-256 cryptographic chain linking every event block, making retro-active tampering mathematically impossible.
- How: Every session write is isolated to
┌─────────────────────────────────────────┐
│ Modern Web Portal Frontend │
│ (Alpine.js, WhatsApp Meta AI UX, WSS) │
└────────────────────┬────────────────────┘
│ HTTP REST / WebSocket (:8000)
▼
┌─────────────────────────────────────────┐
│ FastAPI Gateway Engine │
│ (RBAC Guards, Rate Limiting, Audit Tap) │
└───────┬────────────┬────────────┬───────┘
│ │ │
┌────────────────▼───┐ ┌──────▼──────┐ ┌───▼─────────────────┐
│ EduMentor Meta AI │ │Unified Chat │ │ 7-Domain DB Engine │
│ - Gemini 3.8 Flash │ │ - Peer Chat │ │ - auth_iam.db │
│ - 3.0s Fallback │ │ - Faculty │ │ - academic_sis.db │
│ - 8 Criteria Chips │ │ - Admin Sup │ │ - security_audit.db │
└────────────────────┘ └─────────────┘ └─────────────────────┘
Bringing consumer-grade AI familiarity into an academic learning environment:
- Iridescent Animated Trigger: Floating rotating neon gradient ring inspired by WhatsApp Meta AI.
- Educational Intent Chips: 8 quick-selector chips pinned above the chat box to focus model attention.
- Inline
@AIIn-Channel Mentions: Students or faculty can summon@AIdirectly inside peer group chats to clarify a discussion. - Interactive Chat Cards: Renders structured multiple-choice quiz cards (with revealable rationale) and bulleted topic summaries.
- High Resilience Circuit Breaker:
- 3.0-second network timeout.
- Automatic seamless fallback to local Deterministic Rule & RAG Engine if the network or API is unavailable.
| Criteria Identifier | Functional Scope & Target Pedagogical Outcome |
|---|---|
POLICY_REGULATION |
Explains 75% attendance rule, exam admit card deadlines, fee refund rules, code of conduct. |
CONCEPT_TUTORING |
Socratic step-by-step logic breakdown, algorithmic explanations, engineering analogies. |
QUIZ_GENERATION |
Automated 3-question diagnostic assessments with formatted options, answer keys, and rationale. |
THREAD_SUMMARIZATION |
Distills long peer/faculty chat discussions into clear bulleted action points and follow-ups. |
ACADEMIC_INTEGRITY |
Plagiarism prevention, citation formatting (APA/IEEE), research ethics. |
CAREER_PATHWAY |
Skills gap analysis from current CGPA/branch to target industry roles, certifications, and projects. |
EXAM_REVISION |
High-yield formula cheat-sheets, high-probability exam questions, mnemonic memory anchors. |
CODE_LAB_ASSIST |
Syntax debugging, Big-O algorithmic complexity analysis, and unit test scaffolds. |
Eliminates unmonitored external chat groups while keeping academic interactions organized:
PEER_STUDENT(Global Campus Agora):- Open collaboration between enrolled students.
- Group project brainstorming, assignment discussions, peer quiz sharing.
FACULTY_MENTOR(Private Mentoring Sanctuary):- Authorized 1-on-1 and department-specific academic consultation.
- Counseling notes, attendance warning inquiries, thesis guidance.
ADMIN_SUPPORT(Institutional Helpdesk):- Direct line to university administration, registrar, and IT support.
- Fee receipt disputes, admit card release requests, hostel maintenance tickets.
Every message is persisted in academic_sis.db with cryptographic audit records.
Monolithic databases create severe performance bottlenecks. EduIdentityAI separates domains into 7 isolated SQLite databases via db_federation.py:
databases/
├── auth_iam.db # Passwords, salts, JWT revocations, MFA secrets
├── academic_sis.db # Students, courses, attendance, unified_chat_messages
├── family_heritage.db # Kinship links, guardian contacts, alumni lineage
├── institutions_governance.db# Campus tenants, departments, accreditation metadata
├── security_audit.db # Security events, threat logs, WebSocket telemetry
├── career_pathways.db # Skill matrices, placement data, corporate internships
└── notifications_events.db # Push notifications, SMS/Email queues, deadlines
- Zero Concurrency Lock Contention: High-frequency chat writes never block authentication or SIS grade reporting.
- Clean Microservice Separation: Ready for migration to discrete PostgreSQL microservices.
All user activity is partitioned by Gmail/canonical email under storage/logs/users/{email}/:
last_work.json:- Atomic session snapshot (route, timestamp, role, IP address, user-agent).
login_history.jsonl:- Append-only chronological stream of authentication attempts with client fingerprints.
activity_stream.jsonl:- Real-time event log capturing UI route transitions, API invocations, and chat interactions.
audit_forensics.json:- Rolling SHA-256 cryptographic chain guaranteeing tamper-evident audit integrity.
- Admin Inspection:
- Secured endpoints (
/api/auth/work-logs/locations,/api/auth/work-logs/user/{email}) guarded by strict RBAC (require_role("admin")).
- Secured endpoints (
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Student │ │ Faculty │ │ Parent │ │ Institute │ │ Admin │
├──────────────┤ ├──────────────┤ ├──────────────┤ ├──────────────┤ ├──────────────┤
│• 24/7 AI │ │• Mentoring │ │• Family │ │• Multi-tenant│ │• Live WS │
│ Tutor │ │ Roster │ │ Heritage │ │ Governance │ │ Audit Logs │
│• Peer Chat │ │• AI Chat │ │• Attendance │ │• Department │ │• User Work │
│• DigiLocker │ │ Summary │ │ Transparency│ │ Management │ │ Logs │
│ Auto-Fill │ │• At-Risk │ │• Emergency │ │• Accreditation│ • 7-DB Admin │
│• Admit Cards │ │ Notices │ │ Contacts │ │ Audits │ │ Governance │
└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
- Step 1: Authenticate & DigiLocker Auto-Fill:
- Login as student (
dev_user@uni.edu). - Trigger DigiLocker sandbox to auto-fill academic identity with cryptographic checksum.
- Login as student (
- Step 2: Engage Peer Chat with EduMentor Meta AI:
- Navigate to
PEER_STUDENTchat channel. - Click the iridescent animated Meta AI ring.
- Select the
QUIZ_GENERATIONcriteria chip. - Receive an interactive 3-question diagnostic quiz with instant feedback.
- Navigate to
- Step 3: Inline In-Channel Tagging:
- Type
@AI explain Dijkstra's algorithm step-by-stepin the group chat. - Instant Socratic breakdown appears directly in the shared thread.
- Type
- Step 4: Administrator Audit Telemetry:
- Switch to
admin@uni.eduportal. - View live WebSocket security events and inspect partitioned JSONL activity streams.
- Switch to
Comprehensive automated integration test suite (backend/tests/test_three_category_chat.py):
[OK] /api/chat/categories returned all 3 valid categories with metadata.
[OK] GLOBAL category chat broadcast and retrieval verified.
[OK] PRIVATE category chat and community cross-sync verified.
[OK] PERSONAL category direct chat and legacy backward sync verified.
[OK] Invalid category input validation rejected with HTTP 400.
[OK] /api/chat/ai/criteria returned all 8 Educational Criteria.
[OK] Direct 1-on-1 chat with Meta AI triggers grounded educational response.
[OK] In-channel mention @ai in GLOBAL agora successfully generated quiz response.
[OK] Explicit criteria override respected in chat.
[OK] Standalone /api/chat/ai/ask endpoint executed successfully.
=======================================================
RESULTS: 10/10 TESTS PASSED (100% SUCCESS RATE)
=======================================================
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ Phase I: Active Production (October 2026) │
│ • Gemini 3.8 Flash AI Chat • 8 Educational Criteria • Polyglot 7 SQLite Federation │
└───────────────────────────────────────────┬────────────────────────────────────────────┘
│
┌───────────────────────────────────────────▼────────────────────────────────────────────┐
│ Phase II: Near-Term Horizon (2027) │
│ • Whisper-large-v3 voice counseling scribe for mentor teachers │
│ • XGBoost / LightGBM longitudinal early-warning at-risk classifier │
│ • SeamlessM4T multilingual guardian copilot (Hindi, Tamil, Telugu, Spanish) │
│ • Cloud Storage Lakehouse (GCS / S3 / Azure Gzip stream synchronization) │
└───────────────────────────────────────────┬────────────────────────────────────────────┘
│
┌───────────────────────────────────────────▼────────────────────────────────────────────┐
│ Phase III: Enterprise Multi-Campus Mesh (2028+) │
│ • Multi-agent cognitive campus mesh (LangGraph / AutoGen orchestrating agents) │
│ • Graph Neural Networks (GraphSAGE / GNN) for DigiLocker credential fraud detection │
│ • Kubernetes (GKE / EKS) with dedicated vLLM / TensorRT-LLM GPU inference clusters │
└────────────────────────────────────────────────────────────────────────────────────────┘
- Render.com Web Service:
- One-click deployment with automated
render.yamlblueprint. - Persistent disk mount (
/var/data) retaining the 7 SQLite databases across restarts. - Managed environment secrets (
GEMINI_API_KEY,JWT_SECRET_KEY).
- One-click deployment with automated
- Containerization:
- Multi-stage
backend/Dockerfilewith pre-compiled offline wheels and neural weights. - Multi-worker Uvicorn execution with Gunicorn process manager.
- Multi-stage
- Zero-Trust Security:
- TLS 1.3 encryption, Cloudflare WAF, strict CORS origin isolation, and SHA-256 audit chaining.
- Student-Centric Innovation: Consumer-grade WhatsApp Meta AI interface makes academic assistance intuitive, engaging, and available 24/7.
- Architectural Robustness: 7-Database domain federation eliminates concurrency contention, while the 3-second circuit breaker guarantees high uptime.
- Defensible Competitive Edge: Enforced pedagogical criteria prevent cheating, and partitioned SHA-256 digests ensure forensic audit compliance.
- Enterprise Scalability: Ready for instant internet deployment on Render.com and architected to scale into multi-cloud Kubernetes clusters.
Thank you for your time!
- Repository:
D:\git\mini_project\Authentication_Record_Guidance_System - Documentation:
README.md•PRODUCTION_DEPLOYMENT.md•n_defined/ - Live Test Suite:
backend/tests/test_three_category_chat.py