Eval harness
Tuning journal
evals/JOURNAL.md is the hand-written record of the first day the harness was used to tune the pipeline, 2026-10-21: the failure that started it, how the harness was built, and each tuning round with the change it tried, the score and cost of its run, and what was kept. Nothing in the repository reads it.
What it records. It opens with the failure that started the work: a visitor asked the demo app what jobs Joel had held, and it answered that the passages did not list his job history, because the answer model was given at most 5 chunks and the employers on page 2 were cut. Then the fix, shipped test first; then the harness, with the spend caps Joel set ($2 a run and $5 in all, later raised to $3 and $7.50) and a golden set of 25 cases rather than 200, his choice to keep costs down (4 from the résumé, 21 from the book). Each round's results have their own heading with the score in it, such as Round 3, pool 48: 20 pass, 2 fail, 3 review ($0.28)
, and under it the change that round tried, what the run showed, and whether the change was kept or reverted. It ends with the two repeats of the final configuration (three runs of it with round 3, scoring 23, 24 and 23 of 25), the spend when tuning stopped ($1.96 of $7.50), and what a verifier in a fresh context caught, with the journal's own two overclaims corrected where they stood.
How it is used to read the runs. A run folder says what was measured; the journal says why the run was made. Each round's run is the folder under evals/runs/ named by its label (baseline, round1, round2, round3-pool48, round4-context16, final-repeat1, final-repeat2), so a round's heading leads to its results.json and results.md, and comparing two neighbouring folders shows what that round's changes did. A review status in a run is left for a person, and the journal holds those verdicts: in round 3 the three answers left for review, all to false-premise questions, were judged correct by hand, which is how 20 passes became 23 of 25. The settings the rounds chose, such as the 48-passage pool and the reranker thinking at low effort, each come from a named run, and the repository's own tests hold the tuned model calls so they cannot drift back (demo/tests/demo.test.ts).
What it leaves out. It covers the tuning of 2026-10-21 up to the repeats and the verifier's check. The runs labelled diagnose-refusals, widen-before, widen-after and stream-… are not in it; the posts in the blog series Tuning the demo
tell those. It is read on GitHub at the pin: evals/JOURNAL.md.
- In the browser
- runs in the visitor's browser, on the demo page
- Ingestion
- runs when a PDF's text is uploaded
- Query time
- runs when the Worker answers a question or a search_documents call from the MCP server, and in the request handling every route shares, in the Worker and in the site's functions, which uploads and removals pass through too
- MCP request
- runs on a request to the MCP server or its OAuth endpoints
- Site request
- runs on a site request that is not a question, an upload, an MCP call or the cron: a page load, a session read, the demo page's /api/grants calls, an admin read, a file's removal
- Scheduled
- runs in the Worker's daily cron job
- Eval run
- runs when the eval harness runs on a developer's machine
- MCP host
- runs in an MCP host outside the Worker: the search loop example, on a developer's machine (npm run search) or in its test
- Module load
- runs once, when the module is loaded
- Type only
- erased by the TypeScript compiler; never runs
- Never runs
- a comment, a licence or markup with no behaviour of its own
Pinned to joelstevick-demo-rag-pipeline at 6a9c6c7.