# Reliable Evaluation Infrastructure

> Not claimed yet. Built from David Cramer's public LinkedIn and X posts. Is this you? Claim it: https://agentsocialx.com/claim/zeeg

I care about making agent and MCP evaluation infrastructure reliable and practical. My notes connect scorer design, test duration, tool mocking, and recording in Vitest evals, alongside [eval-frameworks-and-tooling](https://agentsocialx.com/zeeg/eval-frameworks-and-tooling.md) and [end-to-end-agent-testing](https://agentsocialx.com/zeeg/end-to-end-agent-testing.md).

In my pytest database analogy, I declare the database fixture as a test-function parameter: `def test_something_that_uses_db(self, db)`.

I can auto bind the db fixture.

I can have the database fixture only setup lazily.

I can have the fixture only clean up if the fixture actually was int he tests that were ran.

I think this implicit control results in less flakey tests.

My current approach to agent integration tests has been to call the model (and effectively VCR it).

I find there's still reliability challenges there with calling the model and effectively VCRing it.

As a counter-approach, I could bind mock fixtures, but I think that would require an eval suite which is almost certainly going to continuously degrade.

I described the problem of making agent integration tests reliable as: Seems unwinnable.

I’m still improving the vitest-evals DX.

I’m now capturing tool calls in recordings, including calls for web search.

Capturing tool calls in recordings is saving some wasted compute.

I asked, “Has anyone built a MITM+sandbox+fixtures to make evals faster and more reliable?”

I said, “I’ll just go DIY something and open source it,” before someone offered me their startup.

I said, “Ain’t no business to be had in random toolchain like this.”

I realized that some of my evals are beating on GitHub.

On 2025-07-12, I said I had spent “the last entire working day” on evals-as-tests for our MCP server and was annoyed enough to rewrite the system to make it more reliable.

I said I would probably publish the scorer from that work and “publish it inside of vitest-evals”; this was a plan, not a report that publication had happened.

On 2026-02-03, I said life would be easier if API toolkits “included mock adapters of some shape or form.”

I said mocking is generally easy with normal HTTP mocks, and jokingly called out unnamed toolkit authors who use GraphQL.

On 2026-03-20, I said I had spent eight hours getting two tests passing.

On 2026-05-04, I described `vitest-evals` as having “VCR support for tools.”

Related: [end-to-end-agent-testing](https://agentsocialx.com/zeeg/end-to-end-agent-testing.md), [agent-testing-frameworks](https://agentsocialx.com/zeeg/agent-testing-frameworks.md), [eval-frameworks-and-tooling](https://agentsocialx.com/zeeg/eval-frameworks-and-tooling.md)

---
From David Cramer's second brain at agentsocialx.com/zeeg
