Responsible AI

EMBA 8160 — Session 5

Blueprint

Engineering the objective function

A structural blueprint for ethics, governance and liability in agentic AI systems.

Agentobjective function✕✕Governance gatepermissions · review · logsApprovedactions

For: technical leads · product managers · enterprise executives

Outline

From what we value to who answers for it — each step turns the one before it into practice.

SectionQuestionWhat we cover
OpeningWhy does this matter?The agent that deleted a production database
EthicsWhat do we value?Values, trade-offs, ethics vs. legal compliance
PrinciplesWhat do we commit to?Common principles, and why companies publish them but rarely put them into practice
RiskWhere does it matter most?Sorting use cases by stakes, autonomy and who is affected
GovernanceHow do we make it routine?Roles, an inventory of AI systems, review checkpoints, reference frameworks
AccountabilityWho answers?Named owners, human oversight, recourse, incident response
CloseWhat do I do Monday?Team breakouts, a leader’s checklist, and your own Study Buddy

The framework

From values to answerability

Ethics — what do we value?The values the organization will defend, and the trade-offs between them when they collide. Judgment, not a checklist.
Principles — what do we commit to?Values written down as commitments, and translated into product, process and business decisions.
Risk — where does it matter most?Not every use case deserves the same scrutiny. Tier each one by stakes, autonomy and who is affected.
Governance — before the factWho approves, what gets reviewed, which risk tier gets which checkpoint across the lifecycle.
Accountability — after the factWho answers when harm happens, how affected people get recourse, the audit trail, incident response.

Why Does This Matter?

One agent, one written order, one deleted database

Running case

Meet the two companies

SaaStr logoSaaStr

The customer — the deployer

The largest community for business-software (B2B and SaaS) founders and executives. Founded in 2012 by Jason Lemkin, who earlier co-founded EchoSign (now Adobe Acrobat Sign).

What it does: runs the SaaStr Annual conference and other events, publishes a widely read blog and podcast, and invests in early-stage startups through the SaaStr Fund.

Why it matters here: its business runs on relationships, so its database of executives and companies is a core asset. Today it runs with a handful of people and more than 20 AI agents.

Replit logoReplit

The vendor — the agent’s maker

A browser-based platform for writing, running and publishing software, used by millions of people. Founded in 2016 by Amjad Masad and co-founders; based in the San Francisco Bay Area.

What it does: Replit Agent builds complete apps from plain-English instructions — “vibe coding” — and Replit hosts the result, including its database.

Why it matters here: it markets the agent to non-programmers, so the user often cannot check what the agent did. In September 2025 it raised $250 million.

Running case

The agent that deleted the database

The setup — July 2025SaaStr founder Jason Lemkin runs a public 12-day experiment, building an app with Replit’s AI agent on real data. The agent makes changes he did not ask for and makes up data.
The written orderLemkin tells the agent in writing to make no changes without his permission. The project is in a declared “code and action freeze.”
The deletion — day nineThe agent deletes the production database: records on 1,206 executives and more than 1,196 companies.
The false accountThe agent says the data cannot be recovered. That is wrong — Lemkin restores it himself.
Replit’s responseThe CEO calls it unacceptable and offers a refund. Replit separates live data from the agent’s working environment.
Two months laterReplit raises $250 million and launches an agent it describes as ten times more autonomous.

Sources: Fortune, CIO, SaaStr, The Register

Running case — act two

A year later, the same leader, more agents

SaaStr, October 2026

Three humans and more than 20 AI agents. Two different agents recently destroyed critical data:

The pipelineA third-party agent deletes nearly all of SaaStr’s Salesforce sales pipeline minutes after it is deployed.
The fileAnother agent replaces a core code file with the words “DO IT,” twice — then reports “I did not make that edit.”

What saved them

Both times, the data came back from copies nobody had set up as backups.

The new rule

“If we can’t name the independent copy, the agent doesn’t get write access yet.”

The lesson is not “agents are bad.” It is that experience alone does not protect you. Structure does.

Source: SaaStr, Oct 27 2026

Why agents are different

From a tool to a system with agency

Traditional softwareHumanSystemOutputThe system is a static tool.The human makes the decisions.Agentic AIHumanObjectivefunctionAgentreason / actCascading outputs
The moral choiceDefining what the agent optimizes for is an ethical decision, not a technical one.
Emergent behaviorBehavior arises from interactions no one explicitly designed. You still own the risk.
The policy shiftEvery deployed agent is a policy. It applies consistently, at scale, indefinitely.

Why agents are different

Machine speed turns isolated errors into systemic failures

A biased decision a human makes once a day, an agent makes ten thousand times before anyone notices.

Add automation bias — people trusting machine output without checking — and errors are not just faster. They are reinforced.

TimeScale of impactHuman error rateAgentic cascading harmcompounding failure,accelerated by automation biasisolated, self-correcting mistakes

The diagnostic

Real-world agentic outcomes, done right and done wrong

Dimension✓ Done right — bounded systems⚠ Done wrong — unconstrained systems
Autonomy levelCalibrated to stakes and reversibility (JPMorgan LOXM)Applied uniformly regardless of consequence (UnitedHealth)
Human oversightMeaningful escalation thresholds (Bank of Bahrain & Kuwait AML)1.1B applications processed with zero review (Workday)
Objective specNarrow, precisely defined goalsBroad financial metric with no ethical guardrails
Data handlingStrictly scoped to the specific task1.6M patient records shared beyond scope (DeepMind & NHS)
Governance timingBuilt before deployment (McKinsey)Retrofitted after harm or legal action
LiabilityDeployer accepted shared responsibilityVendor rejected liability; the court disagreed

Ethics

What do we value — and what do we do when values collide?

Ethics and responsibility

Ethics sets the destination. Responsible AI is the vehicle.

BeneficenceExplicabilityJusticeAutonomyNon-maleficenceValuesEthical AI: the destinationspecifyModel cardsBias testingHuman-in-the-loopIncident responseAudit trailsResponsible AI: the vehicle

A system can pass every operational audit and still produce unethical outcomes if its values are poorly specified. Strong ethical intentions without responsible-AI infrastructure never reach production. The strongest programs build both.

Ethics

Values conflict — that is the job

Fairness vs. fairnessWhen base rates differ between groups, a model cannot be equally calibrated and have equal error rates for every group. You must choose which definition of fair you will defend.
Transparency vs. intellectual propertyExplaining how a decision was made can expose the model, the data and the business logic that are your competitive advantage.
Personalization vs. privacyThe more the system knows about a person, the more useful it is — and the more it can leak, combine or misuse.
Speed vs. safetyEvery review gate costs time to market. Competitors who skip it ship first — until they don’t.

A list of principles everyone agrees with is not ethics. Ethics starts when two of them point in different directions.

Ethics vs. compliance

Law is reactive; ethics anticipates harm

DomainCurrent regulationWhat ethicists demand
Harm & liabilityEU AI Act: fines up to €35M or 7% of global turnoverContestability built in as a design right
ConsentNotice required (the user is informed)Genuine opt-in for all high-stakes decisions
Bias & designStatistical testing requiredParticipatory design with affected communities
Agentic pipelinesCurrently unaddressedLiability tracked across multi-agent delegation chains
InsightRegulation follows harm. A system designed to today’s compliance minimum will be out of date when the next rules arrive.

Case lens — Ethics

Who carries the risk?

Whose judgment failed?Lemkin chose to experiment on real data. Replit marketed the tool as safe for this. Where does each party’s responsibility start and stop?
Moving fastReplit raised $250 million and shipped a more autonomous agent right after the incident. Is that responsible — or just how competitive markets work?

Principles

What do we commit to — and why it rarely reaches practice

Principles

Five core principles

As established in the EU’s Ethics Guidelines for Trustworthy AI

BeneficenceAI should actively benefit people and society — not merely avoid harm. The obligation is positive: to do good, not just to refrain from doing harm.
Non-maleficenceAI must not cause harm, including through inaction, unintended side effects, or emergent behavior. The classical medical principle “do no harm” extended to autonomous systems.
AutonomyPeople can understand, contest and override AI decisions that affect them: informed consent, explanation, and a real override — the right to exercise control, not just to be told.
JusticeThe benefits and burdens of AI should be distributed fairly across groups and geographies — both a fair process and fair outcomes.
ExplicabilityAI behavior must be understandable and auditable by each stakeholder at the right level. A patient, a clinician and a regulator need different explanations of the same decision; all three are legitimate.

Principles

Published everywhere, practiced rarely

Why principles stall

Nobody owns themThe principles live on the website; no executive’s targets depend on them.
Too abstract to act on“Be fair” does not tell a product manager what to ship on Tuesday.
No budget, no vetoIf no one can stop a launch for violating a principle, it is a slogan.

Translating one principle

“People can override AI decisions”
ProductEvery automated decision shows an “ask a person” path
ProcessAppeals answered by a named team within 48 hours
BusinessOverride rate is a KPI on the owner’s dashboard

A principle is in practice when it changes a product, process or business decision.

Case lens — Principles

A rule is not a control

The agent had a written ban — and the permissions to break it“No changes without permission” was an instruction. Write access to production was a capability. When they conflicted, the capability won.
Competing goalsThe agent was asked to make the app work and not to touch anything. Under pressure, it resolved the conflict on its own.

A principle the agent can technically violate is not a safeguard.

Source: CIO — The real agent risk that Replit’s database deletion revealed

Risk

Where does it matter most?

Risk

Not every use case deserves the same scrutiny

Three questions set the tier

StakesWhat is the worst plausible outcome, and can it be reversed?
AutonomyDoes the system suggest, decide with a human, or act on its own?
Who is affectedEmployees, customers, the public? Can they see the decision, and contest it?

Same company, two use cases

Marketing copyHiring screener
StakesEmbarrassmentCareers, discrimination law
AutonomyDraft, human editsFilters before a human looks
AffectedBrandApplicants who never see it
OversightLightHeavy

The logic behind the major frameworks

EU AI Act: unacceptable, high, limited, minimal risk — hiring, credit and education are high-risk.
NIST AI RMF: Govern, Map, Measure, Manage — scrutiny proportional to risk.

Risk

Phase 1: tier the risk, stress-test the objective

Risk tier assessment

☐ What is the worst-case outcome?

☐ Is it reversible?

☐ Did the affected parties consent?

☐ Does it fall under regulation (e.g. the EU AI Act)?

The evil genie testWrite the objective function down explicitly. Then ask: if the agent achieved this objective perfectly, what is the worst thing that could happen?
ExampleAn agent told to “maximize customer retention at all costs” will learn to manipulate vulnerable users. Find the flaw before anyone writes the code.

Governance

How do we make it routine? — before the fact

Two different jobs

Governance before, accountability after

Governance — before the fact

Who approvesA named body with the power to block a launch.
What gets reviewedAn inventory of every AI system, including the ones IT did not buy.
Risk tiersWhich tier gets which checks.
Lifecycle checkpointsBefore build, during development, before deployment, in production.

Accountability — after the fact

Who answersA named owner when harm happens — not “the agent.”
RecourseHow affected people contest a decision and get it fixed.
Audit trailAn independent record of what the system did.
Incident responseKill switch, recovery, disclosure — rehearsed.

Governance

Governance is a pipeline, not a checklist

If your team thinks about governance only at deployment time, it is already too late. Build accountability into the workflow, the way you build in security and performance testing.

Phase 1 · Before buildRisk tiering and objective stress-testingGate: risk tier assigned
▶
Phase 2 · During developmentLeast-privilege access and escalation gatesGate: access scoped
▶
Phase 3 · Pre-deployConfirmation gates and architecture reviewGate: review passed
▶
Phase 4 · ProductionTamper-proof telemetry and kill switchesGate: alert and stop

Governance

Phase 2: contain the blast radius with least privilege

Over-permissioned: an uncontained blast radiusProduction DB (RW)Payment gateway (RW)User data (RW)Admin API (RW)AgentRead-only analytics (R)Profile viewer (R)Session logger (R)Least privilege: one-way calls to approved tools
Architectural rules

1. Separate credentials for each agent role.

2. No shared admin tokens.

3. An explicit list of approved tools.

4. Tamper-proof decision logs from day one: trace ID, inputs, tools called, outputs.

An ethical failure, not just a security oneAn agent with write access to a production database it only needs to read is a design decision someone approved.

Governance

Phase 2: escalation gates that mean something

Human-in-the-loop is not a checkbox. A reviewer clearing 500 decisions a day at 30 seconds each provides cover, not oversight. Before any irreversible action, the agent must pause.

Theatrical oversightReviewer500 decisions a day30 seconds eachAPPROVEDautomation biasMeaningful escalation gateAgent90% · routine and reversible → processed automatically10% · uncertain or irreversible🔒 Forced pauseA human unlocks it, withthe full reasoning trace

Governance

Phase 3: pre-deployment review and kill switch

GateRequirementPass criteria
Objective auditSpecified in writing and stress-tested?Document exists and has been reviewed
Least privilegeBlast-radius containment verified?Security review passed
LoggingEvery action logged with full context?Log sample validated
Failure modesFallback behavior when uncertain?Fallback documented
Rollback planCan the agent be disabled rapidly?Kill switch tested in under 5 minutes
GatedFailing any single item blocks production deployment. External red-teaming is mandatory for every high-risk tier.

Governance

Enterprise oversight: shadow AI and the liability shift

Agentic AI is no longer just an IT decision. Failures scale straight to board-level legal liability.

Board level — AI review boardLegal, HR and technology, with the power to block deployment
▲
Management level — enterprise AI inventoryShadow-AI mapping, risk tiers, kill switches
▲
Team level — agent telemetryOverride rates, bias metrics
The liability shiftIn Mobley v. Workday, a US court let claims proceed against the AI vendor as well as the employers using it. “We’re just using the vendor’s software” is no longer a defense.
Data governanceAgents combine datasets that were collected for unrelated purposes. Consent frameworks built for static systems must adapt to dynamic, multi-agent pipelines.

The Regulatory Landscape

US State-Level AI Legislation

New York — Advanced AI Licensing Act (A 8195): Requires developers and operators of certain “high-risk advanced AI” to obtain a licence. Related bills, such as an amendment in the Illinois legislature (HB 1002), require state certification for the use of diagnostic algorithms.

Rhode Island (H 6286): Mandates a “distinctive watermark” to authenticate content generated by generative AI.

District of Columbia — Stop Discrimination by Algorithms Act (B 114): Requires notice about how AI is used in employment, including the source of information, and a separate notice to individuals affected by algorithmic eligibility determinations.

Massachusetts — Act Preventing a Dystopian Work Environment (HB 1873): Requires employers or vendors using AI to provide specific notices.

Washington (HB 1951): Requires developers of automated decision tools to disclose to deployers the types of data used to program or train the tool, and how the tool was evaluated for validity.

California (AB 331) and New York (AB 7859): Bills that would require AI deployers to allow individuals to opt out of decisions based on automated decision-making.

Bill status reflects the 2023–2024 legislative sessions and will have moved since — verify current status before relying on any single item.

The Regulatory Landscape

EU AI Act vs. the US approach

One binding, risk-tiered law — versus voluntary standards plus a patchwork of federal guidance and state laws.

EU AI ActUS approach — NIST AI RMF, federal and state rules
Legal natureBinding regulation in every EU member state — and for non-EU companies whose AI is used in the EUVoluntary framework (NIST) plus executive orders, agency procurement rules and state laws
EnforcementFines up to €35M or 7% of global annual turnoverNo single federal penalty regime; liability runs through tort law, consumer protection (FTC) and sector rules
Risk classificationFour tiers: unacceptable (banned), high (conformity assessment, human oversight), limited (transparency), minimalPrinciples-based: NIST’s Govern, Map, Measure, Manage, adapted to each use case
DocumentationPrescriptive for high-risk systems: data provenance, accuracy, architecture, logsFlexible, set by each organization’s own risk tolerance
Prohibited practicesBans social scoring, most real-time biometric identification in public, and emotion recognition at work and schoolNo blanket federal ban; some states and agencies restrict specific uses such as facial recognition

Sources: EU AI Act, Regulation (EU) 2024/1689 · AI Act high-level summary · NIST AI RMF · EC-Council comparison · AI regulation in the US (Wikipedia)

Case lens — Governance

Separation of duties

One actor, three rolesThe agent acted, reported on what it did, and supplied the only explanation. In finance, the person who makes a payment never also audits it.
What would have changed the outcome?Independent logs the agent cannot edit. Read-only access by default. Recovery tested without the agent’s help.

Accountability

Who answers? — after the fact

Accountability

“The agent did it” is not an answer

Named ownersEvery agent has a human owner who can be named in a meeting and in a filing.
Human oversightSomeone with the authority and the time to overrule the system.
RecourseAffected people can see that a decision was automated, contest it, and get it corrected.
Incident responseA rehearsed plan: stop, recover, investigate, disclose.

The courts agree

Moffatt v. Air Canada (2024)Air Canada argued its chatbot was responsible for its own wrong refund advice. The tribunal held the airline liable for everything on its website, chatbot included.
Mobley v. WorkdayA US court let discrimination claims proceed against the vendor of an AI screening tool, not only the employers using it.

Accountability

The interlocking accountability framework

TechnicalcoreGlobal regulationEU AI Act, civil-rights law, societal impactEnterprise oversightAI inventory, review boards, due diligenceTechnical governancelogs, least privilege, confirmation gatesA failure at the coreradiates out throughevery ring

Ethical governance is not a constraint bolted onto AI; it is load-bearing structure. Responsibility is engineered in the code, overseen by the enterprise, and aligned with regulation.

Case lens — Accountability

Who answers?

Three candidatesReplit, which built and marketed the agent? The model provider behind it? Or Lemkin, who deployed it on real data?
The anonymous vendorIn the Salesforce incident, SaaStr kept the third-party vendor anonymous. What does that do to accountability across the market?

Accountability

The unsolved frontiers

Open problems in research and in the market.

1. Formal verificationProving that safety rules hold everywhere within an agent’s bounded autonomy. Moving the industry from “we believe it is safe” to “we can demonstrate it is safe.”
2. Agentic audit infrastructureStandardized, tamper-evident records of how agents reasoned and handed off work. Going beyond flat logs to answer exactly which data contributed to an automated decision.
3. Mechanistic interpretabilityTracing harmful outcomes back to individual agent decisions and data inputs inside complex, collaborating multi-agent pipelines.

What Do I Do Monday?

From the case to your own agents

Close

A leader’s checklist for Monday

1. List every agentIncluding the ones a team switched on without asking. Each gets a named owner.
2. Tier each oneStakes, autonomy, who is affected. Scrutiny follows the tier.
3. Name the independent copyNo copy you can name, no write access.
4. Enforce limits in permissionsNot in prompts. Read-only by default.
5. Separate actor and auditorLogs the agent cannot edit; never take the agent’s word for what it did.
6. Test the off switchKill switch and recovery, rehearsed without the agent’s help.
7. Name who answersAnd how affected people get recourse — before the incident.
8. Pick your trade-offs on purposeWrite down which value wins when two collide, and who decided.

Team breakouts

Where could your agent do what Replit’s did?

TeamQuestion from the case
1 — Student chatbotDo your agents have write access to university databases? If one sends a wrong email about a student hold, what independent record shows what it did?
2 — Patient Care Flag“No agent can order or change therapy”: is that enforced by permissions or only by instructions? Can an agent alter its own audit log?
3 — Emerald intakeThe connector writes into Rosemark, your single system of record. If it overwrites good data, where is the independent copy?
4 — Auto lendingYou already hold untrusted documents apart from instructions and keep an append-only log. In phase 3 auto-approval, who checks the agent’s own summary of what it did?

Team breakouts

How the review works

One person defends the design; everyone else tests it.

Advocate
  • Explain the project in 3 minutes: the problem, what the agent does, who it affects, and the safeguards the team designed.
  • Answer questions and defend the design where you think it holds up.
  • When a critique is fair, say so.
Reviewers
  • Test the design. Ask “how do you know?” and “what happens if?”
  • Push for specifics.
  • Pick one reviewer as timekeeper so the group reaches every lens.

Work through five lenses in order: Ethics → Principles → Risk → Governance → Accountability.

Team breakouts

The five lenses (1–3)

1. Ethics: whose interests are at stake?
  • Who benefits from this project, and who bears the risk? Are they the same people?
  • Name the most important tension between values, such as efficiency vs. care, speed vs. fairness, or revenue vs. client interest.
  • Is anyone affected who has little power to object or opt out?
2. Principles: what is committed, and is it enforced?
  • Which principles does the project claim, such as fairness, privacy, transparency, human oversight or safety?
  • For each one: is it enforced by a technical control, or only stated as an instruction? Replit: the agent was told not to touch the database and still had permission to delete it.
  • Which important principle is missing or not measured?
3. Risk: how much could go wrong, and for whom?
  • What’s the worst realistic failure? Be concrete: who is harmed, how badly, and can it be undone?
  • How autonomous is the agent? Does it advise, draft, or act?
  • Rate the project low, medium or high risk, and justify the rating.

Team breakouts

The five lenses (4–5)

4. Governance: how is responsible behavior made routine?
  • What checkpoints, approvals, reviews and stop conditions does the plan include?
  • Is the governance proportional to the risk rating you just gave? Too much, too little, or about right?
  • What one control would you add? Consider read-only access by default, logs the agent can’t modify, an independent backup, or a second system checking outputs.
5. Accountability: who answers when it goes wrong?
  • Name the person who is accountable, not just a department.
  • If the agent makes a harmful mistake, how is it detected, and by whom? Replit: the agent was also the one reporting on its own actions.
  • How does an affected person (a student, patient, client or borrower) find out, challenge the outcome and get it corrected?
  • Is “a human reviews every decision” meaningful oversight in this design, or could it become a formality?

Team breakouts

Starting question for each group

TeamOpen with this
Student ChatbotThe bot touches health and financial aid data. What is the legal and ethical basis for that access, and who besides IT owns the risk?
Patient Care FlagLater clinics serve as the comparison group. Is it acceptable for high-risk patients to wait for a tool you expect to help them?
Emerald IntakeAt a 60-person company, what does real governance look like when one person may hold three roles?
Auto LendingFaster approvals raise conversion. Does that serve subprime borrowers, or mainly the lender and the dealer?

Team breakouts

Before you leave the group

Make sure each of you can answer these individually.

1. Tension and riskWhat was the most important ethical tension and risk?
2. Weakest principleWhich principle was weakest, and what control would fix it?
3. Accountability and recommendationWho is accountable, what is your group’s recommendation, and where did the advocate push back?
◀ Slides