Skip to content

Possible Interventions

Choose an intervention after identifying a concrete problem with the debugging guide. These are options to evaluate, not required components of every AI product.

The absence of a normalization stage, validator, memory system, or router is not itself a defect. Establish the behavior that must change and compare the simplest suitable change with the current product.

Start at the affected boundary

Observed problemCandidate changeCheck before adoptingCost or limitation
The task or target remains unresolvedBind the selected object; expose a missing field; ask one specific questionCorrect and ambiguous cases, unnecessary questions, completion effortMore interaction can obstruct simple tasks
Required information never reaches the modelRepair the source, retrieval, filter, or context assembly stepPresence of required facts and downstream completion on fresh casesMore context can add delay or conflicting material
Competing sources have different applicabilitySupply version, date, authority, and scope; select by the rule appropriate to the questionCurrent, historical, conflicting, and missing-source casesNewest is not always governing; metadata needs maintenance
Claims exceed what the evidence supportsNarrow the answer scope; check material claims against source spans; provide a useful fallbackUnsupported assertions, missed answers, reviewer burdenCitation existence does not establish support or truth
Format is valid but values are wrongCheck exact values, units, required relations, and permitted identifiers in application code where possibleKnown errors and valid alternatives, including false rejectionEach check needs a reliable reference and maintenance
Corrections are lost between stepsUpdate the relevant task state and pass it to later operationsReplacement, addition, cancellation, and resumed sessionsA summary or overwrite can lose other valid constraints
A tool request or its interpretation is wrongClarify the tool contract; validate arguments; inspect resulting stateWrong targets, invalid arguments, unexpected responses, partial successSuccessful API transport does not prove the intended effect
A retry repeats an effect or conceals a failureBound retries; detect completed effects; use supported idempotency; expose unresolved stateTimeout after success, duplicate requests, retry exhaustionRetrying can cost more or duplicate an external effect
The product attempts an action outside permitted scopeEnforce the actual permission and precondition at the application boundary; require approval when the product contract requires itAllowed, denied, changed, and bypassed pathsPrompt instructions and model judgment are insufficient evidence of enforcement
A budget limit silently changes the resultMake truncation or fallback explicit; narrow the job or allocate a different budgetLong inputs, slow tools, output limits, and total completion costMore budget may not help; partial results need clear meaning
An upgrade changes previously acceptable behaviorVersion the relevant configuration; compare representative workflows; retain a workable rollbackTargeted and adjacent cases, then observed useRegression sets miss new situations; rollback may not reverse data changes
Failures cannot be reconstructedCapture the missing boundary input, output, version, or stateReconstruct a new case using the added evidenceLogging has storage, handling, and review costs

Recovery and fallback are part of the product

A fallback should leave the customer with an understandable next step and preserve useful work. Depending on the job, that may be a partial draft, an explicit unanswered question, a manual path, or a handoff to someone who can resolve it.

Check whether the fallback actually works, how much effort it transfers, and whether it is invoked unnecessarily. A higher escalation rate is not automatically better.

Undo is useful only where the effect can be reversed. A compensation may repair a record without undoing a message already read or an action already taken. Verify the recovery behavior the product promises.

Source labeling and instruction boundaries

Labeling retrieved text as data can be part of a prompt design, but it is not a permission boundary. When untrusted content could influence actions, test conflicting instructions and enforce the application’s allowed operations independently.

The research on instruction hierarchy concerns learned model behavior. Treat the product’s action permissions as a separate implementation and verification question.

Judge the complete intervention

Measure the target failure and the work introduced by the remedy: false rejection, added questions, delay, cost, reviewer load, and maintenance.

Use the focused checks for the affected behavior and the product-use cycle for the customer outcome. Keep the current approach if the proposed addition has no demonstrated benefit for the decision at hand.