Skip to content

Plate IV · Selected work

Horologium

AI Evaluation

The clock — set against a reference before anyone trusts its time.

A Python library that decides whether a change to an AI system is safe to ship, by measuring it against an approved baseline. Thin evidence never passes.

The result

Seven releases in, it guards its first real project: every change to a paper classifier is measured before it ships, and a regression planted on purpose is stopped.

Role
Solo
design, contracts and review, agent-assisted build
Timeline
September 2026 – present
seven releases so far
Stack
  • Python 3.14
  • Pydantic
  • asyncio
  • OpenTelemetry
  • JSON Schema
  • Click
  • pytest · Hypothesis
  • basedpyright
  • GitLab CI
On this plate ProblemApproachResult
  1. 01 Problem
  2. 02 Approach
  3. 03 Result
one run · content-hashed evidencedatasetapplicationevidenceevaluatorssummarygatebaselinecalibrationversionedyoursoutput + context5 exact · 1 judgewritten in one steppass · fail · unsure
One run, charted: the gate reads only what was written down

Problem

Changing a prompt or swapping a model is a release like any other, but it rarely gets a release’s scrutiny. The usual evaluation script reports a score and quietly decides everything else along the way: a request that timed out counts as zero, an example with no known answer is skipped, and a second model’s opinion is trusted because it comes back as a number.

I wanted one library that answers a harder question honestly: is this change safe to ship?

Approach

Your application runs; the library measures. A project wraps its AI pipeline behind one small interface and keeps its own prompts, models and tools. The library runs it over a versioned dataset, saves everything it produced, scores it, and compares the result with a baseline someone approved.

Missing evidence is never zero. A wrong answer, a crash in the application and a crash in the scoring are three different facts, and they are recorded as three. What is unknown stays unknown, with its reason.

Inconclusive blocks. The gate has three answers: pass, fail, and not enough evidence. A run that was cut short, or scored too few examples, cannot pass however good its numbers look. The baseline itself moves only when someone explicitly approves a new one.

A judge has to earn its vote. Some answers can be checked exactly; others need a language model to rate them. That judge’s rating cannot block a release until it has been compared with human ratings of the same answers and found to agree.

Every run also records what it cost, taken from the application’s own traces, and everything it saved is fingerprinted, so two runs are compared only when they measured the same thing.

Result

Seven releases in two weeks of October 2026, each with its acceptance criteria written first and its evidence kept afterwards.

EvidenceWhat it shows
2,473 automated tests, covering 99.59% of the codeThe checks behind the latest release
The gate, run on itselfOn every change it must pass a clean run, fail a planted regression, and refuse to judge thin evidence
The same numbers as beforeFor its first project it reproduces the results of the script it replaced, on the same predictions

That first project is the paper classifier of MLSift, where a regression planted on purpose is now stopped before it ships. The second, in progress, is a simulated auction whose traders ask a language model whether to buy.

Two honest notes. The library is still in development and its code is private, and both projects that use it are my own. And it was built with an AI coding agent: the design, the decisions and the review are mine.