How white-spade/skala-miniaip works
This is a staged AIOps incident-investigation agent, culminating in a FastAPI/browser application. The main workflow accepts an incident request, checks and clarifies service targets, plans and gates investigation tasks, gathers monitoring and runbook evidence through MCP, analyzes and writes a report, then grounds claims against sources before responding. Multi-turn session persistence and JWT access control wrap the agent. The README documents final composition; sampled excerpts confirm selected internals, but several integration edges rely on README descriptions rather than inspected implementation.
Main entry points: step16_react.py ReAct research · step24_integration.py Integrated graph · step11_write.py Report writer · step21_sqlite_session.py Session orchestration
Components 21
User experience
- Browser UI
step24_integration_ui.html
API and sessions
- JWT API
step23_auth_api.py - Session orchestration
step21_sqlite_session.py - SQLite sessions
step21_sqlite_session.py
Agent workflow
- Integrated graph
step24_integration.py - Target clarification
step20_clarification_hybrid.py - Intent routing
step05_llm_routing.py - Task planning
step06_planning.py - Task gate
step14_gate.py - ReAct research
step16_react.py - Replan and validation
step18_replan_validate.py - Incident analysis
step15_analysis.py
Evidence services
- Monitoring MCP
step09_mcp_server.py - Runbook MCP
step12_mcp_server.py - Mock monitoring data
monitoring.json - Runbook documents
step12_runbook.py
Report quality
- Report writer
step11_write.py - Evidence grounding
step22_grounding.py
Other components
- Operator
- Ollama LLM
- LangSmith tracing
Connections 24
- Operator → Browser UI: submits request
README.md - Browser UI → JWT API: sends chat
README.md - JWT API → Session orchestration: runs chat
README.md - Session orchestration → SQLite sessions: reads and writes
README.md - Session orchestration → Integrated graph: invokes graph
README.md - Integrated graph → Target clarification: uses target checks
README.md - Target clarification → Intent routing: classifies request
step20_clarification_hybrid.py - Target clarification → Task planning: creates tasks
step20_clarification_hybrid.py - Task planning → Task gate: passes tasks
README.md - Task gate → ReAct research: authorizes research
README.md - ReAct research → Monitoring MCP: calls monitoring tool
step16_react.py - ReAct research → Runbook MCP: reads runbook
step16_react.py - Monitoring MCP → Mock monitoring data: reads
step09_mcp_server.py - Runbook MCP → Runbook documents: serves resources
README.md - ReAct research → Replan and validation: returns observations
README.md - Replan and validation → ReAct research: requests more research
README.md - Replan and validation → Incident analysis: supplies evidence
README.md - Incident analysis → Report writer: provides analysis
step15_analysis.py - Report writer → Evidence grounding: submits draft
README.md - Evidence grounding → Report writer: requests rewrite
README.md - Evidence grounding → Integrated graph: returns grounded result
README.md - Intent routing → Ollama LLM: classifies with
step05_llm_routing.py - Report writer → Ollama LLM: generates report
step11_write.py - Integrated graph → LangSmith tracing: traces runs
README.md