Hypothesis First: Why Investigation Agents Test Competing Explanations

The first plausible cause usually wins, and sometimes it's wrong. How CloudThinker's investigation agents make competing explanations predict different things, test them in parallel, and keep the ruled-out paths as part of the result.

CTCloudThinker Team

EngineeringUpdated Nov 2, 2026

Cover Image for Hypothesis First: Why Investigation Agents Test Competing Explanations

Hypothesis First: Why Investigation Agents Test Competing Explanations

Checkout errors start at 14:02. There was a deploy at 13:55. Everyone in the channel already knows the answer: roll it back.

Sometimes that's right. Sometimes the rollback goes out, the errors keep coming, and twenty minutes later someone notices the database has been at its connection limit since 13:40. The deploy was a coincidence that happened to be on screen. (The scenario is illustrative. The pattern isn't.)

That failure has a name: anchoring. The first plausible explanation becomes the only one, and every later check gets read as support for it. It's how people debug under pressure, and a language model will debug the same way unless the method stops it. So our Frontier Investigation Agents work hypothesis first: hold several explanations open, and look for the evidence that tells them apart. In Resolve, that's how every investigation runs.

Why the usual approach breaks

Human debugging is serial for a practical reason. Every check costs a dashboard, a query and a context switch. So you test the most likely cause first, and if it seems to fit, you stop.

"Seems to fit" is a low bar. A recent deploy fits almost any incident, because something was always deployed recently. Errors went up after the deploy, which is consistent with the deploy causing them. It's also consistent with half a dozen other things.

Runbooks don't help here. A runbook is a diagnosis someone made in advance, so it matches the failure they expected. Anchoring bites on the failure nobody expected.

A model makes it worse in one specific way. It's fluent, so a plausible story comes out sounding finished. The fix is structural: make the model hold more than one story and force the stories to compete on evidence.

Explanations that predict different things

A hypothesis is only useful if it predicts something the others don't. That's the core move.

01Hypothesis A

The 13:55 deploy

Predicts errors only on new pods, starting at rollout time.

02Hypothesis B

Database connections

Predicts connection waits on every pod, old and new.

03Hypothesis C

Upstream dependency

Predicts errors only on calls to that dependency, from any version.

Illustrative. Each explanation predicts a different pattern, so one round of checks can separate them.

If the deploy is the cause, errors should sit on the new pods and start at rollout. If the database is the cause, old and new pods should both be waiting on connections. If an upstream dependency is the cause, only calls to it should fail, whatever version made them.

Now one round of checks can rule out two of the three. Split the error rate by pod version and by call target, and ask the database how full it is. With Prometheus and PostgreSQL, that looks like this (metric names vary by instrumentation):

# Errors by pod version. Hypothesis A predicts v42 fails and v41 doesn't.
sum by (version) (rate(http_server_requests_total{service="checkout", status=~"5.."}[5m]))
  / sum by (version) (rate(http_server_requests_total{service="checkout"}[5m]))

# Client errors by call target. Hypothesis C predicts one target fails for every version.
sum by (target) (rate(http_client_requests_total{service="checkout", outcome="error"}[5m]))
-- Hypothesis B predicts the pool is at its limit.
SELECT count(*) AS open_connections,
       current_setting('max_connections') AS max_connections
FROM pg_stat_activity;

Here's what came back:

5xx ratio by version      v41 (old pods) 18.2%    v42 (new pods) 17.9%
Client errors by target   payments-api 0.1/s      orders-db 41.3/s (pool timeout)
PostgreSQL                200 of 200 connections in use, flat since 13:40

Old and new pods fail at the same rate, so the deploy is contradicted. The upstream payment API is quiet, so that's contradicted too. The database prediction is the only one the evidence matches, and the next question writes itself: what filled the pool at 13:40? The investigation stops asking "does this fit?" and starts asking "which of these does the evidence contradict?"

How it works in an investigation

01Recall

Past incidents

Memory arrives as leads, before any hypothesis is formed.

02Propose

Several explanations

Each one named, with what it predicts in the evidence.

03Test

Look for the miss

Read-only subagents check the predictions in parallel.

04Rule out

Record why

A failed prediction removes a hypothesis and becomes a finding.

05Converge

Verdict or Not Found

What survives, with an evidence label, or an honest no.

The method. Testing tries to break each explanation, not to confirm the favorite.

Recall comes first. Before any hypothesis forms, CloudThinker reads recent entries from incident memory. A past lesson goes in as one more explanation to test. It doesn't get treated as proof that history is repeating.

Hypotheses are tested in parallel. CloudThinker can start subagents to check several things at once, so the predictions get tested against logs, metrics, traces, recent changes and dependencies side by side. Investigation only reads, so testing a hypothesis can't change the system being tested.

Parallel is about fairness as much as speed. Checked one at a time, the first hypothesis gets the most attention and the benefit of the doubt. Run side by side, each one has to survive the same evidence on its own.

What survives becomes the verdict. CloudThinker combines the findings into one root cause, with a causal graph from the first failure to the visible impact. If nothing survives, the incident is marked Not Found.

Ruled-out paths are findings

Every explanation the agent tested lands in the incident's Investigation timeline, marked confirmed or ruled out. We treat the ruled-out list as part of the result, for three reasons.

It's how you check the agent's work. A verdict that says "the database" is easier to trust when you can see the deploy was considered, and which number dropped it.

It saves the next person. The engineer who joins at 15:00 doesn't re-check the deploy, because the record already says it was checked, and against what.

It's where wrong conclusions get caught. If a hypothesis was ruled out on thin evidence, you can see that, and investigate again with what's missing.

01Anchored

First plausible cause

  • Starts fromThe most recent change, or the last incident
  • Looks forEvidence that agrees
  • Stops whenSomething fits
  • Leaves behindOne cause, no record of the rest

Fast, until it is wrong

02Hypothesis first

Competing explanations

  • Starts fromSeveral explanations held open
  • Looks forEvidence that tells them apart
  • Stops whenOne survives, or none does
  • Leaves behindThe cause and every path ruled out

Leaves a record

Same evidence, two ways to read it.

The design decisions

Many explanations, one verdict. Holding hypotheses open is the method. Handing the engineer five of them isn't an answer. The investigation has to converge, and the alternatives stay visible as context.

Labels, not percentages. Each verdict carries an evidence label. Verified means it was confirmed against data from your systems. Inferred means it was reasoned from the evidence but not directly confirmed. Cause unproven means it rests on an assumption. A percentage would invite you to trust a number. A label tells you what to check.

Not Found is allowed. A method that must always produce a cause will invent one. We'd rather mark the incident Not Found and show what was checked.

Honest limits

  • The method only tests what the agent can reach. If the real cause sits in a system with no connection, no hypothesis about it can be confirmed, and the likely outcome is Not Found. That's why the harness matters.
  • Hypotheses come from the evidence and the model's reasoning. If none of them is the real cause, ruling them all out is progress, but it isn't a root cause. Add access or context and investigate again.
  • A Not Found incident drops out of the investigation queue. Move it on or bookmark it before you leave its page.

Getting started

Pick an incident where the obvious cause turned out to be wrong, and see whether the agent gets anchored the same way your team did:

"Investigate the checkout errors that started at 14:02. Don't assume the 13:55 deploy is the cause. Test it against database connections and upstream dependencies, and tell me what each explanation predicts."

"For this incident, list every hypothesis you ruled out and the evidence that ruled it out."

The method runs in every Resolve investigation.

Related reading

rootcauseanalysishypothesisinvestigationaisreincidentresponsedebuggingcloudthinker