London DataTrading systems technology

AI engineeringWhat goes wrong

When agents
go wrong.

AI agents can be wrong fluently, quietly and at speed. Here are eight ways it went wrong while building Nexus, and what now catches each one.

Here an incident is any time the system's account of itself was wrong, not only a crash. The definition was chosen because the first entries on the register were systems reporting health they did not have. Each failure below comes with what it looked like, a dated example, what catches it now and the question I would ask of your own team.

01Eight ways it goes wrong

Most of them raised no error at all.

They were plausible answers, green ticks and clean states that turned out to be wrong. That is what makes them dangerous at agent speed: by the time anyone looks, the next change may already be built on top.

01 · Claims

Confident, and wrong

An agent names a cause that fits the evidence in hand. The cause goes into a commit message or a status note, and the next change is built on it.

ExampleIn one session on 11–12 August 2026, eight causal claims were made and then refuted, each by a check that took minutes. The same month, a nightly alarm was stood down for days on a reassuring explanation. Measured, the explanation was 4 to 100 times too small, and the alarm had been right all along.

How it is caughtA cause stays a hypothesis until something was changed and the effect moved. A claim is written together with the test that would refute it, the cheapest telling check runs first, and the explanation must reproduce the size of the effect as well as its direction. A reassuring explanation gets the same test as an alarming one.

The question for your firmWhen an agent explains a failure, who tests the explanation before it is written down?

02 · Checks

A check that cannot fail

The code is written, reviewed, merged and deployed. It reports success, and it has never once been in a position to report anything else.

ExampleAmong the shapes recorded in August 2026 was a gate that answered "not applicable" for every case but one, where "not applicable" counted as a pass. In September, 11 tests passed on a mode that could not read any data, because the tests supplied an input that the real command never does.

How it is caughtA control counts only once it has been seen to go red. The standard asks each one for a case where it must refuse, a case where it must pass, so that a block cannot pass vacuously, and a run with the code deliberately broken to prove that it notices.

The question for your firmIf you deleted one of your critical checks today, which test would fail?

03 · Safeguards

A safeguard that stops, silently

A protective control stops working and nothing says so. A service that fails loudly announces itself. The thing that watches it can fail without a sound.

ExampleThe incident policy cites a backup slot that was disabled for weeks and an alert path that could not deliver. At the review of 17 August 2026, none of 113 system units had a failure handler.

How it is caughtSeverity is graded by the control that failed, so a silent safeguard outranks a loud outage. By 25 August every system unit in use had one (the check read 104 of 104), and a sweep repeats the alert while anything stays failed. Fast checks run every 15 minutes on the machinery of change and open an incident themselves when one fires.

The question for your firmWhich of your safeguards would you notice stopping, and how soon?

04 · Readings

A default read as a measurement

A failed read returns something plausible: a zero, an empty list, no rows. Further down the line it looks exactly like a real zero.

ExampleOn 20 July 2026 a failed count was read as "empty", which started a large backfill and caused an outage. In September, four figures reported as 0.00% turned out never to have been computed.

How it is caughtThe summary of open incidents never prints zero when it cannot read the register: it says UNAVAILABLE, and why. An error inside a "should I do the expensive thing?" check defaults to no. An empty read is not evidence, because a reader without permission can get an empty answer that looks like success.

The question for your firmWhat does your dashboard show when the query behind it fails?

05 · Coordination

Two agents, one piece of work

Two agents change the same thing, or one agent's work lands inside another's. Each sees a clean result, and one change is lost or shipped by accident.

ExampleOn 27 August 2026, two agents editing one shared note minutes apart came within a lucky append of losing an edit, with no error from either. A lesson recorded in September: in a shared checkout, one agent's commit can sweep up another's unfinished edit, after which the second agent sees a clean state.

How it is caughtEach item has exactly one owner at a time, and, since that lesson, each is worked in its own copy of the code. Agents stage only their own changes. A stale starting point shows up as deletions of files nobody touched, which a check on the change's footprint catches.

The question for your firmIf two agents pick up the same file tonight, which change survives?

06 · Instructions

Prose that drifts

A number or a rule is written down in several places, and the copies diverge. Each agent acts on whichever copy it read first.

ExampleFour documents once stated the size of the agent fleet and gave four different numbers. On 27 August 2026, two agents read one section of the rules, whose heading contradicted its own table, and drew opposite conclusions. Both were wrong.

How it is caughtThe aim is that a count is not restated in prose: the document points at the source, or a guard compares the two. The remedy for a rule that matters is to enforce it in code, at the point every path crosses, rather than in a guide.

The question for your firmWhere is the one place your agents read each rule from, and does anything enforce it?

07 · Releases

"Done" that is not done

A change is merged, and everyone treats it as live. Between the merge and the change running there are three more steps, and each one can fail on its own.

ExampleOn 25 August 2026, for about two hours, the deploy record, the installed files and the database schema disagreed about which version was live, and scheduled jobs ran code the long-running service never did.

How it is caughtMerged, deployed, installed and running are four claims, and each needs its own evidence. The merge must be in the deployed commit, the installed files must match the merged source, and the service must have started after the deploy, or the job must have written the rows it should. A merged change is not a finished task.

The question for your firmFor your last release, can you show all four?

08 · Diagnosis

Diagnosing from a snapshot

During an outage, several agents look at the same system at the same moment. Each names a culprit from what it sees then: the last line of a log, or a process that looks stuck.

ExampleOn 25 August 2026, four agent sessions made five wrong calls in one 33-minute outage.

How it is caughtA snapshot is not a steady state. Sample twice, a few seconds apart, before calling anything hung. Find which process owns a symptom before naming it the cause. Count the causes that were logged rather than assume the one you were last thinking about.

The question for your firmDuring your next incident, who decides which diagnosis gets acted on?

02The record

One record per occurrence, and one per kind of error.

A fix for one occurrence leaves the next one to be found the same way, by accident. So every incident is tied to the kind of error behind it, and the fix that counts is the one that removes that kind.

Incident · one occurrence

What happened, and what the system said

When it started, when and how it was detected, when it was resolved, and how it was contained. One field records the account the system gave of itself at the time, because that account is what was wrong.

Kind of error · the pattern

The pattern, wherever it shows up

It is written with no provider or market in it, so the fix targets the kind and not only the place where it first appeared. A kind cannot be recorded without naming what would catch its next occurrence.

SeverityMeaningExamples from the policy
S1Money at risk, or a control that would stop money being at risk is not working.None recorded as of the policy's 17 October revision.
S2A protective control is not working, and nothing says so.A backup slot that was disabled for weeks. An alert path that could not deliver.
S3Detection or diagnosis is degraded; the fault itself is contained.A failed service that reported only "stopped". A check already so red that it could not show things getting worse.
S4Latent: found by inspection before it could act.An install pattern that would have skipped a new service.

What would have caught this earlier?

Build that, not only the fix. No incident is marked reviewed until this question has an answer.

Could the check that should have caught it have failed silently?

If so, it needs a case that proves it can go red. A check that cannot fire looks exactly like one that is passing.

Closed on finished work, not on a promise

A kind of error closes only when its fix and its detector are both finished tasks. A merged change, or a note saying "done", does not count, and there is no override.

03From detection to resolution

Code moves each incident one step. Agents do the thinking.

Detection was never the hard part: the checks found problems, and nothing acted on what they found. Overwatch is the loop that acts. A job on a timer moves every open incident one step by rule, the agents diagnose, build and review the fixes through the ordinary work board, and the operator is asked only when a step needs a decision that nobody has delegated.

As designed. The loop is being built in phases, each one report-only first. The table below says which parts run today.

  1. Code

    Detect

    Fast checks open an incident themselves. A repeat becomes a note on the open incident, not a second one.

  2. Agent

    Classify

    Triage ties the incident to its kind of error and names the detector that kind needs.

  3. Code

    Route

    By rule, from one reviewed playbook per kind: close it, apply a mechanical fix, create a work item, or ask.

  4. Agent

    Fix

    An agent builds the fix as an ordinary work item, and a different agent reviews it.

  5. Code

    Verify

    It watches the signal stay quiet for a set window. A problem that comes back reopens the same incident.

  6. Operator

    Decide

    Only when no one has delegated the step. A fix that keeps failing stops the automation for that kind, and the operator is asked.

PhaseWhat landsState, 18 November 2026
0Truth and drain: a one-off sweep of the stale backlog, alerts that close on recovery, and the closer, report-only.Done
1The responder in shadow: it reports what it would create and close, and writes nothing else.Done
2Live for low-risk work: creating, closing, fixes for whole kinds of error, and investigations.Under way Closing live since 17 November
3Triage of failed CI runs.Planned
4–6Standing decisions as records, a decision queue on the console, and deploys and recovery.Planned

Every automatic action starts report-only

Each one first reports what it would have done, and goes live only on the operator's approval, with limits and an off switch. As designed.

Work on kinds, not on incidents

A kind of error that keeps recurring gets one strategic fix, not one fix per occurrence. Each kind's playbook entry changes only through a reviewed change. As designed.

The machinery of change fails too

Most incidents concern the task system itself, which the loop also relies on to build its fixes. So while the work board's own gauges are out of bounds, fixes to it go first and other new work is capped.

04Stated plainly

What the record cannot show yet.

Handling with money at risk

None of the incidents on these pages put money at risk, so they cannot yet show how incidents are handled under the condition that matters most.

Measured detection times

The first nine entries were reconstructed afterwards, and their detection times are estimates. At least one went undetected for weeks.

Independent review

One person detected, diagnosed, fixed and recorded each of those nine. A later entry was reviewed by an agent from a different vendor, which asked for factual corrections.

Cover, and the loop's own results

Escalation is one person, with no out-of-hours cover, so automatic responses to a trading fault stop activity and hold positions. None of Overwatch's targets is measured by code yet.

Are your agents' failures getting caught?

Ask these eight questions of your own team, alongside the ten success factors.

Work with me