Building IncidentCopilot: Establishing a Local-First AI DevOps Development Foundation A developer has completed Milestone 1 of IncidentCopilot, an AI DevOps incident investigation project, establishing a local-first development foundation with a FastAPI backend, React/TypeScript frontend, PostgreSQL, Qdrant, and Ollama running via Docker Compose. The milestone deliberately excludes LLM integration, log ingestion, and RAG, following the stated principle that "the LLM will sit after the deterministic evidence pipeline. Project: IncidentCopilot โ€” AI DevOps Incident Investigation Milestone: 1 โ€” Repository & Local Development Foundation Status: โœ… Completed ๐ŸŽฏ Why Start With the Foundation? When building an AI-powered DevOps system, itโ€™s tempting to jump straight into the LLM. For IncidentCopilot, I deliberately chose not to. Evidence first. AI second. Human in the loop. The AI should reason over verified evidence, not replace deterministic systems like parsing, normalization, persistence, or correlation. So Milestone 1 focused on: - Repository structure - Local dev environment - Backend & frontend foundations - Config management - Testing setup - Docker & Compose - Documentation & reproducibility ๐Ÿ–ฅ๏ธ Local-First Decision IncidentCopilot is intentionally local-first . No reliance on: - AWS / Azure / GCP - Paid APIs - Proprietary SaaS infrastructure Instead, the stack runs via Docker Compose : - FastAPI - PostgreSQL - Qdrant - Ollama - React ๐Ÿ“‚ Repository Structure Backend packages were defined but left intentionally empty โ€” establishing architectural direction without premature implementation. โš™๏ธ Backend Foundation - FastAPI app with two endpoints: - Config management via pydantic-settings - Testing with Pytest + FastAPIโ€™s TestClient - Dockerized backend minimal container, no DB/AI yet ๐ŸŽจ Frontend Foundation - React + TypeScript + Vite + Tailwind CSS + Lucide icons - Minimal shell: IncidentCopilot โ€” AI DevOps Incident Investigation - Cleaned unused Vite starter files - Dockerized frontend with Node-based build image ๐Ÿ› ๏ธ Real Problems & Fixes - Node.js mismatch: upgraded from v20 โ†’ v24 for Vite - Docker Desktop: CLI installed but engine not running โ€” fixed by starting Docker Desktop - Windows make : used mingw32-make instead of GNU make - Git hygiene: fixed invalid UTF-8 README + refined .gitignore โœ… Verification - Git hygiene โ†’ clean - Backend tests โ†’ 1 passed - Frontend lint โ†’ 0 errors - Frontend build โ†’ โœ“ built - Docker Compose config โ†’ valid - Backend & frontend containers โ†’ running locally ๐Ÿงฉ What We Didnโ€™t Build Yet Milestone 1 deliberately excluded: - PostgreSQL models - Log ingestion APIs - Parsers Nginx, Kubernetes, Docker, GitHub Actions - Normalization & correlation - Qdrant + RAG integration - Ollama integration - Structured AI diagnosis - Full incident dashboard These belong to future milestones. ๐Ÿ—๏ธ Architecture Principle The LLM will sit after the deterministic evidence pipeline. ๐Ÿ“Œ Key Takeaways 1. Foundation work = real development 2. Verification assumptions 3. Starter templates should be questioned 4. Local-first changes dev strategy 5. AI shouldnโ€™t be the first thing we build ๐Ÿ”ฎ Whatโ€™s Next? Milestone 2 โ€” FastAPI Foundation + PostgreSQL Moving toward: ๐Ÿ Final Thoughts IncidentCopilot is still at the beginning. No AI diagnosis yet. No RAG. No ingestion pipeline. And thatโ€™s okay. Milestone 1 established the engineering environment needed to build those capabilities correctly. The project now has: - Structured monorepo - FastAPI + React/TypeScript - Tailwind CSS - Config management - Testing - Docker + Compose - Verified local workflow Most importantly: Build the evidence pipeline first. Let AI reason over verified evidence later. ๐Ÿ”— GitHub: https://www.github.com/richardatodo/incidentcopilot https://www.github.com/richardatodo/incidentcopilot โžก๏ธ Next: Milestone 2 โ€” FastAPI + PostgreSQL