Inspiration

A pull request titled "Describe has_password in the API schema" changed one line in microblog-api, a well-tested open-source Flask app. All 44 tests passed. An AI code reviewer (Nemotron 3 Ultra, with the full source and the diff) called it safe. It leaked every user's password hash in GET /api/users and 13 other endpoints.

Tests check what someone thought to assert. Reviewers read the diff and guess what it does. Nobody runs it. Doppel runs it.

What it does

Doppel is a GitHub Action and CLI that runs the code before and after a pull request side by side, sends both the same requests, and shows every behavior change the PR doesn't mention, with the request, the old answer and the new one.

  • Test mode (zero setup). The requests come from the app's own test suite. Doppel finds the test command in tox.ini, the CI workflow, a Makefile or a noxfile, plugs a recorder into ten test clients (Flask, Django, FastAPI, httpx, WebTest, …) and records every response.
  • Noise and confirmation. It runs the old code twice to learn what is random (timestamps, tokens, ids), compares the new code against that, and reruns every difference to confirm it.
  • The guided twin. When no test covers a route, NVIDIA Nemotron writes realistic users and targeted probes. The app is seeded once in a Nebius sandbox, checkpointed, and each user replays in its own fork of the base world and the head world.
  • The judge. Nemotron 3 Ultra judges every difference against the PR description. A change counts as intended only if the model quotes the sentence that announces it, and code checks that quote word for word.

The PR gets one comment (regressions first, each with the request, old value, new value and reason), a check page, and a failing check for regressions nobody mentioned. A maintainer can accept an intended change with the doppel: accepted label.

Try it: paste any public pull request on the Try page; a workflow runs Doppel in Nebius sandboxes and replies on a GitHub issue. Or open doppel-demo#1, the leak above on a repo with one workflow file.

How we built it

  • Python, about 11,000 lines in src/, with 423 offline tests and CI.
  • Nebius Token Factory Sandboxes (ConTree) build the app once, checkpoint it, and fork a throwaway copy per user per world in about 1.4 s, dozens in parallel. In the hash-leak run: 46 sandboxes at once, 64 s end to end.
  • NVIDIA Nemotron on Token Factory: Nemotron 3.5 Lightning writes users (its long context reads a whole small app); Nemotron 3 Ultra reviews the diff for suspected hidden changes, repairs users stuck at a login, drives doppel init (a tool-using agent that writes the twin's setup inside a live sandbox), and judges. Every call goes through Token Factory's OpenAI-compatible API with reasoning off and JSON output; a judgment costs about $0.002.
  • GitHub: a composite Action (uses: Maukthik/doppel@v1), a Try bot driven by issues in a public repo, and GitHub Pages for check pages and a replay site of recorded runs.

Results

On 30 pull requests to microblog-api (20 with a regression, including 3 reverted upstream bug fixes, and 10 safe):

Method Regressions caught False alarms
The app's own 44 tests 12/20 0/10
AI code review (Nemotron 3 Ultra) 17/20 1/10
Review-guided Doppel 17/20 2/10
Tests + Doppel 20/20

Doppel caught all 8 regressions the tests missed, including two the AI reviewer called safe. Test mode also ran with zero setup on apps it was never tuned for (httpbin, flasky, django-allauth, Kinto, Datasette). Every number is recomputed offline by bench/verify_numbers.py, and both false alarms are explained in the README.

Challenges we ran into

  • Noise. Real apps return timestamps, tokens and random ids. Running the old code twice, and confirming each difference with a rerun, is what keeps false differences at zero on unmodified apps.
  • A judge that explains everything away. With the diff in front of it, a model can justify any change. Doppel asks for a quote from the PR description, verifies it in code, and asks a second question without the diff.
  • Sandboxes in practice. Uploading a whole repo needed a longer transport timeout and chunked archives; older Python images weren't available, so Doppel installs the right Python with uv inside the sandbox; occasional transport errors needed retries.
  • Secrets on public pages. Recorded responses contain password hashes and tokens, so every public page is masked, and a page that would show a credential is never written.

Accomplishments that we're proud of

  • A leak that 44 passing tests and an AI review both missed, caught with evidence a reviewer can check in seconds.
  • Zero-setup test mode on real open-source apps it was never built for.
  • Honest numbers: the false alarms are shown, not hidden.

What we learned

Running the code beats reading it for behavior changes, but only if you handle noise carefully and keep the model honest. The most useful thing an LLM did here was not to find bugs but to decide, with a verifiable quote, whether a change was announced.

What's next for Doppel

More languages and frameworks beyond Python, PostgreSQL-backed apps (sandboxes have no System V shared memory today), and posting the regression tests Doppel already writes (--tests-out) back to the pull request, so each regression comes with a test the author can keep.

Built during the hackathon

The whole project was started on 1 Oct 2026 for this hackathon; the repo's history and tags (v0.1-local-twin to v1.1.0) show each stage.

Built With

Share this project:

Updates

Submission history