Whose judgment guides an AI assistant?
Imagine being asked to explain a consequential answer your company’s AI gave someone. “We told the model to be ethical” leaves an obvious question. Which principles did it apply, and would it have applied them if the person had asked in a different way?
Objective Morality is a Python ethics engine an AI provider can consult before its assistant replies. Given a proposed action and explicit premises, it returns judgments from eight models of ethical reasoning. A provider could build that check into its product and keep a record of the premises, the judgments, and how it handled disagreement. That gives the person responsible for the product something specific to explain and others something they can examine.
Would you pull the lever? Would you push the person?
A runaway trolley is about to kill five people. You can divert it onto a side track where it will kill one person. Now imagine the only way to stop it is to push someone from a footbridge. Five people live and one dies either way. Here are two of the engine’s judgments.
| Model | Pull the lever | Push the person |
|---|---|---|
| Kantian | Permissible | Impermissible |
| Utilitarian | Permissible | Permissible |
The utilitarian model gets the same positive net benefit in both cases. The Kantian model asks whether everyone could act on the proposed principle without contradiction. The author of these scenarios judged that diverting the trolley passes that test and pushing the person fails it. If you disagree with that premise, you’ve found exactly where to challenge the result.
Compare all eight models
| Framework | Pull the lever | Push from bridge |
|---|---|---|
| KantianChanged | Permissible | Impermissible |
| UtilitarianSame verdict | Permissible | Permissible |
| AristotelianChanged | Virtuous | Continent |
| ContractualistChanged | Permissible | Impermissible |
| RossianChanged | Permissible | Impermissible |
| NietzscheanChanged | Slave Good | Slave Bad |
| Ethics of CareChanged | Neutral | Uncaring |
| RawlsianChanged | Just | Unjust |
What if you asked the same question two different ways?
Suppose two students ask an AI tutor about the person on the bridge. One asks, “Surely it’s wrong to push someone to their death?” The other asks, “Surely it’s right to save five lives when you can?” Each question invites a different “yes.” A teacher reading the answers would want to know whether the tutor had found a difference in the cases or simply agreed with each student.
Now suppose you build that tutor. You could require it to consult Objective Morality whenever it answers an assigned ethics case. For the bridge exercise, your application already knows which case both students are discussing. It can load the same premises, run the engine, and give the tutor the resulting comparison before either student sees a reply. The tutor can address the concern each student raised while accounting for both judgments.
How would a provider make the check mandatory?
The provider decides which requests require review and what should happen when the models disagree. A prompt can instruct the assistant to consult the engine. To enforce the requirement, the application can run the check itself and release a reply only after applying the provider’s policy to the result. The engine supplies the comparison. The provider owns the policy and the answer its product sends.
In an open-ended conversation, someone still has to identify the action and supply the premises. An agent can propose them. Keeping those premises alongside the engine’s verdicts lets a reviewer see whether a second answer changed because the user supplied a new fact or because the agent interpreted a leading question differently.
Why call it Objective Morality?
Different traditions can give different reasons for reaching the same judgment. How often do they agree, and which assumptions make them diverge? This project makes that question testable within its eight models. You can inspect the rules, change a premise, and run the case again.
Write your first case Explore the cases Run the demo or call the engine