How santoshmerugula0806-ship-it/enterprise-structured-ingestion-firewall works
This is a structured message-ingestion firewall: a user submits a message through the browser UI, the API validates the request, obtains an AI classification, then applies deterministic validation and policy rules before returning an accepted or rejected result. Accepted results include priority, SLA, review requirements, and token metadata; the UI renders either outcome. Configuration and schema definitions are distinct internal layers. The README is empty, so capabilities and relationships are based on the supplied source excerpts and index; no persistence or downstream forwarding implementation is shown.
Main entry points: main.py Ingestion endpoint · ai_service.py AI classification · firewall.py Output validation gate · script.js Submit and render
Components 9
Browser interface
- Submit and render
enterprise-ingestion-firewall/frontend/script.js
Ingestion API
- Ingestion endpoint
enterprise-ingestion-firewall/backend/app/main.py - Request and response schemas
enterprise-ingestion-firewall/backend/app/schemas.py
Classification and policy
- AI classification
enterprise-ingestion-firewall/backend/app/ai_service.py - Provider settings
enterprise-ingestion-firewall/backend/app/config.py - Output validation gate
enterprise-ingestion-firewall/backend/app/firewall.py - Business rules and result
enterprise-ingestion-firewall/backend/app/firewall.py
Other components
- Message submitter
- Groq AI provider
Connections 10
- Message submitter → Submit and render: submits message
- Submit and render → Ingestion endpoint: POST /ingest
enterprise-ingestion-firewall/frontend/script.js - Ingestion endpoint → Request and response schemas: validates request
enterprise-ingestion-firewall/backend/app/main.py - Ingestion endpoint → AI classification: classifies message
enterprise-ingestion-firewall/backend/app/main.py - AI classification → Provider settings: reads settings
enterprise-ingestion-firewall/backend/app/ai_service.py - AI classification → Groq AI provider: requests classification
enterprise-ingestion-firewall/backend/app/ai_service.py - Ingestion endpoint → Output validation gate: validates AI output
enterprise-ingestion-firewall/backend/app/main.py - Output validation gate → Request and response schemas: checks schemas
enterprise-ingestion-firewall/backend/app/firewall.py - Output validation gate → Business rules and result: applies rules
enterprise-ingestion-firewall/backend/app/firewall.py - Ingestion endpoint → Submit and render: serves static UI
enterprise-ingestion-firewall/backend/app/main.py