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.

23 users through both worlds: 46 throwaway sandboxes, 46 at once, 64 s for the whole twin. See the run
  1. The app's own testsPassed (44 passed in 10.08s)
  2. 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.
  3. DoppelRegression, with the recorded answer

GET /api/me, sent by the invented user alice_register to both worlds

Before the pull request: 200
{
  "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"
}
After the pull request: 200
{
  "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

  1. Build the twin once. Install the app and load its data in a Nebius sandbox, then save a checkpoint.
  2. Fork two worlds. The main branch and the pull request, both starting from that identical data.
  3. Send the same invented users through both. Nemotron writes them from the code; each gets a fresh copy of each world.
  4. 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.

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.

Regressions caught and false alarms per method
MethodRegressions caughtFalse alarms
The app's own tests12/200/10
AI code review17/201/10
Review-guided Doppel17/202/10
Tests and review-guided Doppel together20/20

Method, every PR and honest limits