跪拜 Guibai
← Back to the summary

AI Agents Skip the Diagnostic Surface—and a Crash Leaves Everyone Waiting to Decide

System Crashes, and the Room Waits for AI to Come Up with a Plan

Summary: At an incident meeting, everyone opened a chat window and waited for AI to propose a solution. What's missing isn't the model—it's the material that lets people make their own judgment calls. This post breaks down why Agents naturally don't leave you a diagnostic surface, and how to put the place for judgment back into a Java service.

Armin Ronacher once heard a colleague describe an incident meeting. The system had crashed. A room full of engineers sat around the table, and no one could say which layer the failure was in. Everyone was doing the same thing: opening a chat window and asking Claude.

By the second half of the conversation, the tone had changed. They weren't just asking for the cause; they were waiting for it to hand over a solution.

The real problem in that meeting room wasn't that no one knew how. It was that no one dared to make the call.

Ronacher's verdict was only four words: "This is frightening." He followed up roughly: We build software ultimately for people, and removing people from the process entirely is not a goal worth pursuing.

Don't Rush to Say People Got Dumber

Looking at this scene, the easiest explanation is skill degradation. AI writes the code, humans read less, and their hands get rusty. I accept that explanation and won't try to overturn it.

But it doesn't explain the other half: why they went to ask.

If people just got dumber, then AI should be able to answer. One more step of detail: even if Claude gave three possible causes, who at that table could judge which one was real?

Judging whether a solution is correct and judging where a fault is use the same ability. That ability doesn't automatically come back just because a chat window is open.

So the problem needs to be pushed one layer down: what was missing that day wasn't an answer, but the material for people to make their own judgment.

"Material" sounds vague. Turn it into three questions and it becomes concrete. Which layer is broken? What changed recently? What should it look like when it's normal? If you can't answer those, the only action left in the room is to ask.

How Can You Judge the Plan It Gives You

Ronacher himself ran a more extreme experiment that laid out the scale of this issue.

He gave an Agent a goal: add virtual threads and lexical scoping to Python, then completely let go. The Agent managed its own context, spawned sub-Agents, and took its own notes. He came back after the weekend.

35 hours. A net increase of 75,000 lines of code, 79 commits, roughly 1 billion tokens burned, about $1,200 at API list price, averaging $15.5 per commit.

His conclusion: nothing of value was delivered.

More worth looking at than the bill is the shape of the code he dug out. One segment was Bash calling Python, Python calling Node, and Node calling PowerShell.

Layer after layer, just to verify one clipboard behavior. He said this thing is basically unreadable for humans; the only way to follow what happened is to look at the final diff.

The Problem Is in the Objective Function

This isn't the model not trying. It didn't stop for 35 hours.

It was rewarded for "task completion," not for "finished in a way that someone can understand afterward." When it judged that no one would read this code, it stopped writing for human readers and stopped writing for long-term maintainability.

Move that mechanism onto your service and the conclusion is direct: An Agent has no incentive to leave a diagnostic surface for the system.

Why doesn't it add one along the way? Because adding a health-check endpoint won't turn any test from red to green. Writing a startup self-check doesn't affect functional acceptance. Those tasks weigh zero in its scoring.

So it doesn't do them. That's a structural problem, not a matter of attitude.

Placeholder image

Writing Faster, Debugging Slower—This Account Is Settled

Personal feelings don't hold up; look at surveys.

Undo commissioned Coleman Parkes to ask 300 engineering leaders between July and August 2026, all from organizations with revenue above $250 million.

The results: teams spend 9.8 hours per week writing code and 16.9 hours debugging. Debugging consumes 40% of working time, 70% more than writing.

The more uncomfortable figure is another: 79% say code is written a lot faster, but release cycles haven't sped up at all.

The time saved didn't disappear; it moved downstream.

If No One Can Explain, the Only Option Is to Ask

Lightrun asked 200 SRE and DevOps leaders the same year. 43% of AI-generated changes, after passing QA and staging, still needed manual adjustment in production.

Asked how high-severity incidents are handled, 54% said they rely on verbal experience in the organization, not evidence from diagnostic tools.

The data doesn't directly say these people will ask AI. But when the evidence isn't on the table, asking becomes the only available move.

New Relic's survey has another comparison that best shows the mismatch: 94% of leaders believe AI-written code is higher quality at review stage, while 78% say there are more incidents after release.

Looks good at review, hard to debug at runtime. These two aren't contradictory; they're two sides of the same cause.

One qualification: these are respondents' self-reports and estimates, not controlled experiments, and the sample leans toward large organizations. It proves this feeling is widespread, not that "AI code is necessarily worse."

Give People Back the Ability to Judge

Judgment doesn't come back through determination; it requires the system to leave room for it. Applied to a Java service, that's three very unglamorous tasks.

Placeholder image

The most important one: split "overall health" into "layered inspectability." The default /actuator/health only returns an UP; when something breaks, it only tells you the process is alive.

class DownstreamHealth implements HealthIndicator {
    public Health health() {
        Probe p = client.probe();
        return p.ok()
            ? Health.up().withDetail("p99", p.p99()).build()
            : Health.down().withDetail("why", p.err()).build();
    }
}

Marked with @Component it automatically registers as a Bean; the metric name is the class name with HealthIndicator removed.

A single indicator isn't enough; group them. Let ops see at a glance which layer went down:

management.endpoint.health.group.live.include=ping,downstream
management.endpoint.health.group.deps.include=db,redis,mq

Spring Boot 4 moved HealthIndicator to the org.springframework.boot.health.contributor package.

3.x still has it at org.springframework.boot.actuate.health. That import line will be red when you upgrade.

Changes Must Follow the Request

The first thing you want to know during a fault is probably "what changed just now."

The version number and commit shouldn't just sit in the release system; they need to follow every log line:

MDC.put("build", buildProperties.getVersion());
MDC.put("commit", gitProperties.getShortCommitId());

git.properties is generated by the git-commit-id plugin, and build-info comes from the Spring Boot plugin.

Both files get packaged into the classpath, and /actuator/info can read them directly. When something breaks, first look at the commit in the logs and compare it to the previous version—that's more accurate than asking anyone.

Write "I Assumed" as an Assertion

The easiest one to skip is this.

The connection pool should be 32, the thread pool core size should be 16, the timezone should be UTC+8. These defaults are never mentioned in normal times, but when something breaks, they're all suspects.

Write them into a startup self-check so that if the configuration drifts, the service simply won't start:

@PostConstruct
void freezeBaseline() {
    if (pool.getMaximumPoolSize() != 32) {
        throw new IllegalStateException("maxPoolSize is not 32");
    }
}

Not starting is admittedly ugly. But it's far better than "discovering at an incident meeting three days after launch that the pool was changed to 4."

There's a cost too. These Indicators need to be written and maintained, and misconfiguring a group can stop the service from starting—Spring Boot validates the indicator names in a group at startup and fails directly if they're wrong.

One More Thing That Isn't Code

The above solves the "can see" part. The remaining one is the "dare to make the call."

Waiting for a plan in the meeting room is essentially no one wanting to bear the consequences of a wrong choice. This can't be fit into any framework; it can only be handled by drawing boundaries in advance.

Which operations an Agent can execute on its own, which it may only offer suggestions for, and which need two people to sign off—write these into the runbook, and don't leave them as tacit understanding. An incident scene has no slack to discuss process.

There's also a layer of bringing back the drill. Many teams have fault drills, but they often become a scripted walkthrough that no one remembers afterward.

The way to actually grow judgment is to cut off part of the information during the drill: give only three log lines, and ask what you can infer from them and what's still missing.

A System That Can't Judge Its Own Value

Ronacher gave a counterexample that illustrates the point. A friend tried the lights-out factory approach. Asked whether he still used it, he said no.

Asked why he stopped, he said it kept burning tokens wastefully. Asked why he didn't simply turn it off, he said, right, I really should shut it down.

A system that can't even judge whether it has produced value can't hand you a plan from inside it.

The Part That Slows Down

Look back at this journey. A room full of people asking AI—what's missing is actually specific: layered health checks, easily traceable change records, and written decision boundaries.

An Agent won't proactively add these, because its goal is to run through, not to be diagnosable. Adding a health endpoint won't make tests turn green.

The data is there: 9.8 hours a week writing, 16.9 hours debugging, 79% say releases haven't gotten faster. The speed of writing is paid for in the slowness of debugging.

So what was truly lost in that meeting room was the place where someone makes the call. There is no outsourcing channel for that—AI can give you five options in one breath, but it can't choose for you, and it can't bear responsibility for you.

Solutions can be outsourced. Responsibility cannot.

If the network goes down, can we still solve the problem?


References

  1. Astra for Coding: Why Are We Doing This Again?
  2. Matt Pocock Interview - InfoQ Chinese translation
  3. AI Made Writing Code Cheap. Understanding It Is Now the Bottleneck
  4. State of AI-Powered Engineering Report 2026