---
title: "The Agents on Rails Files: designing black-box evals for coding agents"
description: "Black-box, browser-driven verification lets coding-agent evals grade apps whose code organization and UI the agent chooses freely, as in Stage 3 of the Rails Foundation's Agents on Rails benchmark."
url: "https://swe.quest/articles/the-agents-on-rails-files-designing-black-box-evals-for-coding-agents-3e90939da666e071"
canonical: "https://evilmartians.com/chronicles/the-agents-on-rails-files-designing-black-box-evals-for-coding-agents"
source: "Evil Martians"
published: "2026-10-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 16
tags: ["evals","testing","ai-coding","ruby"]
---

# The Agents on Rails Files: designing black-box evals for coding agents

A post on [Evil Martians](https://swe.quest/sources/evil-martians.md), published 2026-10-21, 16 min read, Case study. Original: [https://evilmartians.com/chronicles/the-agents-on-rails-files-designing-black-box-evals-for-coding-agents](https://evilmartians.com/chronicles/the-agents-on-rails-files-designing-black-box-evals-for-coding-agents)

## Summary

Black-box, browser-driven verification lets coding-agent evals grade apps whose code organization and UI the agent chooses freely, as in Stage 3 of the Rails Foundation's Agents on Rails benchmark. For the Campfire Bots task, a hybrid in-app suite served as an oracle to calibrate the e2e harness. Mutation testing then hardened it: equivalent mutants that change only UI must pass, and faulty mutants that break behavior must fail. Only 2 of 33 runs needed recalibration. For the greenfield Quizzy app, accessibility-oriented QA hints plus partial HTML mockups kept the tests deterministic without over-specifying the task, and the post shares Capybara/Cuprite helpers for waiting on POSTs, polling, auth checks via traffic replay, and offline/WebSocket emulation.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)

## Prerequisites

- end-to-end browser testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- Ruby on Rails ([easy posts on Ruby](https://swe.quest/tags/ruby.md?difficulty=easy))
- LLM coding agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Agents on Rails, Campfire, Capybara, Cuprite, Chrome DevTools Protocol, mutation testing, Minitest

## Related posts

- [Agent-driven development in Copilot Applied Science](https://swe.quest/articles/agent-driven-development-in-copilot-applied-science-57df9b7433878456.md): GitHub Engineering · 2026-03-31 · Medium · 9 min read · AI for coding, AI agents, Developer productivity, Evaluation, Testing
  A Copilot Applied Science researcher built eval-agents, a set of Copilot SDK-based agents that automate analysis of coding-agent trajectories from benchmarks like TerminalBench2 and SWEBench-Pro, and developed it primarily through coding agents.
- [Agents are users, so your software needs evals](https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38.md): Vercel · 2026-11-16 · Medium · 19 min read · Evaluation, AI agents, Testing, LLMs
  Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored.
- [The Most Common Questions About Agent Evals, Answered](https://swe.quest/articles/the-most-common-questions-about-agent-evals-answered-40ebbb294f8cf253.md): LangChain · 2026-10-15 · Medium · 15 min read · Evaluation, AI agents, Observability, LLMs
  Agent evals score agent runs to handle nondeterminism, multiple valid answers and variable execution paths: start by reading traces, pick one behavior, build a 10-20 example dataset from real traces, run a baseline experiment, and fold new failures back in.
- [When AI Writes the Code, What Counts as Evidence?](https://swe.quest/articles/when-ai-writes-the-code-what-counts-as-evidence-b44b970cb226fefb.md): Stack Overflow Blog · 2026-11-25 · Easy · 7 min read · AI for coding, AI agents, Documentation, Testing, Developer productivity
  Coding agents increasingly investigate and fix failures in private sessions, delivering patches while discarding the reasoning, failed attempts and environmental context that teams used to preserve as shared troubleshooting knowledge.
- [Demystifying evals for AI agents](https://swe.quest/articles/demystifying-evals-for-ai-agents-fa56ac3233812721.md): Anthropic Engineering · 2026-01-09 · Medium · 26 min read · Evaluation, AI agents, LLMs, Testing
  Agent evaluations should grade both the final environment outcome and the full transcript of tool calls, turns and reasoning, because multi-turn agents modify state and compound mistakes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
