<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Afterfault blog</title>
  <subtitle>Notes from building Afterfault.</subtitle>
  <link href="https://afterfault.com/blog/" />
  <link rel="self" href="https://afterfault.com/blog/feed.xml" />
  <id>https://afterfault.com/blog/</id>
  <updated>2026-11-19T00:00:00Z</updated>
  <entry>
    <title>Training environments from real systems, graded by what actually happened</title>
    <link href="https://afterfault.com/blog/agent-training-environments/" />
    <id>https://afterfault.com/blog/agent-training-environments/</id>
    <published>2026-11-19T00:00:00Z</published>
    <updated>2026-11-19T00:00:00Z</updated>
    <author><name>Afterfault</name></author>
    <summary>Frontier coding agents now fix the bugs they are pointed at. What stays scarce is the failure nobody has found yet, and a grader a clever fix cannot fool. Afterfault builds environments from real software that supply both.</summary>
    <content type="html">&lt;p&gt;Every lab that trains coding agents needs tasks the agent cannot already do, and a way to tell a real fix from one that only looks right. Both run out fast. A benchmark leaks into training data, a bug gets fixed upstream, a model gets better, and a set of tasks that took months to build is spent.&lt;/p&gt;
&lt;p&gt;We wanted to know how hard a task has to be before it stays hard. So on 19 November 2026 we built two sets of tasks on our own engine and ran Codex (GPT-6.2 Sol, at its xhigh setting) on both. The answer changed what we think a training environment is for.&lt;/p&gt;
&lt;h2 id=&quot;ten-seeded-bugs-ten-fixes&quot;&gt;Ten seeded bugs, ten fixes&lt;/h2&gt;
&lt;p&gt;The first set was the obvious version. One small service: a worker takes orders from a queue, sends each one to a partner&amp;#39;s webhook, and records it as done. A reference version handles every failure we could think of. We broke it ten ways, one or two real reliability bugs per task: an idempotency key that changes on every retry, an order recorded before it is sent, a shutdown handler that throws away work in flight, and so on.&lt;/p&gt;
&lt;p&gt;The agent got the broken code, an on-call ticket describing one symptom, and a recipe that reproduces that one failure. Grading reran the service under nine scenarios it had not seen and counted what the partner actually received.&lt;/p&gt;
&lt;div class=&quot;fig stats&quot; style=&quot;--n: 3&quot;&gt;&lt;div class=&quot;stat&quot;&gt;&lt;p class=&quot;stat__v&quot;&gt;&lt;span data-count&gt;10 of 10&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;stat__k&quot;&gt;tasks fixed, every scenario passing&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;stat&quot;&gt;&lt;p class=&quot;stat__v&quot;&gt;&lt;span data-count&gt;4 to 7 min&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;stat__k&quot;&gt;per task&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;stat&quot;&gt;&lt;p class=&quot;stat__v&quot;&gt;&lt;span data-count&gt;100%&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;stat__k&quot;&gt;of a random search of 40 fault schedules per task, none seen in advance&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(A few schedules in each search ended inconclusive, when the fault missed its moment; every schedule that gave a verdict passed.)&lt;/p&gt;
&lt;p&gt;It did not patch the symptom. It rewrote the worker properly: atomic queue operations, a key that stays stable across retries, careful backoff. A seeded bug this size is a warm-up for a frontier agent.&lt;/p&gt;
&lt;h2 id=&quot;a-real-bug-from-a-vague-ticket-solved-and-better-than-the-maintainers&quot;&gt;A real bug, from a vague ticket: solved, and better than the maintainers&lt;/h2&gt;
&lt;p&gt;The second set used real software. listmonk is an open-source newsletter server, about a hundred thousand lines of Go. In version 6.2.0, a restart in the middle of a campaign skips subscribers while the campaign still reports finished. We &lt;a href=&quot;/research/listmonk-restart-lost-sends/&quot;&gt;wrote up how we found it&lt;/a&gt;: in one recorded run, 24 of 40 subscribers never got the email.&lt;/p&gt;
&lt;p&gt;This time the agent got the source, a running stack and a ticket that only described what a customer would notice:&lt;/p&gt;
&lt;aside class=&quot;callout&quot;&gt;&lt;p class=&quot;callout__k&quot;&gt;The ticket&lt;/p&gt;&lt;p&gt;Campaigns sometimes show finished but some subscribers never got the email. Make campaign delivery crash-safe.&lt;/p&gt;
&lt;/aside&gt;
&lt;p&gt;No failure recipe, no file names. Grading built the agent&amp;#39;s code and ran it through ten hidden scenarios: restarts and kills mid-campaign, kills just before and just after the mail server accepts a message, database restarts, cut and partitioned networks, a stalled process. We also ran three scenarios we did not score, because the maintainers&amp;#39; own fix fails them: the mail server refusing a message once, refusing three times, and a long network cut.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Ten scored scenarios&lt;/th&gt;&lt;th&gt;Three extra scenarios&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;listmonk 6.2.0 as shipped&lt;/td&gt;&lt;td data-label=&quot;Ten scored scenarios&quot;&gt;fails: 13 to 36 of 40 subscribers lost, campaign shown finished&lt;/td&gt;&lt;td data-label=&quot;Three extra scenarios&quot;&gt;fail&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;The maintainers&amp;#39; fix, backported&lt;/td&gt;&lt;td data-label=&quot;Ten scored scenarios&quot;&gt;10 of 10&lt;/td&gt;&lt;td data-label=&quot;Three extra scenarios&quot;&gt;fail&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Codex, from the ticket alone&lt;/td&gt;&lt;td data-label=&quot;Ten scored scenarios&quot;&gt;10 of 10&lt;/td&gt;&lt;td data-label=&quot;Three extra scenarios&quot;&gt;pass all three&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Codex took 13 minutes. It found the cause on its own: listmonk moves its checkpoint when it fetches a batch of subscribers, not when it sends them. Its fix records each recipient&amp;#39;s delivery only after the mail server accepts the message, marks a campaign finished only when nothing is pending, and adds a migration for campaigns already in flight. That covers cases the fix that shipped upstream (commit a729a4a6) does not.&lt;/p&gt;
&lt;blockquote class=&quot;pull&quot;&gt;&lt;p&gt;The fix is no longer the hard part. Finding the failure is.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;what-stays-hard&quot;&gt;What stays hard&lt;/h2&gt;
&lt;p&gt;If the agent can fix what it is shown, the scarce parts of an environment move to either side of the fix.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Finding the failure.&lt;/strong&gt; Nobody filed a ticket for listmonk&amp;#39;s skipped subscribers until someone went looking. While building this task we found a second problem nobody had pointed us at: listmonk does not retry a message the mail server refuses. Failures like these do not sit in a bug tracker waiting to be turned into tasks. They are found by running the real system through crashes, restarts and cut connections in many orders and checking the outcome, which is what our engine does.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Grading the fix.&lt;/strong&gt; A grader that runs the agent&amp;#39;s own tests, or asks the system whether it worked, rewards a fix that makes the symptom go away. That is how reward hacking gets learned.&lt;/p&gt;
&lt;figure class=&quot;fig fig--drawn&quot;&gt;&lt;div class=&quot;fig__draw&quot;&gt;&lt;svg class=&quot;fig__svg&quot; style=&quot;max-width:560px&quot; aria-label=&quot;The pipeline for one environment, in five steps: a real system rebuilt from its own files; a hidden search for a failure; the task, which is the source and a vague ticket; the agent's fix, of which only the code is kept; and hidden grading by what the mail server received. A fix that holds sends the search after the next failure.&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 560 886&quot; role=&quot;img&quot;&gt;
&lt;rect width=&quot;560&quot; height=&quot;886&quot; fill=&quot;#eae7df&quot;/&gt;
&lt;defs&gt;&lt;marker id=&quot;agent-training-environments-1-a&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#1c1b18&quot;/&gt;&lt;/marker&gt;&lt;marker id=&quot;agent-training-environments-1-b&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#2347d6&quot;/&gt;&lt;/marker&gt;&lt;/defs&gt;
&lt;rect x=&quot;76&quot; y=&quot;28&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;64&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;01&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;65&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;A real system&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;94&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;listmonk v6.2.0, its PostgreSQL and a mail&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;118&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;server, rebuilt from the project&amp;#x27;s own&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;142&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;files.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;167&quot; x2=&quot;309.0&quot; y2=&quot;197&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-training-environments-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;202&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;238&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;02&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;239&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Search for a failure&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;268&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Crashes, restarts and cuts at different&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;292&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;moments, until the outcome is wrong: 24 of&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;316&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;40 never arrive.&lt;/text&gt;
&lt;rect x=&quot;454&quot; y=&quot;218&quot; width=&quot;74&quot; height=&quot;28&quot; rx=&quot;14&quot; fill=&quot;#2347d6&quot;/&gt;
&lt;text x=&quot;491.0&quot; y=&quot;237&quot; text-anchor=&quot;middle&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#ffffff&quot;&gt;hidden&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;341&quot; x2=&quot;309.0&quot; y2=&quot;371&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-training-environments-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;376&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;412&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;03&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;413&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;The task&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;442&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;The source and a ticket that describes the&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;466&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;symptom. No failure recipe, no pointer to&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;490&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;the code.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;515&quot; x2=&quot;309.0&quot; y2=&quot;545&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-training-environments-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;550&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;586&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;04&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;587&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;The agent&amp;#x27;s fix&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;616&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Any change to the source. Only the code is&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;640&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;kept; the agent&amp;#x27;s own tests and claims are&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;664&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;ignored.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;689&quot; x2=&quot;309.0&quot; y2=&quot;719&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-training-environments-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;724&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;760&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;05&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;761&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Hidden grading&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;790&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Ten failure scenarios, each judged by what&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;814&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;the mail server received, not by what&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;838&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;listmonk says.&lt;/text&gt;
&lt;rect x=&quot;454&quot; y=&quot;740&quot; width=&quot;74&quot; height=&quot;28&quot; rx=&quot;14&quot; fill=&quot;#2347d6&quot;/&gt;
&lt;text x=&quot;491.0&quot; y=&quot;759&quot; text-anchor=&quot;middle&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#ffffff&quot;&gt;hidden&lt;/text&gt;
&lt;path d=&quot;M71 791.0 H40 V269.0 H69&quot; fill=&quot;none&quot; stroke=&quot;#2347d6&quot; stroke-width=&quot;2.4&quot; marker-end=&quot;url(#agent-training-environments-1-b)&quot;/&gt;
&lt;text transform=&quot;translate(26 530.0) rotate(-90)&quot; text-anchor=&quot;middle&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;fix holds: find the next failure&lt;/text&gt;
&lt;/svg&gt;&lt;/div&gt;&lt;figcaption&gt;One environment, end to end. The failure search and the grading are hidden from the agent. A fix that holds is the signal to search for the next failure in the same system.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;a-grader-that-checks-the-other-side&quot;&gt;A grader that checks the other side&lt;/h2&gt;
&lt;p&gt;Our grader never asks the system under test how it went. It counts what arrived on the other side: the partner&amp;#39;s webhook, the mail server. It reruns the agent&amp;#39;s code under failures the agent was never shown.&lt;/p&gt;
&lt;p&gt;Here is why that matters. On the first set, one task shows the agent a worker killed right after the partner accepted an order, so the partner gets it twice. A plausible wrong fix is to record the order as done before sending it. The duplicate disappears and the visible failure passes. Under two failures the agent never saw, that fix loses orders and records them as done.&lt;/p&gt;
&lt;figure class=&quot;fig fig--drawn&quot;&gt;&lt;div class=&quot;fig__draw&quot;&gt;&lt;svg class=&quot;fig__svg&quot; style=&quot;max-width:560px&quot; aria-label=&quot;A grid of two fixes against three failures. The wrong fix, which records the order and then sends it, delivers each order once in the ticket's failure, but under a kill before the partner accepts and under a partner 503 an order never arrives and is recorded as done. The reference fix delivers each order exactly once in all three.&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 560 452&quot; role=&quot;img&quot;&gt;
&lt;rect width=&quot;560&quot; height=&quot;452&quot; fill=&quot;#eae7df&quot;/&gt;
&lt;g font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot;&gt;
  &lt;text x=&quot;196&quot; y=&quot;40&quot; font-size=&quot;18&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Wrong fix&lt;/text&gt;
  &lt;text x=&quot;196&quot; y=&quot;64&quot; font-size=&quot;15&quot; fill=&quot;#5d5a53&quot;&gt;records, then sends&lt;/text&gt;
  &lt;text x=&quot;382&quot; y=&quot;40&quot; font-size=&quot;18&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Reference fix&lt;/text&gt;
  &lt;text x=&quot;382&quot; y=&quot;64&quot; font-size=&quot;15&quot; fill=&quot;#5d5a53&quot;&gt;records after accept&lt;/text&gt;

  &lt;text x=&quot;16&quot; y=&quot;122&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Killed after the&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;144&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;partner accepts&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;168&quot; font-size=&quot;13&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;THE TICKET&lt;/text&gt;

  &lt;text x=&quot;16&quot; y=&quot;236&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Killed before the&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;258&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;partner accepts&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;282&quot; font-size=&quot;13&quot; font-weight=&quot;600&quot; fill=&quot;#5d5a53&quot;&gt;HELD OUT&lt;/text&gt;

  &lt;text x=&quot;16&quot; y=&quot;350&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Partner&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;372&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;returns 503&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;396&quot; font-size=&quot;13&quot; font-weight=&quot;600&quot; fill=&quot;#5d5a53&quot;&gt;HELD OUT&lt;/text&gt;

  &lt;rect x=&quot;184&quot; y=&quot;88&quot; width=&quot;178&quot; height=&quot;104&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;200&quot; y=&quot;126&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;Each order arrives&lt;/text&gt;
  &lt;text x=&quot;200&quot; y=&quot;148&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;exactly once&lt;/text&gt;

  &lt;rect x=&quot;184&quot; y=&quot;202&quot; width=&quot;178&quot; height=&quot;104&quot; rx=&quot;6&quot; fill=&quot;#1c1b18&quot;/&gt;
  &lt;text x=&quot;200&quot; y=&quot;232&quot; font-size=&quot;16&quot; fill=&quot;#f6f4ef&quot;&gt;An order never&lt;/text&gt;
  &lt;text x=&quot;200&quot; y=&quot;254&quot; font-size=&quot;16&quot; fill=&quot;#f6f4ef&quot;&gt;arrives, and is&lt;/text&gt;
  &lt;text x=&quot;200&quot; y=&quot;276&quot; font-size=&quot;16&quot; fill=&quot;#f6f4ef&quot;&gt;recorded as done&lt;/text&gt;

  &lt;rect x=&quot;184&quot; y=&quot;316&quot; width=&quot;178&quot; height=&quot;104&quot; rx=&quot;6&quot; fill=&quot;#1c1b18&quot;/&gt;
  &lt;text x=&quot;200&quot; y=&quot;346&quot; font-size=&quot;16&quot; fill=&quot;#f6f4ef&quot;&gt;An order never&lt;/text&gt;
  &lt;text x=&quot;200&quot; y=&quot;368&quot; font-size=&quot;16&quot; fill=&quot;#f6f4ef&quot;&gt;arrives, and is&lt;/text&gt;
  &lt;text x=&quot;200&quot; y=&quot;390&quot; font-size=&quot;16&quot; fill=&quot;#f6f4ef&quot;&gt;recorded as done&lt;/text&gt;

  &lt;rect x=&quot;370&quot; y=&quot;88&quot; width=&quot;178&quot; height=&quot;104&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;386&quot; y=&quot;126&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;Each order arrives&lt;/text&gt;
  &lt;text x=&quot;386&quot; y=&quot;148&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;exactly once&lt;/text&gt;

  &lt;rect x=&quot;370&quot; y=&quot;202&quot; width=&quot;178&quot; height=&quot;104&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;386&quot; y=&quot;240&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;Each order arrives&lt;/text&gt;
  &lt;text x=&quot;386&quot; y=&quot;262&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;exactly once&lt;/text&gt;

  &lt;rect x=&quot;370&quot; y=&quot;316&quot; width=&quot;178&quot; height=&quot;104&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;386&quot; y=&quot;354&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;Each order arrives&lt;/text&gt;
  &lt;text x=&quot;386&quot; y=&quot;376&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;exactly once&lt;/text&gt;
&lt;/g&gt;
&lt;/svg&gt;&lt;/div&gt;&lt;figcaption&gt;Two fixes for the same ticket. The wrong one passes the failure the agent was shown, and loses orders under the ones it was not.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;why-build-from-real-systems&quot;&gt;Why build from real systems&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The failure is the task.&lt;/strong&gt; The environment does not need a hand-written bug. It needs a real system and a search that finds where it breaks. A system that holds today gets a longer search tomorrow.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Real complexity comes free.&lt;/strong&gt; A hundred thousand lines of Go, a database, a mail server and the timing between them are the parts that make a task hard, and nobody has to fake them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The check sits outside the agent.&lt;/strong&gt; What arrived, what was saved, what was lost. The agent cannot argue with it, and neither can a model trained against it.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;working-with-labs&quot;&gt;Working with labs&lt;/h2&gt;
&lt;p&gt;If your team trains or evaluates agents on backend work and wants environments that come with a failure nobody has seen and a grader that checks the outcome, &lt;a href=&quot;/environments/#partner&quot;&gt;talk to us&lt;/a&gt;.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A verdict on every change your coding agents ship</title>
    <link href="https://afterfault.com/blog/agent-written-changes-checked/" />
    <id>https://afterfault.com/blog/agent-written-changes-checked/</id>
    <published>2026-11-19T00:00:00Z</published>
    <updated>2026-11-19T00:00:00Z</updated>
    <author><name>Afterfault</name></author>
    <summary>Agents now write changes faster than anyone can review them, and review cannot see what a change does when a server dies halfway through. Afterfault runs each change in a copy of your real system under failures, before the pull request, and returns a verdict with the run behind it.</summary>
    <content type="html">&lt;p&gt;Writing code got cheap this year. A team with coding agents opens more pull requests in a week than it used to open in a month, and the agents are good: in our own test this week, Codex fixed a real crash-safety bug in a hundred-thousand-line Go codebase from a two-line ticket, in 13 minutes (&lt;a href=&quot;/blog/agent-training-environments/&quot;&gt;the write-up&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Checking did not get cheaper. Every change still waits for a person to read it and for CI to run it. And the failures that cause real outages are the ones neither of them is built to see.&lt;/p&gt;
&lt;h2 id=&quot;what-review-and-tests-cannot-see&quot;&gt;What review and tests cannot see&lt;/h2&gt;
&lt;p&gt;Tests run each step in order, on a healthy machine. Reviewers read the code as written. Production does neither. Processes are killed during deploys, networks drop for a second, a partner&amp;#39;s API returns 503 at the worst moment. The bug lives in the gap between two lines that each look correct.&lt;/p&gt;
&lt;p&gt;Here is one we built into a task this week, a small change that a reviewer would approve. A worker charges orders through a payment partner. On each retry it sends a fresh idempotency key, which reads like a reasonable choice in a diff.&lt;/p&gt;
&lt;figure class=&quot;fig fig--drawn&quot;&gt;&lt;div class=&quot;fig__draw&quot;&gt;&lt;svg class=&quot;fig__svg&quot; style=&quot;max-width:560px&quot; aria-label=&quot;A sequence between a worker and a payment partner. The worker sends charge order 3 with key A, and the partner charges the card. The worker is killed before it records the order as done. It restarts, finds order 3 still pending, and sends it again with key B. The partner treats the new key as a new order and charges the card again. The customer is charged twice, and every step returned success.&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 560 700&quot; role=&quot;img&quot;&gt;
&lt;rect width=&quot;560&quot; height=&quot;700&quot; fill=&quot;#eae7df&quot;/&gt;
&lt;defs&gt;
  &lt;marker id=&quot;agent-written-changes-checked-1-a&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#1c1b18&quot;/&gt;&lt;/marker&gt;
  &lt;marker id=&quot;agent-written-changes-checked-1-b&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#2347d6&quot;/&gt;&lt;/marker&gt;
&lt;/defs&gt;
&lt;g font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot;&gt;
  &lt;rect x=&quot;34&quot; y=&quot;24&quot; width=&quot;150&quot; height=&quot;50&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;109&quot; y=&quot;56&quot; text-anchor=&quot;middle&quot; font-size=&quot;19&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Worker&lt;/text&gt;
  &lt;rect x=&quot;376&quot; y=&quot;24&quot; width=&quot;150&quot; height=&quot;50&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;451&quot; y=&quot;56&quot; text-anchor=&quot;middle&quot; font-size=&quot;19&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Partner&lt;/text&gt;
  &lt;line x1=&quot;109&quot; y1=&quot;82&quot; x2=&quot;109&quot; y2=&quot;560&quot; stroke=&quot;#9c968a&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 6&quot;/&gt;
  &lt;line x1=&quot;451&quot; y1=&quot;82&quot; x2=&quot;451&quot; y2=&quot;560&quot; stroke=&quot;#9c968a&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 6&quot;/&gt;

  &lt;text x=&quot;280&quot; y=&quot;118&quot; text-anchor=&quot;middle&quot; font-size=&quot;17&quot; fill=&quot;#1c1b18&quot;&gt;charge order 3, key A&lt;/text&gt;
  &lt;line x1=&quot;115&quot; y1=&quot;132&quot; x2=&quot;443&quot; y2=&quot;132&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-written-changes-checked-1-a)&quot;/&gt;
  &lt;rect x=&quot;300&quot; y=&quot;150&quot; width=&quot;244&quot; height=&quot;68&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;318&quot; y=&quot;179&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;accepted:&lt;/text&gt;
  &lt;text x=&quot;318&quot; y=&quot;202&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;the card is charged&lt;/text&gt;

  &lt;g stroke=&quot;#2347d6&quot; stroke-width=&quot;3.5&quot; stroke-linecap=&quot;round&quot;&gt;&lt;line x1=&quot;98&quot; y1=&quot;246&quot; x2=&quot;120&quot; y2=&quot;268&quot;/&gt;&lt;line x1=&quot;120&quot; y1=&quot;246&quot; x2=&quot;98&quot; y2=&quot;268&quot;/&gt;&lt;/g&gt;
  &lt;text x=&quot;138&quot; y=&quot;255&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;killed&lt;/text&gt;
  &lt;text x=&quot;138&quot; y=&quot;278&quot; font-size=&quot;16&quot; fill=&quot;#5d5a53&quot;&gt;before it records order 3 as done&lt;/text&gt;

  &lt;rect x=&quot;16&quot; y=&quot;302&quot; width=&quot;300&quot; height=&quot;68&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;34&quot; y=&quot;331&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;restarts, finds order 3&lt;/text&gt;
  &lt;text x=&quot;34&quot; y=&quot;354&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;still pending&lt;/text&gt;

  &lt;text x=&quot;280&quot; y=&quot;408&quot; text-anchor=&quot;middle&quot; font-size=&quot;17&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;charge order 3, key B&lt;/text&gt;
  &lt;line x1=&quot;115&quot; y1=&quot;422&quot; x2=&quot;443&quot; y2=&quot;422&quot; stroke=&quot;#2347d6&quot; stroke-width=&quot;2.4&quot; marker-end=&quot;url(#agent-written-changes-checked-1-b)&quot;/&gt;
  &lt;rect x=&quot;280&quot; y=&quot;440&quot; width=&quot;264&quot; height=&quot;92&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
  &lt;text x=&quot;298&quot; y=&quot;469&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;a new key looks like&lt;/text&gt;
  &lt;text x=&quot;298&quot; y=&quot;492&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;a new order: the card&lt;/text&gt;
  &lt;text x=&quot;298&quot; y=&quot;515&quot; font-size=&quot;16&quot; fill=&quot;#1c1b18&quot;&gt;is charged again&lt;/text&gt;

  &lt;rect x=&quot;16&quot; y=&quot;584&quot; width=&quot;528&quot; height=&quot;96&quot; rx=&quot;6&quot; fill=&quot;#1c1b18&quot;/&gt;
  &lt;text x=&quot;280&quot; y=&quot;622&quot; text-anchor=&quot;middle&quot; font-size=&quot;20&quot; font-weight=&quot;600&quot; fill=&quot;#f6f4ef&quot;&gt;The customer is charged twice.&lt;/text&gt;
  &lt;text x=&quot;280&quot; y=&quot;652&quot; text-anchor=&quot;middle&quot; font-size=&quot;16&quot; fill=&quot;#c9c4b8&quot;&gt;Every step returned success.&lt;/text&gt;
&lt;/g&gt;
&lt;/svg&gt;&lt;/div&gt;&lt;figcaption&gt;A change that passes review and every test. The duplicate charge only appears when the worker dies in the gap between the partner accepting and the worker recording it.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Nothing in that sequence fails. Every call returns success, every log line is green. The only way to see it is to kill the worker at that moment and count what the partner received.&lt;/p&gt;
&lt;h2 id=&quot;check-it-before-the-pull-request&quot;&gt;Check it before the pull request&lt;/h2&gt;
&lt;p&gt;Afterfault gives the agent, or the engineer, a way to do exactly that before anyone else spends time on the change.&lt;/p&gt;
&lt;figure class=&quot;fig fig--drawn&quot;&gt;&lt;div class=&quot;fig__draw&quot;&gt;&lt;svg class=&quot;fig__svg&quot; style=&quot;max-width:560px&quot; aria-label=&quot;A loop in five steps: the agent writes a change; it calls Afterfault over MCP or the command line; a copy of the real system is built from the repository's compose files, manifests or start scripts; the change runs under crashes, pauses, cut connections and power loss, many times in different orders; and a verdict comes back with the run behind it. If the change breaks, the exact sequence goes back to the agent, which fixes it and runs again.&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 560 814&quot; role=&quot;img&quot;&gt;
&lt;rect width=&quot;560&quot; height=&quot;814&quot; fill=&quot;#eae7df&quot;/&gt;
&lt;defs&gt;&lt;marker id=&quot;agent-written-changes-checked-2-a&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#1c1b18&quot;/&gt;&lt;/marker&gt;&lt;marker id=&quot;agent-written-changes-checked-2-b&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#2347d6&quot;/&gt;&lt;/marker&gt;&lt;/defs&gt;
&lt;rect x=&quot;76&quot; y=&quot;28&quot; width=&quot;466&quot; height=&quot;110&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;64&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;01&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;65&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;The agent writes a change&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;94&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;In the editor or in a background task, as&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;118&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;it does today.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;143&quot; x2=&quot;309.0&quot; y2=&quot;173&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-written-changes-checked-2-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;178&quot; width=&quot;466&quot; height=&quot;110&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;214&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;02&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;215&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;It calls Afterfault&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;244&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Over MCP or the command line, before it&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;268&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;opens a pull request.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;293&quot; x2=&quot;309.0&quot; y2=&quot;323&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-written-changes-checked-2-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;328&quot; width=&quot;466&quot; height=&quot;110&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;364&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;03&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;365&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;A copy of the real system&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;394&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Built from the compose files, manifests or&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;418&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;start scripts the repository already has.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;443&quot; x2=&quot;309.0&quot; y2=&quot;473&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-written-changes-checked-2-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;478&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;514&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;04&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;515&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Runs under failure&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;544&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Crashes, pauses, cut connections and power&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;568&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;loss, many runs, each in a different&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;592&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;order.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;617&quot; x2=&quot;309.0&quot; y2=&quot;647&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#agent-written-changes-checked-2-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;652&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;688&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;05&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;689&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;A verdict, with the run behind it&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;718&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Holds: the pull request opens with its&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;742&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;runs attached. Breaks: the exact sequence&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;766&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;goes back to the agent.&lt;/text&gt;
&lt;path d=&quot;M71 719.0 H40 V83.0 H69&quot; fill=&quot;none&quot; stroke=&quot;#2347d6&quot; stroke-width=&quot;2.4&quot; marker-end=&quot;url(#agent-written-changes-checked-2-b)&quot;/&gt;
&lt;text transform=&quot;translate(26 401.0) rotate(-90)&quot; text-anchor=&quot;middle&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;breaks: fix it and run again&lt;/text&gt;
&lt;/svg&gt;&lt;/div&gt;&lt;figcaption&gt;The loop runs before the pull request. A change that reaches review has already been through the failures that matter for that system.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A copy of the system you actually run.&lt;/strong&gt; It is built from the files you already have: compose files, Kubernetes manifests, start scripts. Your real services, your real database, your real queue. No code changes, no mocks of your own code.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Failures on purpose, in many orders.&lt;/strong&gt; Crashes, pauses, network partitions and power loss, hundreds of times, each run in a different order, because the order is where the bug is.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A verdict from outside the change.&lt;/strong&gt; The check looks at what happened: what the partner received, what the database holds. It never asks the code whether it worked, and the agent that wrote the change does not get to mark its own work.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The run behind every red.&lt;/strong&gt; A failure comes back as the exact sequence of events that caused it, cut down to the few faults it needs, and the agent can replay it until the fix holds.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For an agent, it is one more tool:&lt;/p&gt;
&lt;figure class=&quot;fig fig--code&quot;&gt;&lt;figcaption&gt;bash&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;claude mcp add afterfault -- afterfault mcp
afterfault env infer      # build the environment from the repository's own files
afterfault explore        # run the change through failures, many orders
afterfault replay         # rerun a kept run exactly&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;h2 id=&quot;found-on-real-software&quot;&gt;Found on real software&lt;/h2&gt;
&lt;p&gt;We gave an agent one question about listmonk, an open-source newsletter server: if it restarts while it is sending a campaign, does every subscriber still get the email? It had only listmonk&amp;#39;s source and our public documentation.&lt;/p&gt;
&lt;div class=&quot;fig stats&quot; style=&quot;--n: 3&quot;&gt;&lt;div class=&quot;stat&quot;&gt;&lt;p class=&quot;stat__v&quot;&gt;&lt;span data-count&gt;7 min&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;stat__k&quot;&gt;from an unfamiliar codebase to a first meaningful run&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;stat&quot;&gt;&lt;p class=&quot;stat__v&quot;&gt;&lt;span data-count&gt;170&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;stat__k&quot;&gt;runs, each with a different schedule of faults&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;stat&quot;&gt;&lt;p class=&quot;stat__v&quot;&gt;&lt;span data-count&gt;24 of 40&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;stat__k&quot;&gt;subscribers never got the email in the run that was kept, while listmonk said finished&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The &lt;a href=&quot;/research/listmonk-restart-lost-sends/&quot;&gt;full write-up&lt;/a&gt; has the run step by step. The status said finished. The mail server said otherwise, and the check believed the mail server.&lt;/p&gt;
&lt;blockquote class=&quot;pull&quot;&gt;&lt;p&gt;A status field reports what the sender believes. A verdict counts what arrived.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;every-red-becomes-a-test&quot;&gt;Every red becomes a test&lt;/h2&gt;
&lt;p&gt;A run that broke something is kept. It replays against every later change to the same system, so the next agent that touches the worker gets checked against the crash that caught the last one. Over time the kept runs become a record of every way your system has been shown to fail, run on every change, without anyone writing them by hand.&lt;/p&gt;
&lt;p&gt;That is the part that changes how a team works with agents. Review stops being the only gate. A person reads a change that has already survived the failures that matter for that system, with the runs attached, and spends their attention on what the change is for.&lt;/p&gt;
&lt;h2 id=&quot;bring-one-service&quot;&gt;Bring one service&lt;/h2&gt;
&lt;p&gt;If your coding agents open pull requests against services with queues, databases or background workers, &lt;a href=&quot;/#access&quot;&gt;bring one service&lt;/a&gt; and we will run its next change.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Check what your infrastructure promises before you build on it</title>
    <link href="https://afterfault.com/blog/infrastructure-promises-checked/" />
    <id>https://afterfault.com/blog/infrastructure-promises-checked/</id>
    <published>2026-11-19T00:00:00Z</published>
    <updated>2026-11-19T00:00:00Z</updated>
    <author><name>Afterfault</name></author>
    <summary>Every database and queue promises something about your data, and whether it keeps that promise depends on your settings and on failures that hit every node at once. Afterfault runs your configuration through those failures and counts what survived.</summary>
    <content type="html">&lt;p&gt;Every system you build on makes a promise. A database says a committed transaction is durable. A queue says an acknowledged message will be delivered. A cache says a write is visible to the next read. Your own code is written on top of those promises, usually without anyone checking what they mean in your configuration.&lt;/p&gt;
&lt;p&gt;They often mean less than they sound. &amp;quot;Acknowledged&amp;quot; can mean written to disk on three machines, or held in memory on one. The documentation is usually accurate. The default is usually the fast option. And the difference only shows up during the kind of failure a staging environment never sees.&lt;/p&gt;
&lt;h2 id=&quot;a-known-issue-used-as-a-test&quot;&gt;A known issue, used as a test&lt;/h2&gt;
&lt;p&gt;In December 2025, Jepsen published an &lt;a href=&quot;https://jepsen.io/analyses/nats-2.12.1&quot;&gt;analysis of NATS 2.12.1&lt;/a&gt; showing that JetStream, with its default settings, can lose writes it has already acknowledged. By default it acknowledges a write straight away and flushes to disk every two minutes. If the nodes lose power together inside that window, acknowledged writes are gone.&lt;/p&gt;
&lt;p&gt;We used that as a test of our own engine. A tool that compares two configurations should be able to show a difference that is already known; if it cannot, its answer on an unknown one is not worth much. So we ran the same three-node cluster, the same workload and the same mix of faults a hundred times with the default, and a hundred times with one setting changed.&lt;/p&gt;
&lt;figure class=&quot;fig bars&quot;&gt;&lt;p class=&quot;fig__title&quot;&gt;NATS JetStream 2.12.1: runs that lost writes the cluster had acknowledged&lt;/p&gt;&lt;div class=&quot;bars__rows&quot;&gt;&lt;div class=&quot;bar is-hi&quot; style=&quot;--v: 0.3100&quot;&gt;&lt;span class=&quot;bar__k&quot;&gt;Default settings&lt;/span&gt;&lt;span class=&quot;bar__track&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;bar__v&quot;&gt;&lt;span data-count&gt;31&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;bar&quot; style=&quot;--v: 0.0000&quot;&gt;&lt;span class=&quot;bar__k&quot;&gt;sync_interval: always&lt;/span&gt;&lt;span class=&quot;bar__track&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;bar__v&quot;&gt;&lt;span data-count&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;figcaption class=&quot;fig__note&quot;&gt;100 runs for each setting, under the same mix of power losses, crashes, kills, pauses, partitions and disk corruption.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;After the hundred runs, the engine cut a failing schedule down to the one fault it needs: a power loss on every node at the same moment. Replayed five times against the default, it lost writes five times. With &lt;code&gt;sync_interval: always&lt;/code&gt;, it lost none. The &lt;a href=&quot;/research/nats-jetstream-acknowledged-writes/&quot;&gt;full write-up&lt;/a&gt; has every count.&lt;/p&gt;
&lt;figure class=&quot;fig fig--drawn&quot;&gt;&lt;div class=&quot;fig__draw&quot;&gt;&lt;svg class=&quot;fig__svg&quot; style=&quot;max-width:560px&quot; aria-label=&quot;Two timelines of the same cluster. With the default, writes are acknowledged at once and flushed every two minutes; a power loss on every node between flushes loses writes that were acknowledged but still only in memory. With sync_interval: always, each write is on disk before it is acknowledged, and the same power loss loses nothing.&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 560 560&quot; role=&quot;img&quot;&gt;
&lt;rect width=&quot;560&quot; height=&quot;560&quot; fill=&quot;#eae7df&quot;/&gt;
&lt;g font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot;&gt;
  &lt;text x=&quot;16&quot; y=&quot;38&quot; font-size=&quot;19&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Default&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;62&quot; font-size=&quot;16&quot; fill=&quot;#5d5a53&quot;&gt;acknowledged at once,&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;84&quot; font-size=&quot;16&quot; fill=&quot;#5d5a53&quot;&gt;written to disk every two minutes&lt;/text&gt;

  &lt;rect x=&quot;58&quot; y=&quot;108&quot; width=&quot;296&quot; height=&quot;84&quot; rx=&quot;4&quot; fill=&quot;#d9d4c8&quot;/&gt;
  &lt;line x1=&quot;16&quot; y1=&quot;150&quot; x2=&quot;544&quot; y2=&quot;150&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot;/&gt;
  &lt;rect x=&quot;52&quot; y=&quot;116&quot; width=&quot;10&quot; height=&quot;68&quot; fill=&quot;#1c1b18&quot;/&gt;
  &lt;rect x=&quot;512&quot; y=&quot;116&quot; width=&quot;10&quot; height=&quot;68&quot; fill=&quot;#9c968a&quot;/&gt;
  &lt;g fill=&quot;#1c1b18&quot;&gt;
    &lt;circle cx=&quot;94&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;130&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;166&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;202&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;
    &lt;circle cx=&quot;238&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;274&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;310&quot; cy=&quot;150&quot; r=&quot;6.5&quot;/&gt;
  &lt;/g&gt;
  &lt;line x1=&quot;360&quot; y1=&quot;98&quot; x2=&quot;360&quot; y2=&quot;202&quot; stroke=&quot;#2347d6&quot; stroke-width=&quot;4&quot;/&gt;
  &lt;text x=&quot;57&quot; y=&quot;218&quot; text-anchor=&quot;middle&quot; font-size=&quot;14&quot; fill=&quot;#1c1b18&quot;&gt;flush&lt;/text&gt;
  &lt;text x=&quot;517&quot; y=&quot;218&quot; text-anchor=&quot;middle&quot; font-size=&quot;14&quot; fill=&quot;#9c968a&quot;&gt;next flush&lt;/text&gt;
  &lt;text x=&quot;372&quot; y=&quot;122&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;power loss,&lt;/text&gt;
  &lt;text x=&quot;372&quot; y=&quot;141&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;every node&lt;/text&gt;
  &lt;text x=&quot;58&quot; y=&quot;246&quot; font-size=&quot;15&quot; fill=&quot;#5d5a53&quot;&gt;acknowledged, still only in memory:&lt;/text&gt;
  &lt;text x=&quot;58&quot; y=&quot;266&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;gone after the power loss&lt;/text&gt;

  &lt;line x1=&quot;16&quot; y1=&quot;300&quot; x2=&quot;544&quot; y2=&quot;300&quot; stroke=&quot;#c9c4b8&quot; stroke-width=&quot;1&quot;/&gt;

  &lt;text x=&quot;16&quot; y=&quot;342&quot; font-size=&quot;19&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;sync_interval: always&lt;/text&gt;
  &lt;text x=&quot;16&quot; y=&quot;366&quot; font-size=&quot;16&quot; fill=&quot;#5d5a53&quot;&gt;on disk before each write is acknowledged&lt;/text&gt;

  &lt;line x1=&quot;16&quot; y1=&quot;442&quot; x2=&quot;544&quot; y2=&quot;442&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot;/&gt;
  &lt;g fill=&quot;#1c1b18&quot;&gt;
    &lt;circle cx=&quot;94&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;130&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;166&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;202&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;
    &lt;circle cx=&quot;238&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;274&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;&lt;circle cx=&quot;310&quot; cy=&quot;442&quot; r=&quot;6.5&quot;/&gt;
    &lt;rect x=&quot;91&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;&lt;rect x=&quot;127&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;&lt;rect x=&quot;163&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;&lt;rect x=&quot;199&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;
    &lt;rect x=&quot;235&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;&lt;rect x=&quot;271&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;&lt;rect x=&quot;307&quot; y=&quot;414&quot; width=&quot;6&quot; height=&quot;16&quot;/&gt;
  &lt;/g&gt;
  &lt;line x1=&quot;360&quot; y1=&quot;390&quot; x2=&quot;360&quot; y2=&quot;494&quot; stroke=&quot;#2347d6&quot; stroke-width=&quot;4&quot;/&gt;
  &lt;text x=&quot;372&quot; y=&quot;414&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;power loss,&lt;/text&gt;
  &lt;text x=&quot;372&quot; y=&quot;433&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;every node&lt;/text&gt;
  &lt;text x=&quot;58&quot; y=&quot;520&quot; font-size=&quot;15&quot; fill=&quot;#5d5a53&quot;&gt;each mark: written to disk, then acknowledged&lt;/text&gt;
  &lt;text x=&quot;58&quot; y=&quot;540&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;nothing acknowledged is lost&lt;/text&gt;
&lt;/g&gt;
&lt;/svg&gt;&lt;/div&gt;&lt;figcaption&gt;The mechanism, drawn. The number of writes is illustrative; the counts in the chart above are measured.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The fix is one line of configuration, and it is not free: the NATS documentation, quoted in Jepsen&amp;#39;s report, warns that it can slow a server to a few hundred messages a second. We did not measure throughput, so we have no number of our own for the cost. That is exactly the kind of trade a team should make on purpose, with both numbers in front of it.&lt;/p&gt;
&lt;blockquote class=&quot;pull&quot;&gt;&lt;p&gt;Changing a durability setting and watching for trouble tells you very little. Running both settings through the same faults and counting gives you a number you can show someone.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;what-this-unlocks&quot;&gt;What this unlocks&lt;/h2&gt;
&lt;p&gt;Jepsen&amp;#39;s work shows how much careful fault testing finds, and how much expertise each analysis takes. Most teams will never commission one for the exact versions and settings they run. An engine that agents can drive changes who gets to ask the question.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Before you adopt a database or a queue.&lt;/strong&gt; Run your workload against it under the failures your environment actually has, and read what &amp;quot;acknowledged&amp;quot; and &amp;quot;committed&amp;quot; mean in practice, for your settings.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Before you change a setting.&lt;/strong&gt; Compare the old and the new configuration under the same faults, and get a count instead of a hunch. The same goes for a version upgrade.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;When a vendor makes a claim.&lt;/strong&gt; Durability, exactly-once delivery, failover with no data loss: each one is a statement about outcomes under failure, and each one can be counted.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;After an incident.&lt;/strong&gt; Give the engine the timeline, the logs or the postmortem, and it searches for the fault pattern that reproduces it. That run is kept and replayed against every later change.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The environment is built from the files you already run: compose files, Kubernetes manifests, start scripts. The check looks at the outcome, every acknowledged write accounted for, not at what the system reports about itself.&lt;/p&gt;
&lt;h2 id=&quot;test-the-failure-that-hits-everything-at-once&quot;&gt;Test the failure that hits everything at once&lt;/h2&gt;
&lt;p&gt;One lesson from the NATS runs is worth repeating on its own. Killing one process at a time rarely loses data in a replicated system; replication is built for exactly that. Losing power on every node at once is the case replication does not cover, and it is the one most fault tests leave out. Whatever you test, include it.&lt;/p&gt;
&lt;h2 id=&quot;bring-the-system&quot;&gt;Bring the system&lt;/h2&gt;
&lt;p&gt;If you depend on a database, queue or stream processor and want to know what it promises in your configuration, &lt;a href=&quot;/#access&quot;&gt;bring the system&lt;/a&gt; and the claim you need to trust.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A lab for research agents, where every result is re-run and checked</title>
    <link href="https://afterfault.com/blog/research-agents-lab/" />
    <id>https://afterfault.com/blog/research-agents-lab/</id>
    <published>2026-11-19T00:00:00Z</published>
    <updated>2026-11-19T00:00:00Z</updated>
    <author><name>Afterfault</name></author>
    <summary>Agents now set up research code, run experiments for days and report what they found. Whether a result holds depends on things the agent says about its own work. Afterfault is building the lab around them: environments proven to run, runs that survive, and results checked from outside the agent.</summary>
    <content type="html">&lt;p&gt;Coding agents have started doing research work. They clone a paper&amp;#39;s repository, set up its environment, launch training runs, watch them, read the results and choose the next experiment. Teams run many of them at once, overnight and over weekends.&lt;/p&gt;
&lt;p&gt;The hard part is not getting an agent to do this. It is knowing which of its results are real.&lt;/p&gt;
&lt;h2 id=&quot;the-environment-is-the-first-thing-that-breaks&quot;&gt;The environment is the first thing that breaks&lt;/h2&gt;
&lt;p&gt;A research repository is a fragile thing: pinned CUDA versions, compiled extensions, a dependency that only works with one version of another. A March 2026 benchmark, &lt;a href=&quot;https://arxiv.org/abs/2603.06739&quot;&gt;ResearchEnvBench&lt;/a&gt;, asked agents to set up 44 recent research repositories and actually run them.&lt;/p&gt;
&lt;figure class=&quot;fig bars&quot;&gt;&lt;p class=&quot;fig__title&quot;&gt;ResearchEnvBench: best agent&amp;#39;s success at running the research code&lt;/p&gt;&lt;div class=&quot;bars__rows&quot;&gt;&lt;div class=&quot;bar&quot; style=&quot;--v: 0.4880&quot;&gt;&lt;span class=&quot;bar__k&quot;&gt;Runs on one GPU (%)&lt;/span&gt;&lt;span class=&quot;bar__track&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;bar__v&quot;&gt;&lt;span data-count&gt;48.8&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;bar is-hi&quot; style=&quot;--v: 0.3750&quot;&gt;&lt;span class=&quot;bar__k&quot;&gt;Runs on several GPUs (%)&lt;/span&gt;&lt;span class=&quot;bar__track&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;bar__v&quot;&gt;&lt;span data-count&gt;37.5&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;figcaption class=&quot;fig__note&quot;&gt;The best result of the agents tested in March 2026, for each stage. One GPU: 21 of 43 repositories. Several GPUs with distributed training: 12 of 32.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The more telling finding is how agents failed. The authors write that agents &amp;quot;often infer readiness from clean installation logs rather than verified execution&amp;quot;, and count cases where an agent claimed the GPU was available, or distributed training would work, without running the test that would show it.&lt;/p&gt;
&lt;blockquote class=&quot;pull&quot;&gt;&lt;p&gt;An agent that says &amp;quot;it runs&amp;quot; is a server that says &amp;quot;finished&amp;quot;. Both are reports, not outcomes.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We have seen the same pattern in a different place. When we restarted listmonk, an open-source newsletter server, in the middle of a campaign, its status said finished while 24 of 40 subscribers never got the email (&lt;a href=&quot;/research/listmonk-restart-lost-sends/&quot;&gt;the write-up&lt;/a&gt;). Software and agents both report what they believe happened. Only a check from outside tells you what did.&lt;/p&gt;
&lt;h2 id=&quot;what-goes-wrong-after-setup&quot;&gt;What goes wrong after setup&lt;/h2&gt;
&lt;p&gt;Once an experiment is running, the failures are quieter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A run dies and nobody notices.&lt;/strong&gt; A job hangs on a dead node, a log stops moving, and a frozen run is read as one that is still working.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A crash is counted as a result.&lt;/strong&gt; The evaluation script exits early, writes a partial file, and the number in it looks like any other number.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A gain is noise.&lt;/strong&gt; One seed improved by a point. Five seeds would have shown the spread was larger than the gain.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nobody can say what was tried.&lt;/strong&gt; After a week of agent runs there are hundreds of branches and no record of which change produced which result, or why the agent tried it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each one is ordinary on its own. Together they mean a person has to re-run the agent&amp;#39;s best results by hand before trusting them, and that is the slow step agents were supposed to remove.&lt;/p&gt;
&lt;h2 id=&quot;the-lab-around-the-agent&quot;&gt;The lab around the agent&lt;/h2&gt;
&lt;p&gt;Afterfault&amp;#39;s engine already does three things for software systems: it rebuilds a real system from its own files, it breaks it on purpose, and it checks the outcome from outside. Pointed at research code, those become the parts of a lab.&lt;/p&gt;
&lt;figure class=&quot;fig fig--drawn&quot;&gt;&lt;div class=&quot;fig__draw&quot;&gt;&lt;svg class=&quot;fig__svg&quot; style=&quot;max-width:560px&quot; aria-label=&quot;A research loop in five steps, each with the check added to it: set up the environment, proven by running the real entrypoint on the GPUs it needs; run for hours or days, with every run checkpointed so it can be forked or resumed; watch the runs, catching stalls, silent deaths and frozen logs; check the result by re-running it across seeds and looking for a crashed run counted as a pass or a leaked evaluation; and record what was tried, written from outside the agent. The record feeds the next experiment.&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 560 862&quot; role=&quot;img&quot;&gt;
&lt;rect width=&quot;560&quot; height=&quot;862&quot; fill=&quot;#eae7df&quot;/&gt;
&lt;defs&gt;&lt;marker id=&quot;research-agents-lab-1-a&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#1c1b18&quot;/&gt;&lt;/marker&gt;&lt;marker id=&quot;research-agents-lab-1-b&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;7&quot; markerHeight=&quot;7&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;#2347d6&quot;/&gt;&lt;/marker&gt;&lt;/defs&gt;
&lt;rect x=&quot;76&quot; y=&quot;28&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;64&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;01&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;65&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Set up the environment&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;94&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Proven by running the real entrypoint on&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;118&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;the GPUs it needs, not by a clean install&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;142&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;log.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;167&quot; x2=&quot;309.0&quot; y2=&quot;197&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#research-agents-lab-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;202&quot; width=&quot;466&quot; height=&quot;110&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;238&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;02&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;239&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Run for hours or days&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;268&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Every run checkpointed, so it can be&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;292&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;forked or resumed after a crash.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;317&quot; x2=&quot;309.0&quot; y2=&quot;347&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#research-agents-lab-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;352&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;388&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;03&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;389&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Watch the runs&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;418&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Stalls, silent deaths and frozen logs are&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;442&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;caught and handed to a person with the&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;466&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;exact state.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;491&quot; x2=&quot;309.0&quot; y2=&quot;521&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#research-agents-lab-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;526&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;562&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;04&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;563&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Check the result&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;592&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Re-run across seeds, and checked for a&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;616&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;crashed run counted as a pass or a leaked&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;640&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;evaluation.&lt;/text&gt;
&lt;line x1=&quot;309.0&quot; y1=&quot;665&quot; x2=&quot;309.0&quot; y2=&quot;695&quot; stroke=&quot;#1c1b18&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#research-agents-lab-1-a)&quot;/&gt;
&lt;rect x=&quot;76&quot; y=&quot;700&quot; width=&quot;466&quot; height=&quot;134&quot; rx=&quot;6&quot; fill=&quot;#f6f4ef&quot;/&gt;
&lt;text x=&quot;96&quot; y=&quot;736&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;14&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;05&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;737&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;21&quot; font-weight=&quot;600&quot; fill=&quot;#1c1b18&quot;&gt;Record what was tried&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;766&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;Code, config, data, seeds, cost, result&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;790&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;and the agent&amp;#x27;s reason, written from&lt;/text&gt;
&lt;text x=&quot;126&quot; y=&quot;814&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;17&quot; fill=&quot;#5d5a53&quot;&gt;outside the agent.&lt;/text&gt;
&lt;path d=&quot;M71 767.0 H40 V95.0 H69&quot; fill=&quot;none&quot; stroke=&quot;#2347d6&quot; stroke-width=&quot;2.4&quot; marker-end=&quot;url(#research-agents-lab-1-b)&quot;/&gt;
&lt;text transform=&quot;translate(26 431.0) rotate(-90)&quot; text-anchor=&quot;middle&quot; font-family=&quot;'Helvetica Neue', Helvetica, Arial, sans-serif&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;#2347d6&quot;&gt;the next experiment starts here&lt;/text&gt;
&lt;/svg&gt;&lt;/div&gt;&lt;figcaption&gt;The agent does the research. Each step gets a check the agent does not run on itself.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The bench.&lt;/strong&gt; Point it at a repository and its data, and get back an environment proven to run: the real entrypoint, on one GPU and then several, with the run as proof. Not an install log.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Runs that survive.&lt;/strong&gt; Every run checkpointed, so a crash or a preempted machine costs minutes, not a day, and an interesting run can be forked.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A watcher.&lt;/strong&gt; Stalls and silent failures are caught while they happen, restarted when that is safe, and handed to a person with the exact state when it is not.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A verdict on each result.&lt;/strong&gt; The run behind a result is re-run in a recorded sandbox, across seeds, and checked for the usual ways it goes wrong.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A notebook nobody has to keep.&lt;/strong&gt; Code, config, data version, hardware, seeds, cost, result and the agent&amp;#39;s reason for trying it, recorded from outside the agent. The next agent reads it before choosing what to try.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The lab works with the agent a team already uses, Claude Code, Codex or their own, and runs on their compute or any cloud. We do not want to be the agent or the GPUs. We want to be the place where an agent&amp;#39;s work can be trusted.&lt;/p&gt;
&lt;h2 id=&quot;why-the-check-has-to-sit-outside&quot;&gt;Why the check has to sit outside&lt;/h2&gt;
&lt;p&gt;An agent asked to verify its own result tends to verify that its result is what it reported. That is not dishonesty; it is the same blind spot as a status field written by the process that might have died. The verdict has to come from something that re-runs the work and looks at the outcome directly, the way our checks count what a mail server received instead of asking the sender.&lt;/p&gt;
&lt;h2 id=&quot;send-us-a-result&quot;&gt;Send us a result&lt;/h2&gt;
&lt;p&gt;If your agents run experiments today, on any compute, &lt;a href=&quot;/environments/#partner&quot;&gt;send us one result you are not sure about&lt;/a&gt;. We will re-run it and tell you whether it holds.&lt;/p&gt;
</content>
  </entry>
</feed>
