# Topic 17: Deployment & Sandbox Configuration **Audit Date**: 2026-02-01 **Auditor**: Agent Antigravity **Scope**: Operational Environment --- ## 1. The Sandbox (`config.py`) The system runs in a strict **Containerized Sandbox** logic by default. ### **Safe-Mode Flags** | Flag | Value | Effect | | :--- | :--- | :--- | | **`SANDBOX_MODE`** | `True` | Disables real-world effects (no emails sent, no real bans). | | **`ANONYMIZE_LOGS`** | `True` | Masks PII in console logs (Privacy First). | | **`SYNTHETIC_DATA_ONLY`** | `True` | Law Enforcement reports generate "TEST_CASE_123" IDs instead of contacting APIs. | --- ## 2. Deployment Readiness ### **A. Environment Variables (`.env`)** Required for Production: * `GROQ_API_KEY`: Intelligence Source. * `GUVI_API_KEY`: Ingress Auth. * `DATABASE_URL`: Persistence. ### **B. Docker Compatibility** * **Port**: 8000 (Standard FastAPI). * **Host**: `0.0.0.0` (Exposed). * **Workers**: System is AsyncIO compatible, works with `uvicorn` workers. --- ## 3. The "Hackathon Mode" Preset The default configuration is tuned for **Demo Performance**: * `ENABLE_ENGAGEMENT_DELAY`: **True** (Shows off "Human" typing). * `LLM_TEMPERATURE`: **0.7** (Creative/Unpredictable responses). * `DEBUG`: **False** (Clean output). --- ## 4. Final Verdict The system is "Click-to-Deploy" ready. 1. `pip install -r requirements.txt` 2. `python -m app.main` 3. **It Just Works.**