Skip to content
Lohith.

Engineering Playground · Incident response

Incident Commander

Four incidents from PipelineMedic AI, my self-healing data pipeline agent. Gather evidence, pick the root cause and a typed repair plan, then see what the safety policy allows, approve or reject it, and decide how to validate the fix.

Monitoring console · simulated

status=DETECTED
  1. Producer: healthyorder events
  2. Kafka: healthyorders.raw
  3. Flink: failingorder-validator
  4. DLQ: failingpipeline.dlq
  5. PostgreSQL: degradedorders
  6. Airflow: healthyorder_data_quality_dag
Consumer lag
320
DLQ / min
140
Validated
38%
Flink job
RUNNING
Airflow task
success
PostgreSQL
stale
  1. 1. Detect
  2. 2. Diagnose
  3. 3. Plan
  4. 4. Policy
  5. 5. Approval
  6. 6. Execute
  7. 7. Validate
  8. 8. Resolve / Rollback

Detect · Diagnose

Investigate the alert

Breaking schema drift detected on orders.raw

1 field change(s) detected, overall BREAKING. Most new orders are landing in pipeline.dlq instead of orders.validated.

Deterministic detection (backend/app/services/pipeline_monitor.py): A deterministic schema diff classifies the change as BREAKING; the pipeline monitor raises breaking drift as HIGH. Severity HIGH.

1. Gather evidence with read-only tools

All of these are LOW risk in the policy. Run as many as you need; the strongest evidence raises the diagnosis confidence.

  • get_schema_versions({"subject":"orders.raw"})
  • compare_schema_versions({"subject":"orders.raw","old_version":3,"new_version":4})
  • get_recent_pipeline_errors({"topic":"pipeline.dlq","limit":20})
  • get_kafka_consumer_lag({"topic":"orders.raw","group_id":"flink-order-validator"})
  • get_flink_job_status({"job_name":"order-validator"})
2. What is the root cause?

Incident event log

event = PipelineMedic incident_events type · tool = simulated tool call · sim = simulator note

  1. [event] INCIDENT_DETECTED SCHEMA_DRIFT · severity HIGH · kafka:orders.raw
  2. [sim] Deterministic detector A deterministic schema diff classifies the change as BREAKING; the pipeline monitor raises breaking drift as HIGH.

Simulation only. No Kafka, Flink, PostgreSQL, Airflow, Kubernetes or MCP endpoint is contacted, and no repair is executed. Policy decisions are computed by a TypeScript port of PipelineMedic's policy engine; metrics and outcomes are scripted per scenario.