This repository contains multiple AI-driven prototype applications built for compliance engines. Reusable utilities, styles, and configurations are shared inside the /shared folder.
/prototypes
├── /shared/ # Shared resources across prototypes
│ └── /js/
│ └── config.js # Shared LLM endpoint and key management modal logic
│
├── /agentic-nc-writer/ # NC/CAPA Writer Prototype (Aura Quality Engine)
│ ├── index.html # Workspace markup
│ ├── index.css # Workspace styling & print rules
│ ├── app.js # State orchestration & UI controllers
│ ├── agents.js # Multi-agent prompt directives
│ ├── templates.js # Incident scenario templates
│ └── README.md # Prototype-specific documentation & workflow
│
├── /air-ocean-cost-converter/ # Air 2 Ocean Cost Converter Prototype
│ ├── index.html # Workspace markup
│ ├── index.css # Workspace styling & print rules
│ ├── app.js # Calculation engine & UI controllers
│ └── README.md # Prototype-specific documentation & workflow
│
└── README.md # This file (Index of all prototypes)
The following block diagram outlines the data flow between the cooperative compliance agents:
graph TD
A[Operator Raw Observations] -->|Submit| B(Orchestrator)
B --> C[Intake Parser Agent]
C -->|Title, Record ID, Summary| D[5-Whys RCA Agent]
D -->|Root Cause| E[CAPA Planner Agent]
E -->|Actions Plan| F[Compliance Auditor Agent]
F -->|Audit Score & Logs| G{Score >= 95%?}
G -->|No - Critique & Iterate| D
G -->|Yes| H[Email Pitch Agent]
H -->|Complete Draft| I[Interactive UI / PDF Print]
The following block diagram outlines the time-to-cost trade-off engine and Logistics Optimizer Agent flow:
graph TD
A[User Inputs: Cargo & Transit Profile] -->|Calculate| B(Calculation Engine)
B --> C[Air Chargeable Weight]
B --> D[Ocean Chargeable Measure]
C & D --> E[Direct Freight Costs]
B --> F[Daily Inventory Carrying Cost]
E & F --> G[True Economic Savings / Variance]
E & F --> H[Transit Delay Breakeven Buffer]
G --> I[SVG Stacked Bar Chart]
H --> J[Dynamic Slider Gauge]
G & H --> K[Logistics Optimizer Agent]
K -->|Compile Draft| L[Confidential PDF Report]
Start a local server at the root directory to preview all prototypes:
# Start server from workspace root
uv run python -m http.server 8080
Once running, navigate to:
http://localhost:8080/agentic-nc-writer/http://localhost:8080/air-ocean-cost-converter/