Doppel
This pull request leaked every user's password hash. Only the twin caught it.
It was titled "Describe has_password in the API schema" and changed one line. The app's 44 tests passed and an AI code reviewer called it safe. Doppel ran both versions of the app with the same invented users and recorded the answer that changed.
- The app's own testsPassed (44 passed in 10.08s)
- An AI code reviewerSaid safe
The PR adds a `password_hash` field to the schema with `dump_only=True`, which only exposes the existing database column in API responses and documentation without changing validation, behavior, or security.
- DoppelRegression, with the recorded answer
GET /api/me, sent by the invented user alice_register to both worlds
{
"about_me": "I am alice.",
"avatar_url": "https://www.gravatar.com/avatar/c160f8cc69a4f0bf2b0362752353d060?d=identicon",
"email": "alice@example.com",
"first_seen": "2026-01-01T09:00:00Z",
"has_password": true,
"id": 1,
"last_seen": "2026-10-03T11:45:49.760982Z",
"posts_url": "/api/users/1/posts",
"url": "/api/users/1",
"username": "alice"
}{
"about_me": "I am alice.",
"avatar_url": "https://www.gravatar.com/avatar/c160f8cc69a4f0bf2b0362752353d060?d=identicon",
"email": "alice@example.com",
"first_seen": "2026-01-01T09:00:00Z",
"has_password": true,
"id": 1,
"last_seen": "2026-10-03T11:45:50.425062Z",
"password_hash": "scrypt:32768:8:1$[hidden on the site]",
"posts_url": "/api/users/1/posts",
"url": "/api/users/1",
"username": "alice"
}The hash itself is hidden on this site; the twin recorded it in full. See the whole run
How Doppel checks a pull request
- Build the twin once. Install the app and load its data in a Nebius sandbox, then save a checkpoint.
- Fork two worlds. The main branch and the pull request, both starting from that identical data.
- Send the same invented users through both. Nemotron writes them from the code; each gets a fresh copy of each world.
- Compare and judge. Every answer that differs is labelled intended or regression against what the pull request says.
Recorded runs
Each page replays one real run: what happened inside the twin, every request in both worlds, and the judge's verdicts.
- Describe has_password in the API schema Regression the pull request doesn't mention, seen in 22 answers One line added password_hash to the user schema. Every user object in every response now carries the hash. Tests: Passed (44 passed in 10.08s)AI review: Said safe 23 users, 62 requests each world. Recorded on Nebius, 07 Oct 2026, with the users the benchmark wrote for this PR. Tests and AI review results are from the benchmark.
- Let DELETE /api/tokens handle its own auth Regression the pull request doesn't mention, seen in 3 answers A reverted upstream fix: revoking a token without an Authorization header crashes with a 500 instead of answering 401. Probe users written for the reviewer's suspicions sent exactly that request. Tests: Passed (44 passed in 9.94s)AI review: Said safe 19 users, 65 requests each world. Recorded on Nebius during the microblog-api benchmark, October 2026.
- Add posts_count to user objects Every change matches the pull request A safe pull request that adds posts_count to users. The twin saw 28 differences, and the judge matched every one to the description, so the check stays green. Tests: Passed (44 passed in 10.79s)AI review: Said safe 25 users, 69 requests each world. Recorded on Nebius during the microblog-api benchmark, October 2026.
- Demo shop: add an in_stock flag to products 6 behavior changes, not judged The pull request says it only adds in_stock. The twin also finds that coupon orders now cost more and that an order for quantity 0 is accepted. 5 users, 11 requests each world. Recorded with the local backend (no judge), the same flow Doppel runs in sandboxes.
On a real app
30 pull requests to microblog-api, a real open-source Flask app with 44 tests: 20 carry a regression (3 are reverted upstream bug fixes) and 10 are safe. The methods catch different bugs. Results vary between runs; the method page says how and why.
| Method | Regressions caught | False alarms |
|---|---|---|
| The app's own tests | 12/20 | 0/10 |
| AI code review | 17/20 | 1/10 |
| Review-guided Doppel | 17/20 | 2/10 |
| Tests and review-guided Doppel together | 20/20 |