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.
Nexus engineering · Deep dives
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.
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
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.
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.
A reading that flapped opened another incident for the same subject, so one fault could fill the register.
No code reads a note, so every step that needed authority waited for the operator, however routine it was.
02 · The loop
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.
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
The rules as designed. Section 06 says which parts are built.
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.
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.
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.
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.
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.
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
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.
| Kind of incident | What code does | What an agent does |
|---|---|---|
| Auto-resolve A stuck-work alert whose item has since moved on | Closes 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 open | Checks that the signal has stayed quiet since the fix was delivered, then closes. | Nothing. |
| Class fix A stuck-work alert that is still true | Keeps 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 outage | Re-runs the whole run once, when the dependency is healthy again. | Nothing. |
| Mechanical A CI check stopped at its time limit | One 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 item | Marks the job finished once its process is confirmed gone, then releases the claim. | Nothing. |
| Work item Test data out of step after a clean merge | Creates 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 research | Creates 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 matches | Creates one investigation with the evidence attached. | Names the class and the cause, and proposes a playbook entry. |
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
The limits as designed.
A cap on the work items it creates each day, and on mechanical actions per target: one re-run per run, for example.
One immediate fix per signal and one strategic fix per class at a time.
Past a set number of recurrences after a delivered fix, automation stops for that class and the operator is asked how to proceed.
One switch for the responder, one per route and one per playbook entry, in the same switch directory the task system already uses.
A fast check raises an incident if the responder goes silent.
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
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.
| Phase | What lands | State, 18 November 2026 |
|---|---|---|
| 0 · Truth and drain | A 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 shadow | The 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 work | Creating, 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 triage | Check receipts kept locally, the classifier, the re-run budget, and red-main detection for every service repository. | Planned |
| 4 · Grants | Standing decisions become records that code reads when it acts. | Planned |
| 5 · Approve on the page | A queue of decisions on the console, each naming its exact subject and effect, to approve, decline or hold. | Planned |
| 6 · Deploys and recovery | Service 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
None of these is measured by code yet; each becomes a figure on the console's Health view.
| Measure | Target |
|---|---|
| Incidents resolved with no operator input | Over 80% once phase 2 is live. |
| Open incidents | Falling as class fixes land. |
| Decisions asked of the operator each week | Counted, each one a candidate for a standing grant. |
| Defect classes closed | Rising month on month. |
| Recurrences after a delivered fix | Reported per class; they set the breaker's threshold. |