Rappazzo traces the idea to questions about how his 23andMe DNA might be used in criminal investigations. He wanted a way to decide case by case, but saw that listing every possible situation was impractical. Loophole explores whether agents can translate broad moral principles into a more nuanced set of rules.
Loophole: Adversarial Agents To Stress Test Your Morality
Speaker
Brendan Rappazzo, a machine learning researcher at Morgan Stanley, presents Loophole, his open-source project for stress-testing moral principles with adversarial agents at an AI Engineer talk.
Players describe their morals in natural language, and one agent turns them into a legal-style code. Two adversarial agents search for loopholes, where immoral actions are allowed, and overreach, where moral actions are prohibited. A judging agent patches translation errors when possible or asks the user to resolve conflicts in their principles.
In one example, the system finds that an insurer could train a model using artifacts of someone’s DNA, even if it did not use the DNA itself. Another case, disclosing a treatable disorder found during genetic research, is sent to the user for a judgment. Rappazzo is also exploring the same adversarial approach to create chatbot system prompts and test whether agents discuss or refuse the intended topics.
Rappazzo describes using Loophole to compare a person’s data and privacy preferences with a company’s terms, and to surface disagreements before parties enter a contract. For a Senate simulator, he used Claude to infer current senators’ moral systems from voting histories and public information, then tested proposed bills against them. In one Medicare bill example, the system revised the language to reach 52 projected votes from an initial split of about 50–50.
Rappazzo also used Nvidia’s USA Personas dataset, with 500 personas per state, to model constituent preferences and evaluate bills against their inferred morals. The system can estimate agreement and iteratively adjust a bill’s language. He presents these government applications as exploratory and notes privacy and logistical concerns.
Takeaways
- Turn broad principles into explicit rules, then test them against concrete edge cases.
- Separate errors in a rule’s wording from genuine conflicts that require a human decision.
- Use adversarial agents to test chatbot prompts for both unsafe answers and unnecessary refusals.
- Treat model-generated votes and constituent preferences as simulations, not verified public opinion.
- When revising proposals to gain support, expose the trade-offs so people can judge what changed.
Mentioned in this talk
Search inside this talk
What was claimed 8
- builtBrendan Rappazzo built Loophole
“my project, Loophole”
YouTube Verified2 sources· Talk, Web· archived
- previously atBrendan Rappazzo previously at
Morgan Stanley
Machine learning scientist / researcher (ML research group)“I'm a machine learning researcher at Morgan Stanley”
YouTube Verified2 sources· Talk, Web· archived
- featureLoophole: A judging agent can automatically patch a legal code or ask the user to resolve a contradiction.
“first checks whether it can auto-patch”
YouTube Unverified1 source· Talk
- featureLoophole: Uses adversarial agents to find loopholes and overreach in a legal code derived from the user's morals.
“one agent tries to find loopholes in your system ... and another tries to find overreach”
YouTube Unverified1 source· Talk
- featureLoophole: Can draft a codified system prompt and test it with adversarial agents.
“it tries to write a codified system prompt, and adversarial agents try to get it”
YouTube Unverified1 source· Talk
- featureLoophole: Can compare a user's codified data-handling preferences against company terms of service.
“you can check for contradictions between your legal system and Apple's terms”
YouTube Unverified1 source· Talk
- metricSenate simulator: A tested Medicare bill was adjusted from about a 50–50 vote to 52 votes.
“it started at about a 50–50 vote ... until it passed with 52 votes”
YouTube Unverified1 source· Talk
- metricUSA Personas dataset: 500 personas per state
“I took 500 personas per state”
YouTube Unverified1 source· Talk










