All projects
In progressSep 2026 – present

MTLJ, mutation testing for LLM judges

Testing the AI that grades AI. I lead the team and wrote over half of the Python codebase.

Role
Scrum Master and Technical Lead
Team
Team of 4, UCF Senior Design
When
Sep 2026 – present
Stack
PythonasyncioPydanticpytestFastAPIPostgreSQLNuxtDocker ComposeGitHub Actions
tests running offline in CI
1k+
tests running offline in CI
real LLM scorings, replayable
765
real LLM scorings, replayable
corpus records, checksum-verified
919
corpus records, checksum-verified

LLM judges like DeepEval, Ragas and Promptfoo score other models' answers. But who checks the judge?

MTLJ changes ("mutates") answers in ways that should lower a score, like dropping a fact or contradicting the question, and in ways that shouldn't, like rewording or padding. Then it uses statistics to check whether the judge actually notices.

The engine

I wrote over half of the Python codebase and test suite, including the core that every audit runs through.

  • Async judge runner. Scores every original and mutant several times, with a configurable number of calls in flight on a dedicated thread pool. Each result is written to a JSONL file the moment it finishes, so a run that's killed halfway keeps everything scored so far. One failed call becomes an error row instead of stopping the run. Only a streak of 20 failures, like a revoked API key, aborts it.
  • Data model. Pydantic models for dataset records and mutants. A mutant carries its full provenance, and its id is a hash of its inputs, so any surprising result can be regenerated exactly and defended.
  • Corpus loader. Loads the 919-record RAGTruth corpus into one format. Bad lines are skipped and reported with their line number, and the file is checked against its manifest's SHA-256 first, so an edited corpus can't slip into an audit.
  • Adapter contract tests. One suite every judge adapter must pass: scores in range and never silently clamped, inputs never modified, errors propagated, and parallel calls that never lose or swap results. The async runner depends on those guarantees.
  • DeepEval adapter. The first real judge behind that contract: DeepEval's faithfulness metric, which checks whether an answer sticks to its source passage.
  • Audit CLI. mtlj audit run plans the scorings, runs them, and prints the report: detection rate for mutants that should lower the score, spurious sensitivity for those that shouldn't, each with a 95% interval and corrected for the number of tests. Settings can come from a TOML file, so an audit can be rerun exactly.
  • Replayable fixtures. 765 real LLM scorings, recorded once and replayed in tests, so the 1,000+ test suite runs offline in CI without calling a model.

Leading the team

I'm the Scrum Master and technical lead of a four-person team. We run two-week Scrum sprints in Jira, and I set up how the team works.

  • Set up the repository and a one-command dev environment: docker compose up brings up the Python API, Postgres and the Nuxt frontend with hot reload, with no local Python or Node needed
  • Set up GitHub Actions CI, Dependabot, Ruff and pytest, and fixed cross-platform issues like Windows long paths
  • Branch protection and required code reviews on main
  • Wired the GitHub workflow into Jira with automation, and wrote the developer and contributing docs

Status

Audits run end to end against DeepEval's faithfulness judge: load the corpus, generate mutants, score them through the async runner, and report the statistics. The team is adding more mutation operators and judges, and I'm adding concurrency limits and resuming a stopped audit from where it left off.

Benjamin Duffaut

© 2026 · Served from a laptop in Orlando through a Cloudflare Tunnel