// book 15
patriola.com

Book 15 · Patriola’s Guide to Claude

Long-Horizon Evals


A five-minute test tells you what an agent does when it starts. It says nothing about what the agent does at hour six. This book is how to get that answer before production gets there first.

Buy Ebook on Amazon  Buy Paperback on Amazon

Patriola's Guide to Claude — Long-Horizon Evals: Test Agents Over Hours, Not Minutes
What this book is

The eval that measures hour six

A pipeline returns exit 0 on all 847 files. Every file is present, correctly named, correctly formatted, and the session logs read clean throughout. A quality audit the following week finds that files 400 through 847 applied a wrong interpretation of a classification rule the agent drifted into somewhere around hour four. Every verification check passed. The one thing none of them measured was whether hour-five behavior matched hour-one behavior.

These failures share a structure: they only appear after time has passed. A short eval, however thorough, cannot surface a failure that takes 300 turns to develop. This book builds the methodology to close that gap, with seven chapters that each produce a working instrument.

What you’ll learn

Seven instruments for extended runs

  • what-changes-at-hour-6 — The failure modes short tests miss, framed against the 50%- and 80%-time horizons: there is a threshold duration past which reliability degrades non-linearly, and a 20-minute pass rate carries no information about behavior past it.
  • scenario-design — How to construct test scenarios that take hours by intention rather than accident, with variables controlled so results stay comparable across runs.
  • degradation-tracking — Per-task metrics that track how performance changes from the first hour to the last, so a slow decline shows up as a curve instead of a surprise.
  • silent-failure-detection — Instrumentation that checks for unreported errors alongside the agent’s own output, catching the problems an agent never flags because, from inside, nothing looked wrong.
  • context-window-effects — How filling the context changes agent behavior, where the performance cliff appears, and how to design tests that cross it on purpose.
  • reliability-scoring — A metric that captures how an agent performs over time rather than per-task, built to be compatible with the trust scoring layer from Book 12.
  • test-harness — The full long-horizon harness that runs extended sessions, records results, and compares them across runs so degradation patterns become visible.
From the book

A preview

Every passing eval had measured the first hour and certified the rest. The accuracy cliff had been present from the beginning. Nobody had designed a test that would catch a degradation that started after the eval ended.
You — reading an overnight run The research pipeline finished overnight and the outputs look complete. Anything the run log wouldn’t show me?
Claude The run log won’t show it, because the agent didn’t experience a change. The context profiler flags that fill crossed 80% around hour four, and the silent-failure probe shows the agent stopped flagging ambiguous cases right after that and started filling them with plausible values instead. Each late response is locally coherent, so nothing reads as wrong in isolation. The signal only appears when high-fill outputs sit next to low-fill outputs — which is exactly the comparison the harness runs.
The benchmark tooling is not broken — it measures what it is designed to measure. The problem is treating a 20-minute pass rate as evidence about hour-five behavior. Those are measurements of different things, and the gap between them is where long-horizon failures live.
Who it’s for

Operators running extended and overnight sessions

Claude Code operators running extended or overnight agent sessions who need to know whether the agent at hour five is still the agent they tested at hour one. Prerequisites: Self-Verifying Pipelines (Book 7) for the gate and event-log patterns, and Red-Teaming (Book 14) for the failure-mode discipline these instruments extend over time. The reliability scorer is also built to plug into the trust scoring layer from Book 12.

A longer excerpt is available to newsletter subscribers.

Buy Ebook on Amazon  Buy Paperback on Amazon

Stay current

New books in this series

One short email per book launch.