Loophole: Adversarial Agents To Stress Test Your Morality —…
Talk by Brendan Rappazzo (ML researcher at Morgan Stanley, speaking on a personal open source project) introducing Loophole, a tool that stress-tests personal moral codes with adversarial agents. Motivated by a personal question about how consumer DNA data could be used (e.g., legal but arguably immoral uses like derived-data risk scoring), the talk frames law as society's imperfect translation of moral beliefs into written rules. The system works by having an agent draft a user's plain-language morals into a formal legal code, then two adversarial agents probe it — one seeking loopholes (immoral but legal) and one seeking overreach (moral but illegal) — with a judge agent distinguishing fixable translation artifacts from genuine moral gaps. Explored extensions include codified system prompts ("constitutions") for chatbots, contracts checked against terms of service, and a Senate simulator that hill-climbs bills toward passage across large persona populations. Timestamps cover the adversarial game setup, the DNA origin story, the morals-to-law translation problem, the loop mechanics, and the three extension branches.
# Observable Channel Presentation Evidence — Video: "Loophole: Adversarial Agents To Stress Test Your Morality"
## Explicit Self-Description Statements
- The speaker self-identifies professionally: **"I'm actually a machine learning researcher at Morgan Stanley"** — but immediately disclaims channel/organizational affiliation: **"this has nothing to do with Morgan Stanley. This is just an open-source project I've been building for fun."**
- The project is framed as **open source and community-oriented**: *"It's all on GitHub"* and a closing invitation: *"please you know play with it fork it, I'd love to have other contributors."*
- The speaker self-assesses the tone as recreational: *"at a minimum, I think it's a pretty fun game. I'm biased."*
## Intended Audience
- A **technically engaged, AI-interested audience** — the talk references LLMs, adversarial agents, prompt-level architectures, and "GEA" (likely G-E-A / adversarial evaluation methods) without basic explanation.
- **Builders and potential contributors**: the explicit call to *"play with it fork it"* and links to a Senate simulator and a personal website suggest an audience expected to engage hands-on.
- The mention of **"on theme of the conference"* indicates the talk was delivered at an AI conference whose theme includes verifiable domains/loops.
## Claimed Scope of Content
- **Core demonstration**: the "Loophole" game — user specifies morals in natural language; one agent codifies them into a legal system; two adversarial agents search for **loopholes ("immoral but legal") and overreach ("moral but illegal")**; a judging agent auto-patches or escalates to the user.
- **Extension branches presented**:
1. Automated **constitutions/system prompts for chatbots and agents**.
2. **Ad hoc or decentralized contracts** — e.g., stress-testing personal data/privacy preferences against company terms of service.
3. **Government simulation** — modeling all current US senators via Claude from public records, simulating votes, and **hill-climbing bill language** (example: a Medicare bill moving from ~50/50 to 52 votes); plus constituent-level modeling using **Nvidia's USA personas dataset (500 personas per state)**.
## Demonstrated Presentation Patterns (Observable, Not Claimed)
- **First-person project walkthrough**: origin story (23andMe DNA sharing dilemma) → mechanism → examples → future directions.
- **Concrete worked examples** shown as input/output shapes: insurance-company DNA-artifact loophole; genetic-disorder disclosure overreach; git-style legal-code diffs.
- **Epistemic hedging** on aspirational claims: *"there would be a lot of different privacy issues and logistical issues but sort of ignoring those for now and just thinking big picture."*
- **Audience engagement mechanics**: QR codes to the Senate simulator and personal website at the close.
- **Reported reception** (creator-claimed, not independently verifiable): *"I posted on Twitter and shared it open source on GitHub… it was by far the most viral post I've had."*
## Evidence Type Summary
| Observation | Evidence Type |
|---|---|
| ML researcher at Morgan Stanley; project unrelated to employer | Explicit creator statement |
| Open-source on GitHub; seeking contributors | Explicit statement + closing call to action |
| Game mechanics (adversarial agents, judging, auto-patching) | Demonstrated via detailed walkthrough and examples |
| Senate simulation, bill hill-climbing, persona modeling | Demonstrated via described experiments and results |
| "Most viral post I've had" | Creator claim, unverifiable from material |
| Practical/societal applications (contracts, government) | Framed as aspirational exploration, explicitly hedged |
# Delivery Observations: "Loophole" Talk — Brendan Rappazzo
## Overall Tone
- **Conversational and informal**: The speaker uses filler words and hedges throughout — "you know," "sort of," "kind of," "like" — e.g., "it's really this uh game you can play."
- **Self-deprecating casualness about his own work**: "I'm biased, but it's a lot of fun" and "I just sort of wanted to show some examples."
## Recurring Verbal Habits
- **"Sort of" and "kind of" as pervasive qualifiers** — appear dozens of times: "sort of the high level flavor," "sort of a really rich legally codified legal system," "kind of hill climbing the bill."
- **"You know" as a connective filler**: "you know, a long time ago," "you know, if someone could present to me case by case."
- **Repeated "and so" / "and then" as narrative glue**: "And so that was sort of the idea," "And then the second use case."
## Vocabulary & Framing
- **Consistent technical-analogy vocabulary**: "adversarial agents," "auto patch" / "auto patching," "stress test," "hill climbing," "codify," "loopholes," "overreach."
- **"Stress test" as a signature repeated phrase**: "a way to sort of stress test your bills," "stress tested codified contract," "you could stress test your morals."
## Teaching / Structure Habits
- **Origin-story opener**: "I wanted to... start with sort of the origin story and how I came up with this idea."
- **Explicit signposting and enumeration**: "I'll just talk about three different branches I'm kind of exploring," followed by clearly ordered branches (chatbot constitutions, contracts, government).
- **Concrete personal example anchoring abstract concepts**: the 23andMe DNA anecdote grounds the whole moral-codification idea.
- **Walking through demo output while acknowledging its density**: "this is a lot of text. So it's more about just showing the kind of shape of the input and output."
## Hedging & Epistemic Style
- **Frequent uncertainty markers**: "maybe," "could," "I think," "you could imagine," "I also think" — especially in the speculative branches.
- **Explicit flagging of aspirational claims**: "the last thing and maybe the kind of more aspirational angle is thinking about smarter government... sort of ignoring those for now."
## Audience Interaction
- **One direct audience-facing moment mid-talk** (possibly a screen-share disruption): "is it still on for you? It disappeared for me." — an isolated event, not a pattern.
## Uncertainty Notes
- Delivery features like pacing, gestures, or vocal tone cannot be assessed from the transcript alone; observations here are limited to word choice and structure. The filler-word patterns are strongly evidenced by repetition; the disruption at [324] is a single isolated moment.
# Observation Document: "Loophole: Adversarial Agents To Stress Test Your Morality"
**Speaker:** Brendan Rappazzo, machine learning researcher at Morgan Stanley (project described as personal, open-source, unrelated to employer)
## Core Project: Loophole
A terminal-based game built on an **adversarial agent framework**:
- User specifies morals in natural language
- One agent codifies morals into a legally-styled system
- Two adversarial agents search for contradictions:
- **Loopholes**: things immoral but legal under the code
- **Overreach**: things moral but illegal under the code
- A **judging agent** attempts to **auto-patch** imperfect translations; if it finds genuine underspecification or contradiction, it escalates to the user as judge
## Origin Story
- Rappazzo submitted DNA to 23andMe for ancestry, opting out of all secondary uses due to slippery-slope concerns
- He reflected that he'd approve certain uses case-by-case (e.g., specific cold cases), but enumerating every case is "cognitively prohibitive"
- This led him to view a **legal system as codified moral beliefs**, and defining law/morals nuance as a hard **translation task**
- He claims laws tend to be too general because finding nuance is difficult; English common law leans on case law and judicial interpretation for this reason
### Claim about political disagreement
> Political disagreements often involve fighting over core values people don't actually disagree on, rather than exploring nuanced moral points.
He suggests LLMs are now "smart enough" for high-level moral reasoning to enable **synthetic case law generation**.
## Demonstrated Examples (DNA scenario)
- **Loophole example**: An insurance company trains a predictive ML model on DNA *artifacts* rather than DNA directly — flagged as immoral but legal; auto-patched, shown as a git-style diff
- **Overreach example**: A genetic researcher discovers a rare treatable disorder in a submitted sample; the user's morals forbid disclosure — could not be auto-patched, raised to the user for judgment
## Three Extension Branches
### 1. Auto-constitutions for chatbots/agents
- User writes morals and topics the bot should/won't discuss; agents draft a codified system prompt; adversarial agents test refusals and over-disclosure
- Framed as analogous to RLHF ("GEA"), aimed at codified system prompts
### 2. Ad hoc / decentralized contracts
- Data/privacy example: codify your preferences, then run contradictions against e.g. Apple's terms of service to surface conflicts — not negotiation, but better information
- Decentralized variant: both parties codify morals/contract terms, surface disagreements before agreeing, enabling contracts without central authority
### 3. Smarter/more efficient government (acknowledged as aspirational)
- He notes **privacy and logistical issues** exist but is "ignoring those for now"
- Voters could run their codified morals against bills/politicians to surface disagreements
- **Senate simulator**: Claude built moral systems for all current US senators from public voting history, then simulates votes on bills, with reasoning
- **Hill climbing**: a Medicare bill started at ~50/50; the system modified language (preserving core tenets) until it passed with 52 votes; changes are rank-ordered so users choose trade-offs
- **Constituent-scale test**: using Nvidia's USA personas dataset (500 per state, stated as representative), drafted morals/contracts per persona, then measured bill agreement per state and optimized bills via hill climbing
## Reception and Open Questions
- The project was his most viral Twitter post; many found it a fun way to stress-test morals for contradictions
- He asks, tentatively, whether it has **practical or larger-scope implications** — better/decentralized contracts, bill stress-testing, more representative lawmaking
- Once users supply nuance, agents stop finding contradictions, yielding "a consistent nuanced moral system" (his framing)
## Noted Caveats and Tensions
- Speaker explicitly flags: "I'm biased" regarding the game being fun
- Government applications: he acknowledges but defers privacy and logistical issues
- The claim that personas are "representative" is his characterization of Nvidia's dataset, not independently verified in the talk
# Speaker Attribution Record
## Video
- **Title:** Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley
- **Video ID:** `01a15ca7-678d-7046-9619-f9b83e3a178a`
## Speakers
| Speaker | Role | Evidence |
|---|---|---|
| **Brendan Rappazzo** | **Creator / Presenter** (sole speaker) | Named in title; self-identifies: *"I'm actually a machine learning researcher at Morgan Stanley"*; project creator: *"this has nothing to do with Morgan Stanley. This is just an open-source project I've been building for fun."* |
- **No guests, narrators, or other identified speakers** appear in the transcript.
- A brief off-mic interruption occurs mid-talk: *">> is it still on for you? It disappeared for me."* — an unidentified audience/attendee voice; the speaker is **unidentified**.
## Affiliation & Disclaimers
- Speaker affiliated with **Morgan Stanley**; explicitly states the project is **unrelated to his employer** and is a personal open-source project.
## Referenced Sources & Third-Party Material
- **23andMe** — DNA ancestry testing (speaker's personal anecdote).
- **Claude (Anthropic)** — used to model US senators' moral systems and simulate votes.
- **Nvidia USA personas dataset** — "500 personas per state," used to model constituent legal codes.
- **English common law / US Supreme Court** — referenced conceptually.
- **GEA** — referenced as an analogous method (speaker's comparison; context not elaborated).
- **Twitter and GitHub** — distribution channels; project posted open-source on GitHub.
- **Apple terms of service** — hypothetical example; no claims made about Apple.
## Promotional Segments
- **Closing segment:** speaker promotes two QR codes — one to the **Senate simulator**, one to his **website/GitHub**, soliciting players and contributors: *"please play with it, fork it, I'd love to have other contributors."*
- Earlier reference to the project being shared on Twitter/GitHub is factual self-disclosure rather than promotion.
## Provenance Notes
- Demo content (DNA/insurance loophole, genetic research overreach example, Medicare bill hill-climbing from ~50/50 to 52 votes) is **speaker-reported, unverified**.
- No curated metadata supplied; no comment availability information present.
I'll be talking about my project loophole. And I'm actually a machine learning researcher at Morgan Stanley, but this has nothing to do with Morgan Stanley. This is just a open-source
project I've been building for fun. And to give sort of the high level flavor to start, it's really this uh game you can play that's built on top of this adversarial agent framework. So you specify your morals, one agent codifies that into a legal system and then these two adversarial agents try to find contradictions in your morals. And lately I've been building different extensions on top. Um, but I wanted to, you know, start with sort of the origin story and and how I came up with this this idea. And so this really started, you know, a long time ago, I had sent my DNA into 23 and me for uh ancestry testing. Um, and I kept hearing about, you know, more recently how DNA samples
can be used, of course, to help solve crimes and all these forensics and cold cases. And I was thinking about how I had sort of opted out of of everything because, you know, I was scared of the
kind of slippery slope and and how my DNA would be used. Um, but you know, there there are certain cases that I would be okay with. And it's sort of interesting. I was thinking like, you know, if someone could present to me case by case, you know, we'll use your DNA to solve, you know, help solve this cold case or this murder. I could sort of say yes or no. and I know where the the definition of like the and the nuance of my morals are. Um, and but you know, of course, like enumerating all of this case by case is really sort of cognitively prohibitive. Like there's not a good way to do this currently. And then I was thinking sort of more zoomed out that there's a lot of analogies to sort of the legal system as a whole. So, you know, one way to think of what a legal system is in our society is really just a way that we are trying to c codify our own moral beliefs. And I think sort of in a similar way like finding the true nuance of our morals and what the law should be as this really hard translation task. And I think often we kind of heir on the side of being too general because you know finding that nuance is really difficult and if you try to have a perfect translation it can we lead to these kind of weird corner cases or or weird failure modes and I even think kind of like peer-to-peer when we're relating to each other politically a lot of times the disagreements are more kind of fighting over core values which we don't
really disagree on um instead of exploring the really nuanced points of our our morals and I think you know following that kind of broader legal example I think in the you know
the English common law system that's why we sort of lean on case law so heavily because we know that finding this this nuance and these nuance boundaries is difficult and so we kind of rely on smart judging to interpret and apply the law um correctly and you know of course even with like the Supreme Court things can get elevated and we can decide whether a law is valid at all. Um and so that was sort of you know the idea is like can you take your morals and can you do this kind of synthetic case law generation. So you know um this is overwhelming to do by hand but it seems like the new generation of LLMs are finally sort of smart enough to do this kind of highle moral reasoning and so that was sort of the the the starting point for this game. Um, and I just want to take you through sort of the initial release of the game, the setup, how it works, and then also talk about some of the different branches I've been building on top of this open source project because I think it could go in some interesting directions. And so at a high level, how the game works is you in natural language and this all happens. It's sort of like a terminal based game. You specify your morals and it could be uh your general morals or maybe about a specific subject and then there's one agent that takes those morals and drafts sort of a really rich legally codified legal system and then it just operates in this loop where one agent is instructed to try and find loopholes in your system. So something that is uh
immoral but legal and another is uh prompted to find overreach. So things that are actually moral but illegal given your system. And a judging agent looks at the your morals the produced
legal code and these sort of synthetic case law examples and first sees can it auto patch. So, like maybe the original draft of your your legal code sort of was an imperfect translation and there's not really a contradiction and it can just sort of autodo this update. Or maybe it's really kind of an underspecification of your morals um or some kind of contradiction in your morals and in that case it raises it to you as the user to sort of be the judge and make a determination. Uh \>\> is it still on for you? It disappeared for me. Okay. Um, so I know that, you know, if you I hope if you're curious about the game, you'll play it. It's all on GitHub. But I just wanted to show some examples. And this is a lot of text. So it's more about just showing the kind of shape of the the input and output. So this is sort of how you would provide your input. And going back to the DNA example, you might you know specify some number of of moral principles. And then the sort of codified legal system again just kind of looking at the shape has this really like legal ease, you know, preamble articles uh sections really trying to be uh you know write it in precise legal language. And then these the different kind of synthetic case laws get suggested. So in this case it's talking about this is a loophole it found where an insurance company um trained a predicted machine learning model not on your DNA but on artifacts of the DNA. And so it's saying you know this is actually immoral but currently legal given your system. And in this case, it's it found that it could do sort of this auto patching and then you get this sort of like get style difference of of your original legal system and then the the difference it had to make to ensure you know this was consistent with your morals. And then this is a an example of overreach and in this case it found that it couldn't do the auto patch. It's talking about, you know, someone submits their DNA for uh genetic research, but the researcher finds they have a rare
but treatable genetic disorder. Uh but currently your morals kind of say this shouldn't be allowed that they could disclose this disease to the the person submitting. And so this was raised to
the user to me to kind of make a judgment. And then similarly, when you make the judgment, you get this this patch legal system. And so, you know, it's just sort of a a fun game and I posted on Twitter and shared it open source on GitHub. And for me at least, it was by far the most viral post I've had. And it sort of made me think like I think a lot of people just said it was sort of fun. You could stress test your morals, see if you have any interesting contradictions. But it also made me think, you know, is there maybe something more here? like could this be um you know have more like practical or bigger scope implications and so I'll just talk about three different branches I'm kind of exploring um the first and
sort of leave leaving the legal area and really more practical is thinking about sort of an auto way to make constitutions for chat bots or really you know for agents in general where you
know say you're a company and you want to have a um agent or chatbot that's customerf facing and you want it to sort of adhere to a moral code but also have things it will and will not talk about. Um I've kind of in one branch formulated it so you in a similar way write your morals. You write what the chatbot should and not talk about and then it tries to write this codified system prompt and then you have these kind of adversarial agents trying to get it to either talk about something it shouldn't or refuse to talk about something it should. And I see it as this sort of analogy or analogous method to GEA um but really aimed at kind of building these codified system prompts. The uh second use case that I'm I'm particularly interested in is thinking of it as a way to sort of do more ad hoc or decentralized contracts. So I think in in a simple case say like you can specify how you want your data or privacy to be handled online and you can go through this sort of adversarial game to get this codified legal system of how you want your your data handled and if you go to you know say Apple releases a new terms of service or something you can run the um contradictions between your legal system and between Apple's terms of service and like surface any interesting contradictions or like synthetic cases where this would lead to
a difference between how you know your morals, what you want and what the company is doing. And you know in the case that it's a big company, maybe you can't really change anything. It's not a negotiation, but you can at least be
sort of have better information about the contract you're signing. But I also think in the case of you know thinking more decentralized like if you're trying to have contracts without you know some central authority kind of enforcing them and you're trying to maybe do contracts across different countries. Um, thinking about like if you can specify your morals and how you want to like interface, you know, maybe it's just like contracted work, how you want your work to be paid for and and and the different morals surrounding that. And the other party can do the same. And then you both get this kind of stress tested codified contract. And then you can kind of find the the disagreements if there are any and surface them before you agree. And then you can kind of be more confident in the the contract as a whole. And the last thing and maybe the kind of more aspirational angle is thinking about smarter government or more efficient government. Um I think there would be a lot of different privacy issues and logistical issues but sort of ignoring those for now and just thinking big picture. I think for voters or constituents, you know, this could be a really interesting way if you you defined your morals, you have this stress- tested legal code, sort of any new bill or politician that comes out, you could kind of run your contract against theirs and surface, you know, what are the the cases you would disagree or or interesting uh points that are kind of immoral to you or or a contradiction. Um, I also think, you know, relating to one another, it's like a more I think we all have a lot of nuance in the way we feel about things and this is a way to kind of get to that nuance instead of arguing over just values which is, you know, often the values are not in contradiction. And then I think maybe a little more practically for legislators, you could imagine um if you want to propose a bill and you can have like a a simulation of all the other legislators and a and a legislative body, you could sort of stress test it before submission. And so the the third branch I've been building on this project is I I tried to do this for the US Senate. And so what I did is I first had Claude go through all current US senators and
look at, you know, kind of all their voting history and anything else that was public and build their kind of moral system and then ran it through the loophole process to get a codified sort
of legal code. And then on this system, you can, you know, take any current bill that's being proposed or even propose your own and submit it. And you can have Claude sort of simulate how each senator would vote. And so here you can see like a breakdown of um some senators, which way they're leaning and sort of their reasoning behind the vote. Um and I think you know it's sort of interesting just to think about like seeing what you know a proposed piece of legislation how people would vote but also this sort of becomes and I think on theme of the conference its own verifiable domain or loop and you could think about even kind of hill climbing the bill towards um getting like a super majority or whatever you need it to pass. And so in this case, like this this Medicare bill I was testing, you know, it found that I think it originally started at like a 5050 vote and it found ways to hill climb the language of the bill such that it passed with um 52 votes. And I think, you know, this is an example of it can find um like the sort of the core tenants of the bill and it can try to find like run the the bill against each senator's contract and find is there any way I can change the language such that I don't violate
sort of the core tenants or morals of the bill and kind of do those auto patching that way. And then it can also find um you know kind of rank order the changes that would need to be in place
to maximize votes and you as a user can kind of choose the trade-offs that way. And then the last thing I I've been trying out more recently with this branch is actually looking at, you know, kind of even bigger picture, like can this lead to an even more efficient of government where you have every sort of constituent in a in a state or whatever the district is sort of have their legal code and then you could just submit any bill and actually measure sort of the agreement between like the the actual voters. And so for this, I took the Nvidia has this really great data set of USA personas. And so I took 500 personas per state and it's supposed to be sort
of well representative of the state's population. Did the same process of having them given the persona, draft their morals, draft their sort of legal contract, and then take any bill you're
interested in and kind of run it against each state. And you can also, you know, measure how much people like this bill or how much it's in agreement with their morals and then also do this hill climbing where you kind of optimize the bill for the people. And so just to conclude, you know, at at minimum, I think it's a pretty fun game. I'm biased, but it's a lot of fun to just try out different um you know, things you care about, put in your morals, see if there's any contradictions. you know, often it will raise some really interesting questions and then once you kind of provide that nuance, the game, you know, the the agents won't be able to find any more contradictions and you can kind of feel good that you have like a a consistent nuanced uh moral system. Um, but I I am interested in, you know, exploring could this be are there kind of real applications here for some kind of like decentralized or better contracts and maybe even for legislators as a way to sort of stress test your bills and even think about how to write um better laws that are, you know, better for the people in your district or more representative of what the people in your district want. Um, and so this QR code is to the the Senate simulator. So I encourage you if you're interested to play and um the other one is to my website which has the the full GitHub to loophole um and please you know play with it fork it uh I'd love to have other contributors. Thank you.
