London DataTrading systems technology

Nexus engineering · Deep dives

Overwatch.
From detection to resolution.

Nexus already detects its own problems and records each one as an incident. Overwatch is the other half: a job on a timer that takes every open incident from detection to resolved, through the same work board the AI agents work from. It asks the one human operator only when no standing authorisation covers the next step. It was designed and approved on 17 November 2026, and is being built in phases, each starting in report-only mode.

Code controls, agents thinkClasses, not casesNo second task systemReport-only firstAsk only when nothing covers it

Design reviewed 17 November 2026. Phases 0 and 1 are built, and since 17 November code closes incidents that are resolved or duplicated. The rest of the loop is being built (section 06).

01 · The missing half

Detection was never the problem.

Detectors open incidents on timers, and they notice when a problem clears. Until 17 November nothing acted on what they found, and no code closed an incident. Code that creates a fix and follows it to production is still being built.

Closing

Opened by code, closed by hand

Until 17 November every incident close was typed by an agent, even when the detector that opened it had already seen the problem go away.

Repeats

A recurrence was a new incident

A reading that flapped opened another incident for the same subject, so one fault could fill the register.

Authority

Standing decisions lived in notes

No code reads a note, so every step that needed authority waited for the operator, however routine it was.

02 · The loop

Code moves each incident one step at a time.

One job reads the incident log on a timer and moves each open incident one step. It decides by rule, from a reviewed configuration file, not by judgment. The AI agents do only the thinking work: diagnosing an unknown failure, building a fix and reviewing it. They receive it as ordinary items on the work board, exactly as they receive everything else.

The Overwatch loop. Code detects a signal, records one incident per key, classifies it by rule and routes it by the class playbook. Four routes follow. Auto-resolve: the condition cleared, so the incident closes with the evidence. Mechanical fix: code runs one listed runbook entry. Fix item: code mints a work item, AI agents do the design check, build and review, then code lands and deploys it. Ask the operator: no grant covers the step, so it goes to the decision queue, and an approval becomes a grant the code reads. All routes end in verify and close, and the defect class closes once its strategic fix and detector are live. Detectsignals with a key Recordone incident per key Classifyrules to a class Routethe class playbook Sources: fast checks, stuck-work checks, scheduled checkers, CI, deploys, service alerts Auto-resolvethe condition cleared: close with the evidence Mechanical fixone listed runbook entry, run by code Fix itemminted by code Design checkhigher risk only Build, testan AI agent Reviewby risk tier Landmerge lane Deployinstaller or train Ask the operatorno grant covers the step: decision queue approve once, or always allow: a grant the code reads Verifyacceptance met and thekey quiet for a window Closeincident resolved, withits work and PRs linked Class closesfix and detector live
Code, on a timerAn AI agent, through the work boardThe operator, only when no grant covers the step

A problem that comes back inside its verify window reopens the same incident, never a new one. If a delivered fix fails to hold more than a set number of times, the loop stops acting on that class and asks the operator.

03 · Design rules

A short job with no memory, and no authority of its own.

The rules as designed. Section 06 says which parts are built.

Rule 1

Code controls, agents think

The responder is a short job on a timer. All of its state is in the database, so a crash or a restart loses nothing. It runs apart from the service that hands work to the agents, so it keeps working when that service is unwell.

Rule 2

No second task system

Overwatch creates work items, links them, watches them and closes incidents. Building, reviewing and landing stay with the existing task system; installing and deploying stay with the release installer and the deploy train.

Rule 3

Work on classes, not incidents

Each defect class gets one playbook entry, and a class that keeps recurring gets one strategic fix rather than a fix per occurrence. The playbooks are one configuration file, changed only by a reviewed pull request.

Rule 4

Code holds the authority, never an agent

Agents build and review. Landing, deploying and closing are done by code, under authority the operator has given. A request written in prose carries no authority.

Rule 5

Every automatic action starts report-only

Each action first reports what it would have done. It goes live only on the operator's approval, and it has limits and an off switch.

Rule 6

Proportional controls stand

Low-risk work runs unattended. Production deploys, live trading, deleting data and spending money happen only under a grant the operator issued or an approval the operator gave.

04 · Playbooks

What happens to each kind of incident.

The proposed starting entries cover the classes that hold most incidents. Each one says how to recognise the class, which route to take, what the fix looks like, how long to watch before closing and how much the class may spend.

Four routes: auto-resolve, a mechanical fix, a work item, or a question for the operator
Kind of incidentWhat code doesWhat an agent does
Auto-resolve A stuck-work alert whose item has since moved onCloses it, with the item's current state as the evidence.Nothing.
Auto-resolve Every linked fix done and quiet for three days, but the incident still openChecks that the signal has stayed quiet since the fix was delivered, then closes.Nothing.
Class fix A stuck-work alert that is still trueKeeps one incident per stuck item, counts them by cause and creates one fix per cause, not one per alert.Builds the fix for the cause.
Mechanical A CI run that never started, or a hosted outageRe-runs the whole run once, when the dependency is healthy again.Nothing.
Mechanical A CI check stopped at its time limitOne re-run when load is lower. Past a daily count, one capacity fix.Builds the capacity fix.
Mechanical A job killed while still holding its claim on a work itemMarks the job finished once its process is confirmed gone, then releases the claim.Nothing.
Work item Test data out of step after a clean mergeCreates one repair against the main branch and links every affected change's incident to it.Repairs it; a second agent reviews.
Work item Wrong numbers in data or researchCreates the fix with a design check first, holds anything that depends on the wrong numbers, and asks before the deploy.Designs, builds and reviews, with agents from different vendors.
Diagnose No class matchesCreates one investigation with the evidence attached.Names the class and the cause, and proposes a playbook entry.

Fix the fixer first.

Overwatch depends on the task system to build its fixes, and most incidents are about the task system itself. So three gauges are read from the work board on every pass: the share of offered work that an agent takes up, the time items spend in each stage, and the count of stuck items. While a gauge is out of bounds, task-system fixes go to the front of the queue and Overwatch caps how many other fixes it creates, so it never floods a system that cannot drain.

A red CI run is sorted the same way. Each check already writes a receipt with its name, verdict, exit code and time, so code can do the first sort: a run that never started is re-run once; a check red on the main branch and on unrelated changes is test data drift, with one urgent repair; a check red only on one change goes back to that change's builder; a test that both passes and fails on the same commit is proposed for quarantine. Re-runs repeat the whole run, never only the failed jobs, and at most once per run.

05 · Safety limits

Bounded, switchable, and watched.

The limits as designed.

Budgets

A daily cap on what it may do

A cap on the work items it creates each day, and on mechanical actions per target: one re-run per run, for example.

Work in progress

One fix at a time per problem

One immediate fix per signal and one strategic fix per class at a time.

Breaker

A fix that does not hold stops the loop

Past a set number of recurrences after a delivered fix, automation stops for that class and the operator is asked how to proceed.

Off switches

One for the whole, one for each part

One switch for the responder, one per route and one per playbook entry, in the same switch directory the task system already uses.

Self-watch

It watches itself

A fast check raises an incident if the responder goes silent.

Out of reach

What it never does

It never changes live trading, deletes data, spends money, moves the trading engine's pinned version or edits permissions. It raises those to the operator, and adds no check stricter than those already ruled on.

06 · Phases

Built in phases, each one report-only first.

Each phase is a handful of work items. Only the current phase's items are created, so nothing sits waiting for a later one. The first three need no new authority and are expected to remove most open incidents.

PhaseWhat landsState, 18 November 2026
0 · Truth and drainA one-off sweep of the stale backlog, from a dry-run list the operator approved. Stuck-work alerts keyed so they close on recovery. The closer, report-only.Done The sweep ran on 17 November. Stuck-work alerts now reuse the open incident, and the closer is built.
1 · Responder in shadowThe timer job, and a report of the fix each hand-filed incident still needs. It reports what it would create and close, and writes nothing else.Done It runs every 15 minutes. Playbook entries will come as work items it proposes, once creating them is switched on.
2 · Live for low-risk workCreating, closing, class fixes and investigations go live for the two lowest risk tiers, with the task-system gauges.Under way Closing has been live since 17 November, on the operator's word. Creating work items is built, with caps for its first days, and waits for the operator to switch it on.
3 · CI triageCheck receipts kept locally, the classifier, the re-run budget, and red-main detection for every service repository.Planned
4 · GrantsStanding decisions become records that code reads when it acts.Planned
5 · Approve on the pageA queue of decisions on the console, each naming its exact subject and effect, to approve, decline or hold.Planned
6 · Deploys and recoveryService deploys under grants through the deploy train, and mechanical recovery of stuck agents and claims, each after a report-only week.Planned

07 · How we will know

Fewer decisions for the operator, and classes that close.

None of these is measured by code yet; each becomes a figure on the console's Health view.

MeasureTarget
Incidents resolved with no operator inputOver 80% once phase 2 is live.
Open incidentsFalling as class fixes land.
Decisions asked of the operator each weekCounted, each one a candidate for a standing grant.
Defect classes closedRising month on month.
Recurrences after a delivered fixReported per class; they set the breaker's threshold.