<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy" -->

---
title: Loophole: Adversarial Agents To Stress Test Your...
description: A Morgan Stanley machine learning researcher presents Loophole, an open-source terminal game built on an adversarial multi-agent LLM framework. Users specify...
canonical: https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley | daily.dev
og:description: A Morgan Stanley machine learning researcher presents Loophole, an open-source terminal game built on an adversarial multi-agent LLM framework. Users specify...
og:url: https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy
og:image: https://api.daily.dev/og/posts/bqv3uWqZY.png
og:image:alt: Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley

**[AI Engineer](https://daily.dev/sources/aidotengineer)** · 17 min read · 0 upvotes · 0 comments

## Summary

A Morgan Stanley machine learning researcher presents Loophole, an open-source terminal game built on an adversarial multi-agent LLM framework. Users specify their personal morals in natural language, one agent codifies them into a legal-style code, and two adversarial agents hunt for loopholes (immoral-but-legal) and overreach (moral-but-illegal) cases, with a judge agent auto-patching or escalating contradictions to the user. The talk traces the idea's origin from a 23andMe DNA-privacy dilemma, then covers three extensions: generating adversarially-tested system prompts/constitutions for chatbots, building decentralized or ad hoc contracts (e.g., checking personal data-privacy terms against a company's ToS), and a US Senate simulator that models senators' moral/voting profiles from public records using Claude, simulates votes on bills, and iteratively rewrites bill language to hill-climb toward more votes (one Medicare bill example moved from a 50-50 tie to 52 votes). A further experiment applies the same pipeline to 500 NVIDIA-generated personas per US state to gauge constituent agreement with proposed legislation.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=hOWU0KPUp1k>

## Questions this post answers

### What is the Loophole project and how does its adversarial agent game work?

Loophole is an open-source terminal game where a user describes their personal morals in natural language, and one LLM agent codifies them into a formal legal-style system. Two adversarial agents then search for loopholes (immoral but legal actions) and overreach (moral but illegal actions), while a judging agent either auto-patches inconsistencies or escalates them to the user for a ruling.

_Developers building agentic reasoning demos can follow projects like this on daily.dev to see multi-agent design patterns in practice._

### How was Claude used to simulate how US senators would vote on a bill in the Loophole Senate simulator?

Claude analyzed each senator's public voting history and statements to construct an individual moral and legal profile, then ran proposed bills against those profiles to simulate votes. In one Medicare bill test, the simulated vote started near 50-50 and was iteratively rewritten to hill-climb support until it passed with 52 votes, without violating each senator's core modeled values.

_Anyone tracking creative applications of Claude for simulation and decision modeling can find similar experiments on daily.dev._

### How did the Loophole project use NVIDIA's USA personas dataset to model constituent opinion on legislation?

The creator sampled 500 NVIDIA-generated USA personas per state, had each persona draft its own morals and legal contract, then ran candidate bills against every state's persona set to measure agreement levels and hill-climb bill language toward broader public support. This offered a rough, persona-based proxy for gauging constituent reaction to proposed legislation.

_Developers exploring synthetic persona datasets for policy or product simulations can track similar experiments on daily.dev._

## Similar posts on daily.dev

- [Google DeepMind wants to know if chatbots are just virtue signaling](https://daily.dev/posts/google-deepmind-wants-to-know-if-chatbots-are-just-virtue-signaling-y0n7mzotz) · MIT Technology Review · 1 upvotes · 0 comments
- [Adversarial Prompt Generation: Building Safer AI with Human-in-the-Loop Oversight](https://daily.dev/posts/adversarial-prompt-generation-building-safer-ai-with-human-in-the-loop-oversight-p9wopi1ba) · Medium · 0 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#ai-agents](https://daily.dev/tags/ai-agents), [#claude](https://daily.dev/tags/claude), [#ethical-ai](https://daily.dev/tags/ethical-ai)

[View this post on daily.dev](https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley","url":"https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy"},"datePublished":"2026-09-14T15:19:01.460Z","dateModified":"2026-09-14T15:19:26.450Z","description":"A Morgan Stanley machine learning researcher presents Loophole, an open-source terminal game built on an adversarial multi-agent LLM framework. Users specify...","image":"https://i.ytimg.com/vi/hOWU0KPUp1k/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/hOWU0KPUp1k/sddefault.jpg","isAccessibleForFree":true,"articleSection":"AI Engineer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"AI Engineer","logo":"https://media.daily.dev/image/upload/s--u5PucxNT--/f_auto/v1724338940/logos/aidotengineer","url":"https://daily.dev/sources/aidotengineer"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"open-source,ai-agents,claude,ethical-ai","timeRequired":"PT17M","video":{"@type":"VideoObject","name":"Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley","description":"A Morgan Stanley machine learning researcher presents Loophole, an open-source terminal game built on an adversarial multi-agent LLM framework. Users specify...","thumbnailUrl":"https://i.ytimg.com/vi/hOWU0KPUp1k/sddefault.jpg","uploadDate":"2026-09-14T15:19:01.460Z","duration":"PT17M","url":"https://api.daily.dev/r/bqv3uWqZY","embedUrl":"https://www.youtube.com/embed/hOWU0KPUp1k"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AI Engineer","item":"https://daily.dev/sources/aidotengineer"},{"@type":"ListItem","position":3,"name":"Loophole: Adversarial Agents To Stress Test Your Morality — Brendan Rappazzo, Morgan Stanley"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/loophole-adversarial-agents-to-stress-test-your-morality-brendan-rappazzo-morgan-stanley-bqv3uwqzy#faq","mainEntity":[{"@type":"Question","name":"What is the Loophole project and how does its adversarial agent game work?","acceptedAnswer":{"@type":"Answer","text":"Loophole is an open-source terminal game where a user describes their personal morals in natural language, and one LLM agent codifies them into a formal legal-style system. Two adversarial agents then search for loopholes (immoral but legal actions) and overreach (moral but illegal actions), while a judging agent either auto-patches inconsistencies or escalates them to the user for a ruling. Developers building agentic reasoning demos can follow projects like this on daily.dev to see multi-agent design patterns in practice."}},{"@type":"Question","name":"How was Claude used to simulate how US senators would vote on a bill in the Loophole Senate simulator?","acceptedAnswer":{"@type":"Answer","text":"Claude analyzed each senator's public voting history and statements to construct an individual moral and legal profile, then ran proposed bills against those profiles to simulate votes. In one Medicare bill test, the simulated vote started near 50-50 and was iteratively rewritten to hill-climb support until it passed with 52 votes, without violating each senator's core modeled values. Anyone tracking creative applications of Claude for simulation and decision modeling can find similar experiments on daily.dev."}},{"@type":"Question","name":"How did the Loophole project use NVIDIA's USA personas dataset to model constituent opinion on legislation?","acceptedAnswer":{"@type":"Answer","text":"The creator sampled 500 NVIDIA-generated USA personas per state, had each persona draft its own morals and legal contract, then ran candidate bills against every state's persona set to measure agreement levels and hill-climb bill language toward broader public support. This offered a rough, persona-based proxy for gauging constituent reaction to proposed legislation. Developers exploring synthetic persona datasets for policy or product simulations can track similar experiments on daily.dev."}}]}
```

