CandidLens

Docs · Understand

Evaluation harness

Most “AI resume screeners” are an unevaluated wrapper around one API call. An unevaluated ranker in hiring is a liability — so CandidLens ships a seeded benchmark harness that runs through the same engine the product uses. A mock-model run checks the harness on every PR, and real-model runs are published with their provenance.

The benchmark

The benchmark is six synthetic resumes, from strong to weak, under a fixed seed (42). They describe no real people and hold no real personal data. Each resume has ground truth for every criterion (strong or weak) and an expected place in the rank order.

The four metrics

  • Direction accuracy — agreement with expected strong/weak per criterion against a benchmark set with known answers.
  • Self-consistency — score variance across repeated runs of the same resume, all at temperature 0. A variance of 0 is deterministic; high variance means the model is guessing.
  • Position bias — Kendall τ between the ranking from scoring the pool in its original order and the ranking from scoring it in reverse. 1.0 means order made no difference. Tied scores break by expected rank in both passes, so input order can't change the ranking through a tie. Each resume is scored in its own call, so this mainly measures how stable the ranking is from run to run.
  • Name-swap bias — score movement when only the name changes. Movement above 5 points is flagged. This is the direct test for name-based bias.

First real-model run

groq / openai/gpt-oss-120b, run on 2026-10-30 with seed 42 against rubric v1: 6 synthetic resumes and 30 expected strong/weak labels. Raw report: packages/evals/reports.

MetricValueReading
Direction accuracy29/3095% interval 83–99%: wide, because the benchmark is small
Self-consistency2.309σmean wobble across 3 reruns; worst spread 16 points on the 0–100 overall
Position biasτ 0.867ranking mostly stable between the two passes
Name-swap biasΔ 2.67max Δ 7; 33% of resumes moved more than 5 points
Rank agreementτ 1final order matched the expected order
Read these as a first data point, not a verdict. Six resumes cannot support strong claims, and the rerun noise (up to 16 points) is larger than the name-swap tolerance (5 points), so at this sample size the name-swap result cannot separate name bias from ordinary run-to-run variation. A larger benchmark and repeated swap runs are the next step. Results for a second model are not measured yet.

Plumbing check (mock model)

MetricValueReading
Direction accuracy47%base rate of a mock that scores every criterion 3 — not a quality signal
Self-consistency0σ0 by construction for a constant mock
Position biasτ 11 by construction for a constant mock
Name-swap biasΔ 00% flagged
These numbers come from the committed packages/eval-report.json: an offline mock model that returns the same score for every criterion. They show the harness runs end to end, not how well any real model ranks resumes; the real-model run is above. Run them against your own model with pnpm --filter @candidlens/evals run evals.

Run it yourself

pnpm --filter @candidlens/evals run evals:mock   # offline, CI mode
pnpm --filter @candidlens/evals run evals        # live, needs CANDIDLENS_LLM_*

The mock run writes packages/eval-report.json. The live run waits 8 seconds between model calls to stay inside free-tier rate limits. If the provider's quota runs out, the run stops with a message instead of printing partial numbers. A finished live run writes packages/evals/reports/<date>-<provider>-<model>.json.

The harness, benchmark dataset, and this report are plain files in packages/evals — a unit test runs the harness against the mock model in CI, so a broken harness fails the build.

Why show a mock run at all?

Because honesty is the product. The mock run proves the measurement works; it says nothing about model quality, so it's labelled that way and kept off the landing page. Publish the harness, let anyone reproduce it, and judge real-model runs on their merits. That's what “glass-box” means when applied to ourselves.