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.
Real policy rules
Risk decisions come from a TypeScript port of PipelineMedic's policy engine and its autonomy_policy.yaml: the same tool names, risk levels and hard blocks.
Your decisions matter
Evidence, diagnosis, repair plan, approval and validation each change the result: recovered, degraded or worsened. Every run is deterministic.
Simulated infrastructure
Nothing connects to Kafka, Flink, PostgreSQL, Airflow or an MCP server. Metrics and tool results are scripted for each scenario.
Monitoring console · simulated
status=DETECTED- Producer: healthyorder events
- Kafka: healthyorders.raw
- Flink: failingorder-validator
- DLQ: failingpipeline.dlq
- PostgreSQL: degradedorders
- Airflow: healthyorder_data_quality_dag
- Consumer lag
- 320
- DLQ / min
- 140
- Validated
- 38%
- Flink job
- RUNNING
- Airflow task
- success
- PostgreSQL
- stale
- 1. Detect
- 2. Diagnose
- 3. Plan
- 4. Policy
- 5. Approval
- 6. Execute
- 7. Validate
- 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"})
Incident event log
event = PipelineMedic incident_events type · tool = simulated tool call · sim = simulator note
- [event] INCIDENT_DETECTED SCHEMA_DRIFT · severity HIGH · kafka:orders.raw
- [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.