Phase 1: When AI Harms — Real-World Cases & the Responsible AI Landscape · 30 min · Python
The Problem
"Responsible AI" sounds like a policy function — writing guidelines, attending ethics board meetings, reviewing documentation. In reality, the companies actually hiring for this work are looking for engineers who can write code, run audits, measure bias, generate explanations, and build monitoring systems. Let's look at what the job market actually demands.
What the job postings say
Real Responsible AI Engineer postings from 2025-2026 share a consistent technical core. Here's a synthesis of requirements from postings at Citi, Marriott, Schwab, Johnson & Johnson, and Cognizant:
Technical skills (appearing in 80%+ of postings):
- Bias detection and fairness metrics (Fairlearn, AIF360)
- Model explainability (SHAP, LIME)
- NIST AI RMF implementation
- EU AI Act compliance engineering
- Model documentation (model cards, datasheets)
- Python, scikit-learn, pytorch
Technical skills (appearing in 50-80% of postings):
- Differential privacy (Opacus, TensorFlow Privacy)
- AI red teaming and adversarial testing
- ISO/IEC 42001 implementation
- Algorithmic impact assessments
- Post-deployment monitoring and drift detection
- MLOps platforms (MLflow, Weights & Biases)
Soft skills (appearing in 70%+ of postings):
- Cross-functional communication (engineering ↔ legal ↔ product)
- Risk documentation and audit preparation
- Stakeholder presentation for risk committees
- Regulatory liaison
This is an engineering role, not a policy role
The common thread: these are engineering positions, not policy positions. The job is not "write an AI ethics policy" — it's "build the bias audit pipeline, run it against every model before deployment, generate the evidence artifacts, and present the results to the risk committee." The policy team writes the guidelines. The RAI engineer builds the systems that enforce them.
The Concept
The RAI engineering workflow
Every Responsible AI Engineer follows a version of this workflow, regardless of company:
assess → audit → mitigate → document → monitor
↑ |
└────────────────────────────────────────────────────┘
(repeat)
| Stage | What Happens | What You Build |
|---|
| Assess | Identify the system's risk tier, stakeholders, and potential harms | Algorithmic impact assessment (Phase 5) |
| Audit | Measure bias, explainability, privacy, and robustness | Bias audit with Fairlearn/AIF360 (Phase 2), SHAP/LIME explanations (Phase 3) |
| Mitigate | Apply technical mitigations for identified risks | Bias mitigation algorithms (Phase 2), differential privacy (Phase 4) |
| Document | Produce governance artifacts for audit and compliance | Model cards, transparency reports (Phase 3), risk registers (Phase 5) |
| Monitor | Track the system post-deployment for drift and incidents | Bias drift detection, incident response (Phase 5) |
This workflow maps directly to the NIST AI RMF functions: Assess = MAP, Audit = MEASURE, Mitigate + Document = MANAGE, Monitor = MANAGE (ongoing). The GOVERN function is the organizational wrapper — policies, accountability, review cycles — that the engineer operates within.
The "implement once, evidence three times" pattern
This is the practical pattern that makes RAI engineering tractable. Instead of building separate processes for NIST, EU AI Act, and ISO 42001, you build one set of engineering artifacts and tag each against all three frameworks:
- Run a bias audit with Fairlearn → produces a bias report - NIST: MEASURE 2.7 evidence - EU AI Act: Article 10(2)(f) evidence - ISO 42001: Clause 9.1 evidence
- Generate SHAP explanations → produces explanation artifacts - NIST: MEASURE 2.11 evidence - EU AI Act: Article 13 evidence - ISO 42001: Clause 7.4 evidence
- Write a model card → produces documentation - NIST: GOVERN 1.1 evidence - EU AI Act: Annex IV evidence - ISO 42001: Clause 7.5 evidence
One engineering effort, three compliance artifacts. This is exactly what the audit toolkit you're building in this course does — it produces evidence that satisfies multiple frameworks simultaneously.
Building a skills gap analysis
Let's build a tool that maps your current skills against real RAI job requirements and identifies gaps.
"""
lesson_00_04_skills_gap_analysis.py
Maps current skills against real Responsible AI Engineer job requirements.
"""
from datetime import datetime
# Synthesized from real job postings at Citi, Marriott, Schwab, J&J, Cognizant (2025-2026)
JOB_REQUIREMENTS = {
"Bias Detection & Fairness": {
"skills": [
"Fairlearn (MetricFrame, mitigation algorithms)",
"AIF360 (BinaryLabelDatasetMetric, ClassificationMetric)",
"Demographic parity, equalized odds, disparate impact ratio",
"Bias mitigation: pre-processing, in-processing, post-processing",
"Chouldechova's theorem and fairness metric conflicts",
],
"frequency": "appears in 90% of RAI postings",
"covered_in": "Phase 2 of this course",
},
"Explainability & Transparency": {
"skills": [
"SHAP (TreeExplainer, KernelExplainer, summary/waterfall/force plots)",
"LIME (local surrogate models, perturbation-based explanations)",
"Model card generation (Google template, programmatic)",
"Transparency report generation for stakeholders",
"EU AI Act Article 13 transparency requirements",
],
"frequency": "appears in 85% of RAI postings",
"covered_in": "Phase 3 of this course",
},
"Privacy-Preserving AI": {
"skills": [
"Differential privacy (DP-SGD, Opacus, privacy budget tracking)",
"Membership inference attack resistance testing",
"Privacy impact assessments (GDPR Art. 35, EU AI Act Art. 10)",
"Data minimization and PII detection",
],
"frequency": "appears in 60% of RAI postings",
"covered_in": "Phase 4 of this course",
},
"Governance & Compliance": {
"skills": [
"NIST AI RMF implementation (Govern, Map, Measure, Manage)",
"EU AI Act risk classification and compliance",
"ISO/IEC 42001 management system",
"Algorithmic impact assessments (Canada AIA, EU FRIA)",
"AI risk registers and incident response playbooks",
],
"frequency": "appears in 80% of RAI postings",
"covered_in": "Phases 1 and 5 of this course",
},
"ML Engineering Fundamentals": {
"skills": [
"Python, scikit-learn, pandas, numpy",
"Model training, evaluation, and validation",
"MLOps (MLflow, experiment tracking)",
"Post-deployment monitoring and drift detection",
],
"frequency": "appears in 95% of RAI postings",
"covered_in": "Prerequisite + Phase 5 monitoring",
},
}
def assess_skills(have_skills, want_skills=None):
"""
Assess current skills against job requirements.
Args:
have_skills: List of skills the student currently has
want_skills: Optional list of skills the student wants (defaults to all required)
Returns:
Dict with gap analysis results
"""
if want_skills is None:
want_skills = []
for category in JOB_REQUIREMENTS.values():
want_skills.extend(category["skills"])
have_set = set(s.lower().strip() for s in have_skills)
want_set = set(s.lower().strip() for s in want_skills)
gaps = want_set - have_set
covered = want_set & have_set
# Categorize gaps by skill area
gap_by_category = {}
for cat_name, cat_data in JOB_REQUIREMENTS.items():
cat_skills = set(s.lower().strip() for s in cat_data["skills"])
cat_gaps = cat_skills - have_set
cat_covered = cat_skills & have_set
if cat_gaps:
gap_by_category[cat_name] = {
"missing": list(cat_gaps),
"covered": list(cat_covered),
"total": len(cat_skills),
"gap_count": len(cat_gaps),
"coverage_pct": round((len(cat_covered) / len(cat_skills)) * 100, 1),
"frequency": cat_data["frequency"],
"covered_in": cat_data["covered_in"],
}
overall_coverage = round((len(covered) / len(want_set)) * 100, 1) if want_set else 0
return {
"total_required": len(want_set),
"total_have": len(covered),
"total_gaps": len(gaps),
"overall_coverage_pct": overall_coverage,
"gaps_by_category": gap_by_category,
"assessment_date": datetime.now().isoformat(),
}
def generate_development_plan(assessment):
"""Generate a personal development plan based on gap analysis."""
lines = []
lines.append("# Responsible AI Engineer — Skills Gap Analysis")
lines.append(f"\nGenerated: {assessment['assessment_date']}")
lines.append(f"\n## Overall Coverage\n")
lines.append(f"- Skills required: {assessment['total_required']}")
lines.append(f"- Skills you have: {assessment['total_have']}")
lines.append(f"- Skills to develop: {assessment['total_gaps']}")
lines.append(f"- Coverage: {assessment['overall_coverage_pct']}%\n")
lines.append("## Gap Analysis by Category\n")
for cat_name, cat_data in sorted(
assessment["gaps_by_category"].items(),
key=lambda x: x[1]["gap_count"],
reverse=True,
):
lines.append(f"### {cat_name}")
lines.append(f"**Market frequency:** {cat_data['frequency']}")
lines.append(f"**Your coverage:** {cat_data['coverage_pct']}% ({cat_data['total'] - cat_data['gap_count']}/{cat_data['total']})")
lines.append(f"**Where to learn:** {cat_data['covered_in']}\n")
if cat_data["missing"]:
lines.append("**Skills to develop:**")
for skill in cat_data["missing"]:
lines.append(f"- [ ] {skill}")
lines.append("")
lines.append("## Development Plan\n")
lines.append("1. **Prioritize by market frequency** — start with skills that appear in 80%+ of postings")
lines.append("2. **Build, don't read** — every skill in this list has a hands-on lab in this course")
lines.append("3. **Produce artifacts** — each lab produces a real artifact you can show in interviews")
lines.append("4. **Complete the capstone** — the audit toolkit is a portfolio piece that demonstrates all skills simultaneously")
return "\n".join(lines)
if __name__ == "__main__":
# Example: A student with ML fundamentals but no RAI experience
current_skills = [
"Python",
"scikit-learn",
"pandas",
"numpy",
"Model training, evaluation, and validation",
]
assessment = assess_skills(current_skills)
plan = generate_development_plan(assessment)
with open("skills_gap_analysis.md", "w") as f:
f.write(plan)
print(f"Overall coverage: {assessment['overall_coverage_pct']}%")
print(f"Skills to develop: {assessment['total_gaps']}")
print(f"Report saved to skills_gap_analysis.md")
You're interviewing for a Responsible AI Engineer role at Citi. The interviewer asks: "What's the difference between what a policy team does and what you'd do as an RAI engineer?" How do you answer?
This distinction is exactly what hiring managers are testing for. Policy teams set the "what" and "why" — what fairness metric matters for this use case, why we chose equalized odds over demographic parity, what the risk appetite is. RAI engineers build the "how" — the Fairlearn pipeline that computes equalized odds, the SHAP module that explains each decision, the monitoring that detects drift, the model card that documents everything for auditors. The "implement once, evidence three times" pattern is the bridge: the engineer builds artifacts that serve the policy team's requirements across NIST, EU AI Act, and ISO 42001 simultaneously. If you can articulate this in an interview, you're demonstrating that you understand the role — not just the buzzwords.