|
| 1 | +{ |
| 2 | + "pipelineName": "7-Stage AI/ML Governance Pipeline", |
| 3 | + "platform": "GitHub Actions Enterprise + ArgoCD + Tekton", |
| 4 | + "version": "2.0.0", |
| 5 | + "totalGates": 7, |
| 6 | + "totalOpaRules": 102, |
| 7 | + "stages": [ |
| 8 | + { |
| 9 | + "stage": 1, |
| 10 | + "name": "Code Quality & Security Gate", |
| 11 | + "trigger": "PR opened", |
| 12 | + "opaRules": 12, |
| 13 | + "checks": [ |
| 14 | + {"check": "SAST (Semgrep)", "type": "security", "blocking": true}, |
| 15 | + {"check": "Dependency Scan (Snyk)", "type": "security", "blocking": true}, |
| 16 | + {"check": "License Compliance", "type": "legal", "blocking": true}, |
| 17 | + {"check": "Secrets Detection (TruffleHog)", "type": "security", "blocking": true}, |
| 18 | + {"check": "Code Review (2 approvals)", "type": "quality", "blocking": true} |
| 19 | + ], |
| 20 | + "blockingPolicy": "ANY failure blocks merge", |
| 21 | + "avgDuration": "3 min" |
| 22 | + }, |
| 23 | + { |
| 24 | + "stage": 2, |
| 25 | + "name": "Data Validation Gate", |
| 26 | + "trigger": "merge to develop", |
| 27 | + "opaRules": 18, |
| 28 | + "checks": [ |
| 29 | + {"check": "Training Data Schema Validation", "type": "data", "blocking": true}, |
| 30 | + {"check": "Data Drift Detection (PSI < 0.1)", "type": "drift", "blocking": "soft"}, |
| 31 | + {"check": "Feature Distribution Check", "type": "data", "blocking": "soft"}, |
| 32 | + {"check": "Data Lineage Verification", "type": "governance", "blocking": true}, |
| 33 | + {"check": "PII Scan (Presidio)", "type": "privacy", "blocking": true}, |
| 34 | + {"check": "Consent Verification", "type": "privacy", "blocking": true} |
| 35 | + ], |
| 36 | + "blockingPolicy": "PII or consent failure is HARD BLOCK; drift warning is SOFT BLOCK", |
| 37 | + "avgDuration": "8 min" |
| 38 | + }, |
| 39 | + { |
| 40 | + "stage": 3, |
| 41 | + "name": "Model Training & Validation Gate", |
| 42 | + "trigger": "data-gate-pass", |
| 43 | + "opaRules": 24, |
| 44 | + "checks": [ |
| 45 | + {"check": "Hyperparameter Governance", "type": "model", "blocking": true}, |
| 46 | + {"check": "Training Reproducibility", "type": "model", "blocking": true}, |
| 47 | + {"check": "Performance Threshold (AUROC >= 0.80)", "type": "performance", "blocking": true}, |
| 48 | + {"check": "Bias Metrics (DI >= 0.80, SPD <= 0.10)", "type": "fairness", "blocking": true}, |
| 49 | + {"check": "Explainability (SHAP >= 95%)", "type": "explainability", "blocking": true}, |
| 50 | + {"check": "Adversarial Robustness Test", "type": "security", "blocking": true} |
| 51 | + ], |
| 52 | + "blockingPolicy": "Bias or performance failure is HARD BLOCK", |
| 53 | + "avgDuration": "12 min" |
| 54 | + }, |
| 55 | + { |
| 56 | + "stage": 4, |
| 57 | + "name": "Model Risk Review Gate", |
| 58 | + "trigger": "training-gate-pass", |
| 59 | + "opaRules": 16, |
| 60 | + "checks": [ |
| 61 | + {"check": "SR 11-7 Independent Validation", "type": "regulatory", "blocking": true}, |
| 62 | + {"check": "Model Documentation Completeness", "type": "governance", "blocking": true}, |
| 63 | + {"check": "Challenger Model Comparison", "type": "model", "blocking": true}, |
| 64 | + {"check": "Stress Testing (10 scenarios)", "type": "resilience", "blocking": true}, |
| 65 | + {"check": "Regulatory Classification Check", "type": "regulatory", "blocking": true}, |
| 66 | + {"check": "Risk Tier Assignment", "type": "governance", "blocking": true} |
| 67 | + ], |
| 68 | + "blockingPolicy": "Tier-1 requires MRM sign-off; Tier-2 automated", |
| 69 | + "avgDuration": "8 min + manual review" |
| 70 | + }, |
| 71 | + { |
| 72 | + "stage": 5, |
| 73 | + "name": "Pre-Production Governance Gate", |
| 74 | + "trigger": "mrm-approval", |
| 75 | + "opaRules": 14, |
| 76 | + "checks": [ |
| 77 | + {"check": "Canary Deployment Simulation", "type": "deployment", "blocking": true}, |
| 78 | + {"check": "Load Testing (100x production)", "type": "resilience", "blocking": true}, |
| 79 | + {"check": "Failover Verification", "type": "resilience", "blocking": true}, |
| 80 | + {"check": "Kill-Switch Test", "type": "safety", "blocking": true}, |
| 81 | + {"check": "Monitoring Instrumentation", "type": "observability", "blocking": true}, |
| 82 | + {"check": "Alert Configuration Validation", "type": "observability", "blocking": true} |
| 83 | + ], |
| 84 | + "blockingPolicy": "Kill-switch failure is HARD BLOCK", |
| 85 | + "avgDuration": "6 min" |
| 86 | + }, |
| 87 | + { |
| 88 | + "stage": 6, |
| 89 | + "name": "Production Deployment Gate", |
| 90 | + "trigger": "pre-prod-pass + change-board-approval", |
| 91 | + "opaRules": 10, |
| 92 | + "checks": [ |
| 93 | + {"check": "Blue-Green Readiness", "type": "deployment", "blocking": true}, |
| 94 | + {"check": "Rollback Plan Documented", "type": "governance", "blocking": true}, |
| 95 | + {"check": "Evidence Bundle Generated", "type": "compliance", "blocking": true}, |
| 96 | + {"check": "WORM Archive Confirmed", "type": "compliance", "blocking": true}, |
| 97 | + {"check": "Stakeholder Notification", "type": "governance", "blocking": false}, |
| 98 | + {"check": "Kafka Governance Event Published", "type": "audit", "blocking": true} |
| 99 | + ], |
| 100 | + "blockingPolicy": "Evidence or WORM failure is HARD BLOCK", |
| 101 | + "avgDuration": "4 min" |
| 102 | + }, |
| 103 | + { |
| 104 | + "stage": 7, |
| 105 | + "name": "Post-Deployment Monitoring Gate", |
| 106 | + "trigger": "24h/7d/30d checkpoints", |
| 107 | + "opaRules": 8, |
| 108 | + "checks": [ |
| 109 | + {"check": "Performance Drift Detection (PSI)", "type": "drift", "blocking": true}, |
| 110 | + {"check": "Prediction Distribution Monitoring", "type": "drift", "blocking": "soft"}, |
| 111 | + {"check": "Fairness Metric Tracking", "type": "fairness", "blocking": true}, |
| 112 | + {"check": "Latency SLA Compliance", "type": "operational", "blocking": true}, |
| 113 | + {"check": "Error Rate Threshold", "type": "operational", "blocking": true}, |
| 114 | + {"check": "Business KPI Correlation", "type": "business", "blocking": false} |
| 115 | + ], |
| 116 | + "blockingPolicy": "PSI > 0.25 triggers automatic rollback", |
| 117 | + "avgDuration": "continuous" |
| 118 | + } |
| 119 | + ] |
| 120 | +} |
0 commit comments