Stack: Python 3 / FastAPI server (logpipe/server/app.py, core.py), React+TS UI (web/src), pytest (tests/).
Stores: memory (SQLite-on-demand for queries), ClickHouse, MongoDB (logpipe/storage/*, reads in logpipe/server/reads.py, reads_mongo.py).
iot_logs (log_id, timestamp, device_id=host, service, source, template_id, log_status, payload JSON, raw_message, tags). Schema logpipe/storage/schema.sql.logpipe/registry.py, server.registry.current → templates, canonical_id, key_vocab). Per-template metadata docs in control store (server.tmeta, kind template). /api/templates exposes counts. No per-template first_seen/baseline-frequency table.reads.LEVEL_SQL, reads.level()), not stored.detector.sliding_windows, server.window), per stream model (server.scorers[stream], LogBERTScorer).anomaly_alerts (miss_ratio, novelty_ratio, template_ids, reasons). No table of all window scores.LogBERTScorer.explain(window) → per-event expected | unexpected | unseen + expected template IDs (used by Server.incident(), core.py:1254).INCIDENT_GAP (5 min) (Server.incidents()).logpipe/enrich/llm.py: LLMAdapter protocol, OfflineAdapter (deterministic fallbacks), ChatAdapter (langchain structured output via deepparse providers; anthropic/openai/web). _Traced wrapper in core.py records prompts into job detail.POST /api/query/ask): one LLM call writes raw SQL (CH/SQLite) or a builder spec (Mongo). Guard = startswith(select|with); execution guard = CH readonly=2, SQLite PRAGMA query_only on a throwaway in-memory DB, Mongo querybuild_mongo.check(). UI already shows SQL in the SQL tab before the user presses Run.POST /api/incidents/{id}/explain → job _job_explain, core.py:1325): builds a text of ≤60 incident events (marked * / ?) + ≤20 warn/error lines from other services ±1 min, one LLM call → {summary, likely_cause, next_steps}. No citations, no evidence ranking, no baseline, no “insufficient evidence” path. Offline fallback points at first unusual line.logpipe/learning/similarity.py, enrich/similarity.py exist — to check whether reusable).approve executes. Toggle = server default (Settings) + per-request override on Ask box.MONGO_RO_USER); existing per-query guards stay.scorer.explain() (pipeline untouched). Baseline: same-length windows over previous 24h, median.Vector store: user floated a dedicated vector DB. numpy in-process default + Qdrant adapter behind LogStore.vector_search (compose profile).
waiting_approval. General tier: brief answer, labelled “not from your logs”.ShopGenerator with fault modes; deterministic correctness (top hypothesis cites ground-truth template, plus no-fault controls expect “insufficient evidence”); record/replay LLM replies.feat/ai-rca to Niang931/Log_parser, one commit per milestone, no Claude attribution.