Module 1: Why Ethics Matters in AI Engineering

7. Ethics Impact Analysis: the framework

Capsule description

The first 6 capsules established why ethics matters in AI. This capsule gives you the how: a concrete framework for doing an Ethics Impact Analysis on any AI system.

It's the equivalent of the threat model in security: it doesn't guarantee the system is ethical/secure, but it guarantees the decisions were made with visibility into the risks.

The framework has 5 phases:

  1. System characterization — what it does, in what context, with what data.
  2. Stakeholder identification — who affects it or is affected by it.
  3. Failure mode mapping — how it can cause harm.
  4. Severity and probability scoring — how bad, how likely.
  5. Prioritization and mitigation — what to handle first, with what techniques.

By the end, you'll be able to produce a professional, defensible, reusable 3-5 page document. Capsule 08 walks you through applying it to a real case.


Before you start: why do an Impact Analysis

Three reasons, in increasing order of force:

1. Risk visibility

With no process, risks stay implicit. Every team member assumes "someone else" is thinking about them. Result: nobody thinks about them explicitly.

An Impact Analysis forces the question: what can go wrong and to whom? It doesn't skip things because "they're obvious" — it documents them.

2. Communication with stakeholders

When you talk to a PM, legal, an exec — you need a shared artifact everyone reads and signs off on. The Impact Analysis is that artifact.

"Look, I identified these risks, scored the severity, and I'm proposing these mitigations. Are we aligned?"

With no document, everything lives in conversations that get forgotten. With a document, there's a paper trail.

3. Compliance evidence

Under modern regulation (EU AI Act, NIST AI RMF), you have to demonstrate due diligence. The Impact Analysis is the primary evidence.

If a regulator or a lawsuit shows up: "what due diligence did you do before deploying?" Answer: "here's the Ethics Impact Analysis, dated, signed, with mitigations implemented and verified."

With no document, the answer is "we thought about it" — which legally is equivalent to not having done it.


Phase 1: System characterization

Before you identify risks, you have to describe exactly what it is you're analyzing. Vague = useless.

Characterization questions

Answer with enough detail. If you can't, the system isn't defined well enough to deploy.

About the system:

  1. What does it do? One sentence, no jargon.

    • Good: "Recommends candidates to interview based on their résumé and the job description."
    • Bad: "Intelligent AI system for recruiting optimization."
  2. What type of model?

    • Classification, regression, ranking, generation, retrieval, agent.
    • Trained from scratch, fine-tuned, or an external API.
  3. Who provides the model?

    • In-house, OpenAI, Anthropic, Google, open source (Llama), etc.
  4. What is the formal output?

    • A 0-1 score, a ranking, a binary decision, generated text, an embedding, an action.
  5. How is the output used?

    • An automatic decision (no human in the loop).
    • An assisted decision (a human approves).
    • Informational only.

About the data:

  1. Where does the training data come from?

    • Public datasets, scraped, generated internally, purchased.
  2. What kinds of personal data does it contain?

    • Direct PII, indirect PII, sensitive data (health, biometrics, religion, orientation, etc.).
  3. Is there clear consent?

    • Documented, explicit, granular, revocable.
  4. What's the demographic composition of the dataset?

    • Wherever inferable: gender, age, ethnicity, geography, language, etc.

About the deployment:

  1. What jurisdictions will it be used in?

    • US only, US + EU, global.
    • This determines which regulations apply.
  2. Who are the users?

    • Individual end users, companies, governments, healthcare workers, etc.
  3. At what scale?

    • Dozens of people, thousands, millions, billions.
  4. How reversible is the output?

    • Reversible (a product recommendation).
    • Hard to reverse (a hiring rejection).
    • Irreversible (publishing content, a medical decision).

An example characterization

System: Resume Screener — recommends the Top 10 candidates to interview from the applicants to a job posting.

Type: Classifier + ranking. LLM-based (GPT-4) with prompt engineering, no fine-tuning.

Output: a ranked list of candidate IDs with a 0-1 score.

Use: the recruiter sees the ranking and decides who to interview. An "assisted decision" — a human makes the final call.

Data: applicants' résumés (free-form). Internal job descriptions. We do NOT use historical hire data (a deliberate decision to avoid the Amazon Hiring scenario).

Composition: applicants are mostly US (85%), tech roles (engineering, product), ages 22-50.

Jurisdictions: US (EEOC, NYC AEDT Law) + UK + EU (EU AI Act high-risk, given that it's hiring).

Scale: ~50,000 applications/year at mid-size companies; potential to scale 10x.

Reversibility: medium. The human recruiter can overrule, but automation bias is documented — a lot of people don't overrule.


Phase 2: Stakeholder identification

Who interacts with the system, or is affected by its decisions?

Stakeholder categories

Direct (they interact with the system):

  • Primary users: whoever operates the system (e.g., recruiters in Resume Screener).
  • Subjects: whoever the system makes decisions about (e.g., applicants).

Indirect (affected by the outputs):

  • Family/dependents of the subjects (affected by decisions that impact them).
  • Communities represented or under-represented.
  • Future employers / colleagues of the subject.

Systemic:

  • Regulators: agencies that can investigate or fine you.
  • Society at large: if the system scales, macro effects (perpetuating social biases).

For each stakeholder identified, document

  1. Who they are (a concrete description).
  2. How they interact with the system.
  3. Which of the system's decisions affect them.
  4. What outcomes are possible for them (positive and negative).
  5. Specific vulnerabilities of the group (if applicable).

An example stakeholder map

StakeholderHow they interactDecisions that affect themPossible outcomesVulnerabilities
ApplicantsSubmit a résuméThe ranking that decides the interviewInterview vs. no interviewWomen, minorities, age > 50, non-standard profiles
RecruitersOperate the systemTrust in the ranking; time investedEfficiency (positive); blindness to outliers (negative)Automation bias
Hiring managersReceive pre-filtered candidatesA restricted candidate poolGood hires vs. missed talentIndirect (no access to the rejected)
The companyBuilds/deploys itProductivity; legal exposureEfficient hiring vs. lawsuitsEEOC/AEDT/EU AI Act
Under-represented communitiesUnder-represented in hiring outcomesReduced access to opportunityAccess (positive if fair); exclusion (negative if biased)Historically affected by hiring bias
Society at largeAggregate hiring patternsEconomic mobility, equalityThe distribution of opportunityConcentration of power, occupational segregation

Phase 3: Failure mode mapping

How can the system cause harm?

Standard failure mode categories

Bias / Discrimination:

  • Disparate impact by gender, race, age, etc.
  • Indirect proxy discrimination.
  • Unequal subgroup error rates.

Privacy:

  • Leakage of personal data in the outputs.
  • Re-identification of individuals in "anonymous" datasets.
  • Inference of sensitive attributes from the outputs.

Accuracy:

  • Hallucinations (LLMs).
  • Confidence misrepresentation.
  • Edge case failures.

Misuse:

  • Use for unintended purposes.
  • Input manipulation (adversarial).
  • Use by bad actors.

Transparency:

  • Lack of explainability.
  • A false sense of objectivity.
  • Trust calibration issues.

Accountability:

  • Diffusion of responsibility.
  • No way to appeal.
  • Lock-in of algorithmic decisions.

Safety:

  • Physical harm (in systems with physical effects).
  • Psychological harm (manipulation, addiction).
  • Economic harm.

For each failure mode, document

  1. The failure mode: a concrete description.
  2. The mechanism: how it would happen technically.
  3. Affected stakeholders: which ones from Phase 2.
  4. The harm outcome: what happens to the stakeholder.

An example (continuing with Resume Screener)

Failure modeMechanismStakeholdersHarm outcome
Gender biasThe LLM learned from an internet with historical bias → it favors masculine-coded language in résumésFemale applicantsUnder-ranked, fewer interviews
Age biasThe LLM implicitly penalizes résumés with > 20 years of experienceApplicants > 50Under-ranked, ageism
Non-standard résumé biasModel trained on Western résumés, fails on different formatsInternational applicantsUnder-ranked
HallucinationThe LLM invents a "match" between skills not present in the résuméRecruiters, applicantsA decision based on false data
Privacy leakThe prompt includes the full résumé → it can leak into logsApplicantsExposure of personal data
Automation biasThe recruiter trusts the ranking 100% without reviewMid-ranked applicantsGood talent discarded
No appealApplicants don't know why they were rejectedApplicantsNo possibility of feedback/improvement

Phase 4: Severity and probability scoring

Each failure mode is scored on two axes:

Severity

How bad is the harm if it happens?

LevelDescriptionExamples
LowInconvenience, minor economic harmA bad product recommendation
MediumSignificant economic harm, frustrationRejection in a job process
HighMaterial harm, lost opportunities, psychological harmSystematic discrimination in hiring
CriticalPhysical harm, liberty, life; irreversibleA wrongful arrest, a wrong medical decision

Probability

How likely is it to happen?

LevelDescriptionExpected frequency
LowA rare edge case< 1% of cases
MediumUncommon but recurring1-10% of cases
HighA common case10-50% of cases
Very highNearly the default> 50% of cases

The Severity × Probability matrix

              LOW   MEDIUM  HIGH  VERY HIGH  ← Probability

CRITICAL       🟡    🔴     🔴     🔴
HIGH           🟢    🟡     🔴     🔴
MEDIUM         🟢    🟢     🟡     🔴
LOW            🟢    🟢     🟢     🟡

↑
Severity

🟢 = acceptable risk / monitor 🟡 = mitigation required 🔴 = deploy blocker

An example (continuing with Resume Screener)

Failure modeSeverityProbabilityRiskJustification
Gender biasHIGHHIGH🔴LLMs show documented bias; the impact in hiring is high
Age biasHIGHHIGH🔴Same as gender
Non-standard résumé biasMEDIUMHIGH🔴Common but solvable
HallucinationHIGHMEDIUM🔴LLMs demonstrably hallucinate
Privacy leakHIGHLOW🟡Low if logs are handled correctly
Automation biasHIGHHIGH🔴Recruiters tend to trust rankings
No appealMEDIUMVERY HIGH🔴100% by default

7 of the 7 identified failure modes land in the 🔴 or 🟡 zone. The system cannot be deployed without mitigations.


Phase 5: Prioritization and mitigation

For each 🔴 or 🟡 risk, propose a concrete mitigation.

The structure of a mitigation

Each mitigation must include:

  1. A specific technique (not an abstract one).
  2. A metric to verify it works.
  3. An acceptance criterion (when it counts as mitigated).
  4. Ownership (who's responsible).
  5. Estimated implementation time.

Example mitigations

RiskMitigationMetricAcceptance criterionOwnerTime
Gender biasCounterfactual testing in CI: 100 résumés with gender markers swapped, measure the score deltaMean score delta< 0.05ML eng2 weeks
Age biasDisparate impact testing by age bracketApproval ratio worst/best> 0.80ML eng2 weeks
Non-standard résumé biasDiversify the prompt examples; test with international résumésSubgroup accuracy> 0.85 in every subgroupML eng1 week
HallucinationForce constrained output: only skills/companies present in the résuméHallucination rate< 1%ML eng1 week
Privacy leakDon't persist the résumé in logs; redact in promptsAudit logsZero PII in logsDevOps1 week
Automation biasUI changes: require the recruiter to view at least the top 30, not the top 10. Show the limitations explicitlyRecruiter usage analytics80% review beyond the top 10Frontend2 weeks
No appealImplement a feedback channel: applicants can request an explanationFeedback request rateWorks at p99 < 24hEng + customer ops4 weeks

Total estimate: 4 weeks of work + ongoing monitoring

Until the mitigations are in place, the system must NOT be deployed to production.


The final document

The Ethics Impact Analysis is delivered as a 3-5 page document with this structure:

# Ethics Impact Analysis: [System]

## 1. Executive summary
- System: [one sentence]
- Primary stakeholders: [list]
- Critical risks: [N risks in the 🔴 zone]
- Recommendation: [proceed with mitigations / pause / do not proceed]

## 2. System characterization
[Phase 1]

## 3. Identified stakeholders
[Phase 2 — table]

## 4. Failure modes
[Phase 3 — table]

## 5. Risk assessment
[Phase 4 — matrix + table]

## 6. Mitigation plan
[Phase 5 — table with ownership and timelines]

## 7. Post-deploy monitoring plan
[Metrics that will be checked periodically]

## 8. Decision log
- [Date] Analysis completed by [author]
- [Date] Reviewed by [stakeholders]
- [Date] Approved by [decision maker]

## 9. Next review
[Date — typically 6 months post-deploy, or whenever there's a significant change]

When and how to use this framework

When to apply it

  • Before starting a new AI system that affects people.
  • Before deploying to a new audience/jurisdiction.
  • After a significant change: new dataset, new model, new domain.
  • Periodically post-deploy (every 6-12 months).

When NOT to apply it (it's overkill)

  • Systems with no impact on people (e.g., an internal song recommender for your own playlist).
  • Prototypes in dev only (but apply it before any external exposure).
  • Systems with full human review always (where the AI is 100% advisory with no automation).

Who does it

Owner: the system's lead engineer. It's a technical responsibility.

Reviewers:

  • PM (to understand the product risks).
  • Legal (regulatory compliance).
  • Security (overlap with privacy).
  • Senior eng (technical quality review).

Decision maker: the director/VP who approves the deploy. They sign the document.


Traps and common mistakes

1. Doing the analysis but not implementing the mitigations

A document with no action is useless. If you identify a 🔴 risk and deploy without mitigation, you've made it worse (now there's a paper trail proving you knew).

2. Generic analysis

"Bias could exist" is not analysis. "Gender bias detectable via counterfactual testing with threshold X" is analysis.

3. Skipping Phase 1 (characterization)

If the characterization is vague, all the rest of the analysis is vague. Push for detail until the system is unambiguously described.

4. Forgetting indirect stakeholders

The most affected are often not the direct users. In hiring, the applicants (subjects) are more affected than the recruiters (users).

5. Subjective severity

"It's low because it's only a recommendation, not a decision" — but if the recruiter always trusts it, it's effectively a decision. Severity has to be based on real impact, not on intent.

6. Probability without data

"Low probability" with no measurement isn't useful. If you're going to estimate probability without measuring, it's high or very high by conservative default.


Self-check

1. Why is Phase 1 (characterization) a prerequisite for the other 4?

Because without a clear characterization:

  • You don't know who the stakeholders are (Phase 2 impossible).
  • You don't know which failure modes are relevant (Phase 3 vague).
  • You can't score severity (Phase 4 conjectural).
  • You can't propose specific mitigations (Phase 5 abstract).

If your Phase 1 says "the system is intelligent AI for hiring optimization," everything after it is noise. If it says "a ranking of the Top 10 candidates to interview from the applicants to a job posting, used by a recruiter to decide interviews, in US/UK/EU jurisdictions, at a scale of 50K applications/year, an assisted decision with a human making the final call," the rest of the analysis becomes concrete.

A vague characterization = a vague analysis = a false sense of due diligence.

2. What do you do if every failure mode you identified is 🔴 (blocking)?

Three options:

  1. Implement all the mitigations before deploy. This delays the launch but produces a robust system.

  2. Reduce the scope: launch for a subset of use cases where some risks don't apply. E.g., launch Resume Screener in the US only to start (reduces EU AI Act regulatory exposure); or only for internal roles (reduces the stakes).

  3. Don't launch: if every risk is irreducible at a reasonable cost, the project may not be viable as designed. Rethink the architecture or cancel.

What you do NOT do: launch anyway. Blocking = blocking. If you launch, you expose the company and yourself personally.

Real-world: many AI systems need this pause. The argument is "the cost of delaying is enormous" — and the answer is "the cost of an incident is 50x higher; the math is against rushing."

3. How do you assign severity when you have no precedents?

Conservative heuristics:

  1. By default, assume high severity if it affects people. Lower it only with evidence.

  2. Consider reversibility: irreversible (publishing, a medical decision) > hard to reverse (a rejection) > reversible (a product recommendation).

  3. Consider scale: 1 person affected vs. millions. The same per-capita harm, but a different aggregate cost.

  4. Consider the vulnerabilities of the affected group: historically affected minorities carry a higher severity because harm compounds.

  5. Consider precedents in similar systems: if Amazon Hiring was HIGH severity, your hiring system probably is too.

When in doubt, raise it: it's easier to lower severity later with evidence than to raise it after an incident.

4. How do you balance the Impact Analysis against development velocity?

The right balance:

  • Low-risk systems (don't affect people, low scale): skip it or do a light version. 1 page max.

  • Medium-risk systems (affect people but low scale, reversible): full analysis but light. 2-3 pages. 1-2 days of work.

  • High-risk systems (affect people at scale, irreversible): full analysis. 5+ pages. 1-2 weeks of work, including stakeholder reviews.

The cost calculation: 1-2 weeks of Impact Analysis vs. $4M in expected incident cost (capsule 05). Overwhelmingly positive ROI.

For velocity: integrate the Impact Analysis into the design, not as post-design overhead. Do it in the feature's sprint planning, not after.


Summary and next step

  • The Ethics Impact Analysis is the equivalent of the threat model in security: risk visibility + a paper trail.
  • 5 phases: characterization → stakeholders → failure modes → severity/probability → prioritization/mitigation.
  • The final document is 3-5 pages, professional, defensible, reusable.
  • Who does it: the lead engineer, with review by PM/legal/security/senior eng.
  • When it's done: before starting a new system, before significant changes, and periodically post-deploy.
  • The cost calculation massively favors doing the analysis: 1-2 weeks vs. $4M+ in expected incident cost.

Checkpoint: you should be able to describe the 5 phases, what happens in each one, and what deliverable it produces.

Bridge to the next capsule: capsule 08 is the mini-project. You'll apply the framework to a real AI system (it can be your path capstone, a system from your job, or a case we provide). The deliverable is a complete 3-5 page Ethics Impact Analysis that demonstrates mastery of the process. That document is the first tangible artifact of your ethical workflow, and you'll refine it in later modules as you learn specific techniques (bias testing in M2, privacy in M3, compliance in M4-6).


Resources

  1. Microsoft Responsible AI Impact Assessment Template — a commercial template.
  2. Google Model Cards Toolkit — open source.
  3. NIST AI RMF Playbook — step-by-step guidelines.
  4. EU AI Act — Risk Assessment guidance — regulatory reference.
  5. Algorithmic Impact Assessment (Canada Treasury Board) — a government framework.

Next: 08-mini-project-ethics-impact-analysis.md — Produce your own Ethics Impact Analysis.

Capsule 07 of 08 — Module 1 — AI Ethics & Compliance Guide