How devinlanyu0422/alert-anomaly-investigator works
This is a Python helper runtime for an AI Analyst demo focused on alert anomaly investigation. The documented user journey begins with an alert or metric change, checks whether it is real, isolates affected dimensions, assesses likely causes and business impact, then produces an action plan and shareable analysis. The graph also shows data/context access, statistical and trust capabilities, and the documented pipeline and evaluation branches. Source excerpts are partial, so some domain stages are represented by their existing helper directories; unsampled implementation links are omitted where evidence is insufficient.
Main entry points: controller.py Pipeline controller · context_manifest.py Business context · connection_manager.py Warehouse connections · gdoc_builder.py Report export
Components 23
Investigation workflow
- Pipeline controller
helpers/pipeline/controller.py - Anomaly profiling
helpers/data/deep_profiler.py - Metric comparison
helpers/data/metric_compiler.py - Cause isolation
helpers/stats/stats_helpers.py - Impact and action
helpers/knowledge/findings.py - Model engine adapter
helpers/engines/claude_cli.py
Data and context
- Warehouse connections
helpers/data/connection_manager.py - SQL dialects
helpers/data/dialects/base.py - Business context
helpers/knowledge/context_manifest.py - Context source sync
helpers/knowledge/context_sync.py - Connected metrics
helpers/connected_context/engine.py
Analysis and validation
- Experiment statistics
helpers/stats/experiment_stats - Causal methods
helpers/stats/experiment_stats/causal - Forecasting
helpers/stats/forecast_helpers.py - Analysis validation
helpers/validation/structural_validator.py
Trust and evaluation
- Evidence provenance
helpers/provenance/provenance_assembler.py - Query audit log
helpers/provenance/query_log.py - Evaluation runs
helpers/evals/controller.py
Operations and delivery
- Report export
helpers/export/gdoc_builder.py - Charts and themes
helpers/viz/chart_helpers.py
Other components
- Analyst / on-call
- Data warehouse
- Google Docs
Connections 22
- Analyst / on-call → Pipeline controller: starts investigation
README.md - Pipeline controller → Model engine adapter: launches workers
helpers/pipeline/controller.py - Pipeline controller → Business context: loads context
helpers/pipeline/controller.py - Warehouse connections → Data warehouse: queries data
- Warehouse connections → SQL dialects: uses dialects
helpers/data/connection_manager.py - Warehouse connections → Query audit log: records queries
helpers/data/connection_manager.py - Business context → Context source sync: resolves source
helpers/knowledge/context_manifest.py - Business context → Metric comparison: supplies metric definitions
helpers/knowledge/context_manifest.py - Business context → Connected metrics: supports connected models
- Pipeline controller → Anomaly profiling: profiles anomaly
- Pipeline controller → Metric comparison: compares periods
- Pipeline controller → Cause isolation: decomposes anomaly
- Pipeline controller → Impact and action: frames findings
- Pipeline controller → Analysis validation: validates analysis
- Pipeline controller → Evidence provenance: assembles evidence
- Analyst / on-call → Experiment statistics: requests experiment analysis
README.md - Analyst / on-call → Causal methods: requests causal analysis
README.md - Analyst / on-call → Forecasting: requests forecast
README.md - Analyst / on-call → Evaluation runs: runs evaluations
README.md - Pipeline controller → Report export: produces shareable report
- Pipeline controller → Charts and themes: produces charts
- Report export → Google Docs: exports document