← Back to news
Coding Agents: Who Watches the Monitors and Limits Repairs?

Photo: Derrick Coetzee / Wikimedia Commons — CC0 1.0

21/10/2026

Coding Agents: Who Watches the Monitors and Limits Repairs?

A green dashboard is not a recovery guarantee

Coding agents are increasingly asked to build the machinery that watches software after release: backup checks, scheduled audits, health probes and recovery scripts. This is a useful extension of AI-assisted development. It is also a change in responsibility. A generated feature can misbehave; a generated monitor can tell the team that everything is healthy while hiding the evidence needed to notice a failure. If that monitor can also repair production, a mistaken diagnosis becomes an operational action.

An October research case study makes this problem concrete. A Case Study in Assuring AI-Written Software, posted to arXiv on October 6, describes a healthcare practice platform developed with coding agents. Its strongest lesson is not that agents cannot help. It is that supervision becomes another software layer to engineer and challenge. Humans must retain control over what counts as evidence, which actions that evidence authorizes and when automation must stop.

What the case actually establishes

The authors reconstructed an evolving workflow from two structured interviews and project records spanning six months. An operator without formal software-engineering training directed a coding agent, used separate agents for reviews and inspected changes in staging. Production data remained outside the coding agents' reach, and deployment required explicit operator approval. The paper describes a single observational case, not a controlled comparison or a certification of the platform's safety.

Several failures concerned operations rather than visible interface behavior. Backup monitors checked intermediate events without proving that a usable backup existed. An audit stopped running without generating a failure. Another report calculated its pass rate only from checks that returned results, so missing checks vanished from the reported total. A monitor also misclassified legitimate long-running work as failure and repeatedly attempted automated repair, disrupting operations.

These are reported incidents from this particular case, not estimates of how often coding agents fail. They nevertheless expose a practical question for any software team: who verifies the automation that supplies the reasons for trusting other automation?

Separate observation, interpretation and authority

A monitoring workflow contains at least three decisions. First, what happened: a job started, a file appeared, a request completed. Second, what that means: a backup is recoverable, an audit is complete, a service is unhealthy. Third, what may happen next: notify someone, retry a task, restart a worker or alter production data. Collapsing these decisions into one agent makes a plausible explanation look like permission.

Our recommendation is to separate those stages explicitly. Deterministic collectors should record observations where practical. An agent can summarize them, compare hypotheses and propose a diagnosis. A policy-controlled executor should decide which already-authorized actions are available. Sensitive or unfamiliar situations should go to an accountable person. This architecture does not require eliminating useful automation; it prevents a natural-language judgment from silently expanding the system's powers.

The boundary belongs in credentials and executable controls, not only in a prompt asking the agent to be careful. A diagnostic assistant usually needs read access, not a production administrator token.

Count the checks that should have run

A report cannot establish completeness by listing only the results it received. Start from a versioned inventory of expected checks, maintained independently of the latest run. Every required check should have an identity, an owner, an execution window and an expected evidence artifact. The collector reconciles actual results against that inventory. A missing result remains visible instead of disappearing from the denominator.

For example, in a hypothetical nightly audit, a team expects twelve checks. Ten return successfully and two never report. The correct summary is not a clean bill of health for the ten observed checks. It is ten completed checks and two missing results, with overall assurance incomplete. The precise release consequence depends on the checks' importance, but the report must not convert absence into success.

Use separate states such as passed, failed, missing, stale and not applicable. Make exemptions explicit and time-limited. An agent may explain a missing result, but changing the expected inventory or waiving a mandatory check should require a reviewable decision.

Verify the outcome, not the convenient proxy

Backup monitoring illustrates the difference between activity and assurance. A scheduler firing does not establish that an archive was written. An archive existing does not establish that it can be decrypted. Successful decryption does not establish that the application can use the restored data. Each observation supports a narrower claim than the phrase backup healthy suggests.

Ask a coding agent to implement a controlled restore drill into an isolated environment, using appropriately protected data. Verify that the restored service performs a representative operation and that the result meets the team's recovery requirements. Preserve the drill's evidence and limitations. A restore exercise covers its tested scope; it does not prove that every possible disaster is recoverable.

Google's SRE guidance provides a useful, established distinction between white-box monitoring of internal signals and black-box checks of externally visible behavior. Both are valuable. Applied here, internal job telemetry helps diagnosis, while an outcome-oriented exercise tests the promise that matters. Teams need not reinvent reliability engineering because an agent wrote the script.

Make freshness and execution visible

A successful check from last week should not be presented as evidence about today's deployment. Bind each result to an execution identity, timestamp, software revision and environment. Record whether the check started, finished and produced an interpretable result. Distinguish collection failure from a negative verdict about the service. Both can require attention, but they are not the same operational event.

The monitoring path also needs a simple way to reveal its own silence. A separate watchdog can detect an overdue expected result; a controlled synthetic failure can demonstrate that an alert actually reaches its destination. Independence matters: if the watchdog shares the failed scheduler, credentials and reporting channel, it may disappear at the same time.

Keep the mechanism proportionate. A small service may need only a clear inventory, freshness deadlines and an independently scheduled check. More agents are not automatically more assurance. A simple missing heartbeat can be more useful than a sophisticated narrative generated from incomplete logs.

Do not turn uncertainty into repeated repair

The case's disruptive repair incident is especially relevant to teams building agent-assisted operations tools. Long-running work can be slow without being broken. Restarting it repeatedly can prevent completion, duplicate side effects or erase evidence. A timeout is an observation about elapsed time, not a complete diagnosis. An agent should not infer unlimited remediation authority from that signal.

Give automated actions a narrow, written envelope: the specific target, allowed operation, prerequisites, attempt budget, cooldown and stop condition. Check for existing progress and concurrent work before taking action. Prefer operations designed to be safe when repeated. Preserve diagnostic evidence before restarting anything, and escalate when the permitted recovery does not produce the expected outcome.

For destructive, irreversible or poorly understood changes, require explicit human approval tied to the proposed action. A supervisor should see what will change and why, not merely a button labeled approve. An inconclusive monitor should usually reduce authority, not grant a repair agent broader access.

Review generated monitors as production code

Agents can help produce probes quickly, but monitoring changes deserve the same engineering discipline as application changes. Review assumptions, error handling, dependency failures and what happens when no data arrives. Pay particular attention to filters and aggregations: a script that catches exceptions and continues may produce a polished report while silently dropping the most important checks.

A useful review brief asks the agent to identify the claim each metric supports, the states the report can represent and the failures it cannot detect. Then ask a human owner to inspect those claims against actual business consequences. A reviewer with fresh context can challenge the implementation, but sharing a model family or the same incomplete specification may preserve shared blind spots.

Keep changes to check inventories, alert routing, recovery thresholds and remediation permissions visible in version control. These files determine what the organization notices and what automation can do. They are control logic, not harmless configuration that should bypass scrutiny.

Test the unhappy path before trusting the summary

Before enabling a new monitor, deliberately exercise failures in an isolated environment. Stop the scheduled job. Return an empty response. Make a credential expire. Delay a task that is still progressing. Supply an unreadable backup. Confirm that the resulting state, report and notification match the intended behavior. These are proposed engineering exercises, not additional experiments reported by the case study.

  • Missing execution: the report identifies the absent check and its expected deadline.
  • Stale evidence: yesterday's success cannot satisfy today's requirement.
  • Partial collection: an unavailable dependency makes assurance incomplete rather than green.
  • False alarm: legitimate slow work does not trigger an uncontrolled restart loop.
  • Exhausted recovery: automation stops at its authorized limit and leaves evidence for a person.

Also verify the reporting destination itself. Generating an alert payload is different from a responsible person receiving an actionable notification. The final step of the monitoring chain is part of the system under test, not an administrative detail.

Give the human a decision packet

Human oversight becomes ceremonial when the person sees only a confident summary. For consequential decisions, provide a compact packet containing the intended outcome, expected checks, observed results, missing or stale evidence, proposed action and rollback limits. Link to raw artifacts so an engineer can challenge the interpretation without reconstructing the whole investigation.

An agent is well suited to assembling this packet and explaining uncertainty. It should separate facts from hypotheses and state which important properties were not tested. The person reviewing it can then narrow the action, request another check or refuse the change. That is meaningful control: the ability to change the decision using evidence, not merely accept a machine's conclusion.

Do not confuse a readable packet with a guarantee. Important systems still need qualified engineering and security expertise. The healthcare setting of the paper does not make its workflow a compliance template, and human approval alone cannot compensate for missing technical competence.

A practical starting point for software teams

Choose one existing agent-generated operational check, preferably one with a recovery action attached. Write down the exact promise it makes. List its expected executions and evidence. Introduce a missing-result state. Run one safe failure exercise and verify notification delivery. Finally, inspect its credentials and remove any power that its normal diagnostic role does not require.

Track whether checks execute on time, how many results are missing, how often alarms are actionable and whether recovery attempts stop correctly. Measure restored outcomes where possible, not simply the number of green checks or generated reports. These indicators should inform human decisions about expanding automation; they should not become another score that silently authorizes broader access.

The October case is a reminder of an old engineering truth in a new workflow: a supervisor can fail too. Coding agents can build valuable monitoring and recovery tools, but humans must define the promises, verify the evidence and retain authority over consequential actions. Delegate the implementation of supervision, not the responsibility for deciding what deserves trust.