# I Built 42 Evals Looking for Tasks AI Coding Agents Couldn't Solve

> Source: <https://dev.to/shimpeiws/i-built-42-evals-looking-for-tasks-ai-coding-agents-couldnt-solve-488l>
> Published: 2026-12-01 21:03:38+00:00

**Recommendation:** Derive eval cases from documented real failures and grade externally observable invariants with positive and negative controls, since agents may solve tasks you assumed were hard.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

I entered the [micro1 Eval Hackathon](https://www.hackerrank.com/event/micro1-eval-hackathon) with what seemed like a reasonable idea: turn failures from my everyday development work into tasks that frontier AI models would struggle to solve.

I had been building [taisan](https://github.com/ttbc-dev/taisan), an orchestrator for software factories, and [yuurei](https://github.com/shimpeiws/yuurei), a tool for running and recording coding-agent experiments. I thought I would have plenty of failures to work with.

Finding them turned out to be harder than I expected. Agents kept solving tasks I thought would be difficult. And sometimes, when I finally got a failing result, the problem was in the grader I had written.

I ended up building 42 evaluation cases and submitting five to the hackathon. The case collection is now open source:

Self-contained coding-agent evaluation cases derived from documented failures in a private upstream project.

Each case converts one historical agent failure into a small, self-contained project (TypeScript or Python, per the case contract) that an evaluated agent must complete, plus a private grader that checks the externally observable invariants the original failure violated. The cases test whether an agent can preserve system-wide invariants while implementing a feature or correcting a defect.

The repository is designed to be publishable: no secrets, no host paths, no private execution artifacts, and no links into the private source repository.

See [release scope](https://github.com/shimpeiws/coding-agent-eval/docs/release-scope.md), the
[distribution inventory](https://github.com/shimpeiws/coding-agent-eval/docs/distribution-inventory.md), and the
[expected case inventory](https://github.com/shimpeiws/coding-agent-eval/docs/case-inventory.json) for the publication
boundary this release applies.

All **42** cases are **ready**: they implement their workspace, private grader
positive and negative controls, and an independent alternative
implementation; several additionally declare single-defect controls that
`npm run controls` grades when declared. The…

*Adapted from [my Japanese article on Zenn](https://zenn.dev/shimpeiws/articles/3280c9a9448b7f).*

When I actually sat down to design the evals, I wasn't sure what to turn into a task.

I went through old issues, pull requests, review findings, and the patches that had addressed them. I was looking for failures whose triggering conditions I could reproduce and whose consequences I could check by running the resulting implementation.

Rather than asking an agent to work on the original codebase, I extracted the failure mechanism into a small, self-contained project. Each case has three main components:

For example, I had seen agents fix a review finding only to break an acceptance criterion from the original issue.

I turned that into a task: implement a review-and-repair loop that accepts a proposed change only if the accumulated changes still satisfy every original acceptance criterion. The review findings and file changes were synthetic inputs designed to reproduce the failure mechanism.

I thought it would be a difficult task. Claude Code and Codex passed all six trials.

A closer look at the original-contract-remediation case

The reference implementation checks the candidate file set against the original contract before adopting the change:

``` js
const candidate = applyManifest(cumulative, outcome.manifest, contract.base);
const failed = failedCriteria(candidate);
if (failed.length === 0) {
  cumulative = candidate;
  // Decision recording omitted.
}
```

The grader supplies a repair proposal that claims to satisfy an acceptance criterion but actually violates it. The implementation must reject the proposal.

[Reference implementation](https://github.com/shimpeiws/coding-agent-eval/blob/main/cases/original-contract-remediation/controls/reference/src/remediate.ts#L81-L118) · [Grader](https://github.com/shimpeiws/coding-agent-eval/blob/main/cases/original-contract-remediation/grader/src/index.ts#L464-L505) · [Trial results](https://github.com/shimpeiws/coding-agent-eval/blob/main/docs/reports/discovery-12-report.md)

In [an earlier experiment](https://dev.to/shimpeiws/turning-a-past-coding-agent-run-into-an-evaluation-case-d34), I reconstructed the original requirements and starting source so an agent could solve the same development task again. This time, I was extracting the mechanism behind a failure and making a new task around it.

The case I featured in my hackathon submission video was `durable-review-state`.

In my development workflow, agents review generated code, fix the findings, and verify the fixes before opening a pull request. That workflow also needs to resume safely after an interruption.

Suppose the process stops just after saving the findings from round two. If recovery determines the next round simply by counting the saved review records, it can jump straight to round three without fixing anything from round two.

I asked the agents to implement a workflow that persists progress through review, repair, and verification, so it can resume from the appropriate stage.

An implementation generated by Claude Opus 5.5 had a slightly different problem. The repair operation returned the IDs of the resolved findings. The workflow used those IDs to determine that no unresolved findings remained, verified the repair, and marked the round as complete.

But it never updated the resolution flags in the findings it saved.

| Runtime decision | Persisted state | 
|---|---|
| Round cleared | Round cleared | 
| No unresolved findings | `resolved: false` | 

It was a small omission in an otherwise largely working implementation. The workflow reported completion, but a process reading its saved state would still see unresolved findings in a completed round.

**The grader reads the persisted state after execution.** That is how it caught the inconsistency.

Claude Code passed one of three trials. Codex passed all three. Both failing Claude Code implementations exhibited the same omission while passing the other checks.

Because I had saved the generated code, I could reproduce those grading failures without asking the model to solve the task again.

Here is the walkthrough I submitted to the hackathon:

Inspect the implementation and the failing checks

The [first Claude Code implementation](https://github.com/shimpeiws/coding-agent-eval/blob/main/submission/tasks/durable-review-state/evidence/submissions/claude-opus-5-5-durable-review-state-r1/src/review-workflow.ts#L164-L183) calculates the remaining unresolved findings and uses the result to advance the workflow, without persisting the updated flags.

Both the [normal execution check (INV-8)](https://github.com/shimpeiws/coding-agent-eval/blob/main/cases/durable-review-state/grader/src/index.ts#L335-L358) and the [execution after a dry run check (INV-5)](https://github.com/shimpeiws/coding-agent-eval/blob/main/cases/durable-review-state/grader/src/index.ts#L634-L649) detect the omission.

The [six trial results and saved implementations](https://github.com/shimpeiws/coding-agent-eval/tree/main/submission/tasks/durable-review-state/evidence) are available in the repository.

Another case, `publication-evidence-recovery`, asked agents to implement a publication workflow that preserves evidence of failed attempts and supports recovery.

Initially, four of six trials passed. I thought I had found another useful failure case.

There turned out to be two problems with my grader:

I corrected both restrictions and graded the same six saved implementations again.

|  | Passed | 
|---|---|
| Original grader | 4/6 | 
| Corrected grader | 6/6 | 

**Not a single line of agent-generated code had changed.**

Checking that my own reference implementation passed would not have caught either problem. I also needed to check that valid alternatives passed, while implementations that lost evidence or reported completion prematurely failed.

The grader itself needed testing.

The [grader audit](https://github.com/shimpeiws/coding-agent-eval/blob/main/docs/reports/publication-evidence-recovery-audit.md) documents the two corrections, the controls, and the regrading process.

As the deadline approached, I kept finding tasks that agents could solve. When a task did produce a failure, I had to inspect the implementation and check whether the grader was asking for something the task had actually required.

I was looking for failures I could explain, not just low scores.

The public repository contains 42 ready-to-use cases. The hackathon selection matrix covers 17 measured cases, and I submitted five of them, with six judged trials per case (three per agent configuration).

Of the five submitted cases, I considered two clear implementation failures. The other three needed qualifications.

| Task | Claude Code | Codex | Observed failure and qualification | 
|---|---|---|---|
| [Resumable review state](https://github.com/shimpeiws/coding-agent-eval/tree/main/cases/durable-review-state) | 1/3 | 3/3 | **Clear:** a completed round retained unresolved findings. | 
| [Bounded verification and repair](https://github.com/shimpeiws/coding-agent-eval/tree/main/cases/workflow-path-authority-conflict) | 3/3 | 1/3 | **Clear:** transient verification errors exhausted the budget before any repair was attempted. | 
| [Verification profile binding](https://github.com/shimpeiws/coding-agent-eval/tree/main/cases/bound-verification-profile) | 0/3 | 0/3 | Five trials rejected valid verification records, but the accepted record format was not specified in the task. | 
| [Publication dry runs](https://github.com/shimpeiws/coding-agent-eval/tree/main/cases/review-drain-planning-isolation) | 2/3 | 0/3 | All trials respected the main dry-run requirement. Failures concerned when to enter a terminal state after the final refused publication attempt. | 
| [MCP tool allowlist](https://github.com/shimpeiws/coding-agent-eval/tree/main/cases/planner-mcp-allowlist-enforcement) | 1/3 | 3/3 | All authorization decisions were correct. The failures were audit-log field-name mismatches. | 

The numbers are pass counts over three trials, not estimated success rates. Claude Code's model was confirmed as Opus 5.5. I requested `gpt-6-sol` for Codex, but the runtime did not expose the resolved model identity.

These are observations about two complete agent configurations, including their runtimes and settings, not a ranking of the underlying models.

The [submission results](https://github.com/shimpeiws/coding-agent-eval/blob/main/submission/README.md#results) and [admission matrix](https://github.com/shimpeiws/coding-agent-eval/blob/main/docs/reports/admission-matrix.md) include the evidence and qualifications. You can also [regrade the frozen submissions](https://github.com/shimpeiws/coding-agent-eval/blob/main/submission/README.md#reviewer-quickstart) locally without model calls or API keys.

I could correct the grader and run it against exactly the same code because the experiment runner had saved the artifacts from each trial.

That is where [yuurei](https://github.com/shimpeiws/yuurei), a tool I had already been developing, came in useful.

The runner in `coding-agent-eval` prepared the task and starter code, then invoked Claude Code or Codex through yuurei with the experiment configuration. Yuurei recorded the execution outcome and changed files. The runner used that information to preserve the generated code from each trial.

The two tools have separate responsibilities. Yuurei runs and records agent executions; `coding-agent-eval` prepares the cases, preserves the submissions, and grades them.

That separation was especially useful when investigating the durable-state failure and correcting the grader. I could go back to the actual code and test it again without another model session. Regrading reproduces the verdict on a saved implementation, not the original agent session.

I wrote about why I built yuurei in [Before I Could Evaluate My Coding-Agent Harness, I Had to Isolate It](https://dev.to/shimpeiws/before-i-could-evaluate-my-coding-agent-harness-i-had-to-isolate-it-3ohm).

Isolated, reproducible runtime environments for coding agents

`yuurei` isolates coding-agent runtime environments (Claude Code, Codex
OpenCode) from your normal global configuration, so different harness profiles
(skills, instructions, settings, hooks) can be swapped and run
reproducibly without touching or breaking your everyday setup.

Comparing harness or profile variants safely usually means backing up,
swapping, restarting, and restoring your global config by hand — a
process that gets fragile fast as the number of variants grows. `yuurei`
builds a temporary, isolated execution cell per run instead, and emits a
runtime-agnostic trace record (`trace.json`) that other tools — such as a
future ROI tracker — can consume. `yuurei` itself stays agnostic of any
such consumer; the dependency only ever points one way, from that tool
toward `yuurei`.

`yuurei` separates **configuration and environment variables**: it points a
runtime at an isolated config root and…

Building these evals was both fun and frustrating.

Every time an agent solved a task I thought would be difficult, I went back to old issues and reviews looking for another candidate. It felt a bit like a treasure hunt. At one point, I was genuinely worried that I wouldn't find five cases before the deadline.

I didn't win a prize, but I'm happy that I now have a collection of executable cases derived from failures I had encountered in my own work.

If I were doing the hackathon again, I would try promising candidates with agents earlier, before investing so much effort in building them out. There might have been better problems among the incidents I didn't turn into tasks.

What I'd like to build next is a way to turn failures into small evals as they happen, rather than digging through months of development history for them.

When I change a model or a harness, I want to be able to revisit the things that used to cause problems in my own development work and see which of them the new setup can handle.
