- All playbooks
- Give agents a conformance suite to test against
Give agents a conformance suite to test against
Write a suite that checks changes against the reference behavior the system must match, and have agents run it on every change.
Company examples
How OpenAI used this technique
Read what OpenAI changed and follow the original sources.
Give agents a conformance suite to test against
Translated to GitHub Actions
- What OpenAI built
- OpenAI wrote a conformance test suite so the agents building Pando, its Git backend, could test their changes against standard Git behavior.
- Your GitHub Actions version
- A conformance suite in your repository that agents run on every change and a GitHub Actions job runs on every pull request.
OpenAI built Pando, a Git backend for its monorepo, with Codex in ten weeks: one engineer designed its core, teams of agents implemented it, and a handful of engineers deployed it. The team wrote a conformance test suite so agents could test their changes against standard Git behavior. It also built deterministic simulation testing harnesses that check the system's invariants and properties, which found subtle race conditions and regressions.
- Use it when
- Agents change code that has to match a reference: a protocol, a file format, a public API, or the system it reimplements.
- Before applying it
- Take the expected results from the reference implementation itself, and add a case each time an agent finds a new difference.
- GitHub Actions adaptation
- Compare the source system with your own workflow before applying this translation.
Company Playbooks
- Read Anthropic’s playbookRun only affected tests
- Read DoorDash’s playbookRun build and test in parallel, sharded across CI agents
- Read Linear’s playbookBenchmark the same job on faster hardware
- Read Mastra’s playbookStarSling runners for the slowest test workflow
- Read OpenAI’s playbookRank CI fixes by the minutes they save
- Read Ramp’s playbookMove a CPU-bound test suite to a faster CPU
- Read Shopify’s playbookLet an agent iterate against one CI metric
- Read Spotify’s playbookBuild arm64 on native arm64 runners
- Read Stripe’s playbookRun only the tests a change can reach
- Read Uber’s playbookBuild the merge-queue speculations most likely to be needed