Story

Just In Time AI

Should an AI Verifier Agent Check a Bug Diagnosis Before the Fix Author Starts?

Ai BusinessVerificationAi OperatorDecision Making
Two monitors show a green test result beside a separate unresolved defect trace.
Editorial visual for this article.

Challenge: Should a verifier agent challenge this diagnosis before the fix author starts?

Of seven diagnoses in one documented pass, independent verification overturned two and deepened one. The same pass also caught a non-persistent proposed repair before merge. Those outcomes put fix-author time, AI spend, review capacity, and customer risk at stake before repair work advanced.

Before the fix author starts, can we show that the diagnosis agent's explanation is still true? The accountable operator must decide whether current evidence and expected value justify funding verification before repair work begins.

When any risk trigger applies, Adversarial Verify Before Fix requires an independent, separately dispatched verifier agent to challenge the diagnosis before the fix author starts. The decision package determines whether the business will fund the AI repair workflow; it does not waive the verifier agent. If the added check is not worth its cost, stop or reroute the repair instead of letting the diagnosis agent proceed alone. This policy stops repairs aimed at nonexistent bugs, stale evidence, or the wrong cause.

Have a workflow that is costing time, money, or customer confidence? Just In Time AI can help you find the smallest valuable improvement, implement it as a secure, compliant AI system, and prove the business result before expanding. Explore AI Systems Setup and Coaching.

What: What is Adversarial Verify Before Fix?

Adversarial Verify Before Fix separates proposing an explanation from testing whether that explanation holds up. The diagnosis agent records the observed symptom, proposed root cause, and exact source citation. The verifier agent, dispatched separately and instructed to act independently, reads the cited source firsthand, tests whether the symptom still occurs, and searches for deeper or alternative causes. The verifier agent also checks captured logs against current source, so yesterday's evidence cannot quietly stand in for today's system.

The verifier agent returns an evidence-linked verdict. CONFIRMED means the cause matches and the fix author may proceed. DEEPENED means the diagnosis agent must record the broader cause and expand the fix scope before the fix author proceeds. OVERTURNED stops the proposed repair. The released pattern states the stop instruction directly:

OVERTURNED: diagnosis is wrong-target, stale, or phantom -- surface evidence to the team; do not fix.

The record also names the probe method and the environment or deployed build checked, so the operator knows what was actually observed and where.

The fix author starts only after CONFIRMED or after the diagnosis agent has recorded the broader cause and expanded the fix scope required by DEEPENED. The documented sequence places the verifier agent's verdict before the fix author starts.

What must the operator establish before allowing a diagnosis agent or fix author to work?

The decision package makes the cost, authority, and proof threshold explicit:

Required fieldWhat the operator records for this decision
1. Business outcomeStop a risky wrong repair before staff and AI spend begin.
2. Current baselineRecord the symptom, proposed cause and fix, whether anyone independent has read the source or tested current behavior, and any known rework, elapsed time, staff effort, AI charges, repeat incidents, or customer impact. If those measures do not exist, say so and collect them during a pilot.
3. Expected valueDecide whether the staff time, AI cost, delay, customer risk, or compliance exposure that could be avoided justifies the verifier agent's added time and cost. This is a decision boundary, not a promised savings figure.
4. Intended consumerName the accountable operator who permits repair work, the fix author who would write the fix, and a permit-by deadline no later than the scheduled start of fix-author work.
5. Required inputs and contextSupply the observed symptom, exact source citation, current source and deployed build, dated logs or traces, proposed cause and fix scope, acceptance criteria, and operating constraints.
6. Tools and authorityLet the verifier agent read current evidence and run safe, reversible probes. Let the verifier agent return a verdict. Do not let the verifier agent edit, merge, deploy, publish, or approve its own conclusion.
7. Risks and guardrailsAddress confirmation bias, stale evidence, the wrong environment, unsafe probes, and sensitive-data exposure by pinning the current source and build and withholding destructive or live action unless separately authorized.
8. OutputRequire an owner-visible repair-queue item containing the funding decision and an evidence-linked CONFIRMED, DEEPENED, or OVERTURNED record that names what was observed, where it was observed, and the next permitted action.
9. Acceptance criteriaRequire the verifier agent to check every input, probe current behavior, challenge plausible alternatives, link the verdict to evidence, and state which changes would invalidate it.
10. Evidence of real valueCompare the verifier agent's time, tokens, and compute with wrong repairs stopped, diagnoses deepened, repeated investigations or recurrences avoided, and customer or compliance impact. If the avoided cost or risk does not justify a verifier agent when a trigger applies, stop or reroute the repair rather than let the diagnosis agent proceed alone.

For every triggered diagnosis, place the decision in an owner-visible repair queue with the accountable owner, risk trigger, evidence links, estimated verification cost, and permit-by deadline. The owner records FUND VERIFICATION, REROUTE, or STOP. Default on silence: if the deadline passes without a recorded decision, keep the repair blocked and do not dispatch the fix author.

The source defines four triggers:

  • A batch of diagnoses: Three or more bugs were diagnosed in one pass.
  • Potentially stale evidence: The diagnosis relies on a captured log or trace that may be outdated.
  • A persistent symptom: An agent reported a fix passed, but the symptom remains.
  • An unread source citation: Nobody else has independently read the exact source location supporting the diagnosis.

The requirement for a verifier agent does not apply to an obvious, single-file, trivial fix with an unambiguous root cause.

The pattern's origin record describes a seven-bug pass in a field-service application. These examples show how the evidence changed the business action:

Diagnosis under reviewIndependent evidenceVerifier agent's verdictBusiness action
A reported bug still needs a repairA deployed change had already corrected the behaviorOVERTURNEDDo not author a duplicate fix
A trace identifies the failing codeThe trace came from the wrong deployed bundleOVERTURNEDRecapture current evidence before repair work
A timezone value caused the settings errorA duplicate selected column caused the data driver to return arraysDEEPENEDExpand the diagnosis before authoring the fix

In the settings case, repairing only the timezone value would have targeted the wrong cause. The same pass also caught a proposed repair that changed a value in memory without saving it permanently before that repair was merged. Seven diagnoses do not establish a universal defect rate or predicted savings; they show how this method changed decisions in one documented pass.

A verdict expires when the cited source, observed symptom, deployed version or build, or proposed fix scope changes. The diagnosis agent must update the diagnosis, and the verifier agent must check the changed evidence and return a fresh verdict before the fix author resumes.

Artifacts

  • Inspect the current public Adversarial Verify Before Fix pattern for the risk triggers, independent-verifier sequence, verdict definitions, stop boundary, and documented origin example.

Why: Why must a verifier agent challenge the diagnosis before the fix author starts?

A diagnosis agent can become attached to its own explanation. Asking the diagnosis agent to check again leaves the diagnosis with the actor that formed those assumptions. A verifier agent has an explicit assignment to challenge them.

For our business, the avoidable expense is concrete: authoring an unnecessary repair, reviewing it, testing it, then investigating the unresolved symptom or undoing the change. If that symptom reaches a customer again, staff must revisit the incident and explain another unsuccessful repair. Repeated unsupported success reports also make staff less willing to trust the next completion report.

We should count agent costs alongside people-hours. A useful cost boundary is:

Wrong-repair cost = staff hours multiplied by our loaded hourly cost + billed AI input/output tokens multiplied by their respective rates + separately billed compute.

Record elapsed time separately: a stalled repair can delay other work even while nobody is actively attending it. Count compute only when billed separately from token usage, and add repeat investigation costs each time they occur. This is a formula for our own records, not a measured savings claim.

A verifier agent also consumes tokens, compute, and time. We have three policy choices. Review by the diagnosis agent only avoids coordination overhead and fits the trivial exception. A verifier agent for every fix separates roles even for low-ambiguity work the source excludes. A verifier agent when a trigger applies pays for the separate check where the four warning conditions apply. Under the selected trigger-based policy, a triggered item stays blocked until the business records funded verification or a reroute decision.

The people benefit is less time untangling repairs that should never have started, leaving staff available for customer decisions and higher-value judgment. It also protects confidence in the operating process: when completion claims repeatedly collapse, staff stop trusting the next one even when it is correct.

For the runnable negative-control walkthrough, read How Do I Know a Test Would Actually Catch the Bug?.

Bottom Line: When should we require a verifier agent before a fix?

As business operators, we set the permit policy; the diagnosis agent, verifier agent, and fix author follow it.

  1. Queue the permit decision: Put each triggered diagnosis in the owner-visible repair queue with its owner, evidence, estimated verification cost, and permit-by deadline.
  2. Record the decision: Choose FUND VERIFICATION, REROUTE, or STOP. If the deadline passes in silence, keep the repair blocked.
  3. Release work on evidence: Let the fix author start only when the queue contains the required evidence-linked verdict and its next permitted action.

After repair, the team still needs separate evidence that the intended behavior changed, affected behavior still works, and each acceptance criterion was met. A passing test suite alone does not establish those outcomes. That later check does not replace the earlier diagnosis challenge.

Apply the policy before coding starts. It protects staff time and agent budget from repeated wrong repairs while reducing the chance that an unresolved symptom reaches a customer again.

That value compounds each time a risky diagnosis appears. The policy reduces team frustration from reopening the same failure, lowers the chance that the next miss reaches a customer, and keeps compliance rules credible. It also avoids staff time and AI cost spent re-deriving an answer the business already paid to establish.

Subscribe for the next practical AI operations lesson.

Frequently Asked Questions

How do I decide whether a bug diagnosis needs a verifier agent?

Require a separately dispatched verifier agent when three or more bugs were diagnosed together, evidence may be stale, a reported fix left the symptom, or nobody else has read the cited source firsthand. The requirement for a verifier agent does not apply to an obvious single-file trivial fix with an unambiguous cause. Record which trigger applied before the fix author starts.

What should I ask for before letting a fix author start a risky fix?

Require the diagnosis agent to record the observed symptom, proposed root cause, and exact source citation. Have the verifier agent read the source, check current behavior, challenge alternative or deeper causes, and return an evidence-linked CONFIRMED, OVERTURNED, or DEEPENED verdict. Let the fix author start after CONFIRMED, or after the diagnosis agent records the broader cause and expands the fix scope required by DEEPENED; OVERTURNED stops the proposed repair.

How do I handle a verifier agent that overturns the diagnosis?

Stop the proposed fix, attach the verifier agent's evidence to the diagnosis record, and return the item to the owner-visible queue as blocked. The diagnosis agent may submit a new hypothesis and source citation, but it cannot authorize a replacement fix. Treat OVERTURNED as a reason to avoid the wrong repair, without authorizing another unverified guess.

When should I ask a verifier agent to check a diagnosis again?

Invalidate the prior verdict when the cited source, observed symptom, deployed version or build, or proposed fix scope changes. Require the verifier agent to check the changed evidence and issue a fresh verdict before the fix author resumes. If a different risk trigger appears, update the owner-visible queue item and treat it as a new permit decision.

When is a verifier agent not worth the added cost?

Skip the separate verifier for an obvious, trivial, single-file defect with an unambiguous cause and low consequence. When a defined risk trigger applies, compare verification cost with likely rework, delay, customer, and compliance exposure. If verification is not worth funding, reroute or stop the repair; do not quietly let the diagnosis agent authorize its own risky fix.

Update History

  • 2026-09-14: At the prepublication stage, this article was substantially revised to lead with the quantified source stake, add an owner-visible funding and permit decision with a deadline and default on silence, consolidate the public artifact link, and remove repeated full prescriptions. That historical entry does not describe a prior public version.
  • 2026-09-14 - Reader path and implementation help: Added the property-specific Just In Time AI service callout within the first third of the article and verified the paired reader path. The lifecycle-authorized article is bound to its locked canonical route; deployment and anonymous readback remain pending.

Evidence and provenance: This lifecycle-authorized article is bound to its locked canonical route; deployment and anonymous public readback remain pending. The business framing is a representative composite; no dated customer incident, measured customer outcome, universal defect rate, or predicted savings is claimed. The method, triggers, sequence, verdicts, exception, and seven-bug example come from the public current Adversarial Verify Before Fix pattern, last evaluated June 3, 2026; the commit-pinned pattern preserves the exact source revision checked for this article. The illustration is conceptual and is not operational evidence.

Update history

  1. What changed: Added the quantified source stake, an owner-visible permit decision with a deadline and default on silence, consolidated public artifacts, and removed repeated prescriptions.

    Why it matters: At the time, this was a prepublication revision and did not describe a prior public version.

← All stories · Proof records →