Skip to main content
Back to all articles
AI Engineering 11 min readUpdated October 28, 2026

Preserving Required Tool Evidence When You Lower Model Effort

Reduce model effort without accepting unsupported facts. Enforce required reads with executor-owned receipts, scope and freshness checks, bounded recovery, and trace-based release metrics.

By Salman Butt · Senior Full-Stack & Generative AI Engineer
#Reasoning Models#Tool Calling#Evidence Validation#AI Reliability#TypeScript#Python#Observability
On this page

An assistant that prepares a canary release report should not decide whether its facts need evidence. The application should decide that before generation starts, then enforce it before accepting the report.

Consider a hypothetical engineering assistant summarizing a checkout canary. Its report includes the measured error rate for a particular build and observation window. If a cheaper model configuration answers without reading that measurement, a perfectly typed number is still unusable. The application needs an independently recorded measurement, the correct scope, and a match between the measurement and the reported value.

This becomes especially important when changing reasoning effort. The engineering question is whether the new configuration still completes the route’s evidence obligations. Token savings only matter after that condition holds.

Define the report’s evidence obligations first

Start with the endpoint contract. For a report about a specific canary build, the backend can determine the tenant, build, measurement window, and required report version from authenticated request context and release metadata. Those values should not come from model-generated tool arguments alone.

Make each required fact an obligation: an approved source must supply a value for the specified resource and version, within an explicit freshness policy. A general explanation of canary deployment concepts has different requirements and may need no external read. An ambiguous build identifier should produce a clarification or unresolved status rather than a guessed scope.

The policy should distinguish three things:

Contract elementApplication responsibility
Required evidenceIdentify which facts must be supplied by an approved source
Permitted retrievalAuthorize the tool, resource scope, and acceptable cache policy
Acceptable answerValidate the reported facts against successful, usable evidence

The model can help choose a retrieval strategy. It cannot remove an obligation merely by finishing its response. For routes with predictable inputs, the backend can fetch mandatory facts before calling the model at all. Reserve model-selected retrieval for cases where selecting or discovering evidence actually requires judgment.

Version effort together with the execution contract

Anthropic’s effort documentation explicitly includes tool calls and function arguments among the output affected by effort, and describes lower effort as producing fewer and terser calls. That makes effort a relevant variable in tool-use regression tests. It does not establish that every reduction causes missing evidence, or that every model requires the same thinking configuration.

Record a release configuration containing the model identifier, provider API version where applicable, prompt version, tool schema version, effort setting, thinking configuration, output limit, and evidence-policy version. Check supported combinations in the provider adapter. A portable internal label such as economical must resolve to a tested provider configuration; it is not a universal API value.

Keep three controls separate in that adapter: effort influences model behavior, the output limit constrains generation, and execution policy governs what the application permits and accepts. Increasing effort cannot authorize a read or turn a failed read into evidence. Increasing an output limit cannot fix a wrong-resource lookup.

My earlier article on matching reasoning effort to query difficulty covers allocation across requests. This design adds a narrower invariant: a cheaper configuration must preserve the evidence contract for the route it serves.

Keep evidence in an executor-owned ledger

For a client tool, a requested call and a completed operation are different events. Anthropic’s tool-call lifecycle describes the application executing the requested function and returning its result, including error signaling. An assistant message announcing a lookup is not a completed lookup.

The authorized executor should write a receipt only after handling the operation and validating the returned payload. A useful receipt binds a source observation to the tenant, run, resource, version, observation time, expiry, status, and normalized value. Keep failed attempts in the trace as failures; they cannot satisfy a successful-read requirement.

Store the ledger outside model-writable conversation state. The model may reference an opaque receipt identifier in its proposed answer. The verifier resolves that identifier from trusted storage. A receipt-shaped object embedded in retrieved text has no standing.

A cache hit can satisfy the same obligation when policy permits it. Recheck authorization and scope on reuse, preserve the original observation time, and bind the approved reuse to the current run. Do not make old data look fresh by replacing its timestamp. If the request requires a new observation after a rollout event, a still-unexpired older cache entry is insufficient. See tool-result caching and invalidation for the related cache boundary.

Required tool-evidence verification and report acceptance flow

*Flow: policy authorizes evidence reads, the executor records receipts in a trusted ledger, and the verifier checks those receipts against the model's claims before accepting a report.*

The model’s candidate and the ledger meet at the verifier. A candidate does not create the evidence used to verify itself.

Check the value, scope, and freshness together

The following TypeScript example validates one canary measurement expressed in integer basis points. It runs after runtime schema validation of the model candidate and tool payload. The context comes from the backend; the ledger comes from the authorized executor. Neither is parsed out of model prose.

TypeScript
type Context = Readonly<{  tenantId: string;  runId: string;  resource: string;  version: string;  nowMs: number;  maxAgeMs: number;  allowCachedRead: boolean;}>;​type Receipt = Readonly<{  id: string;  tenantId: string;  runId: string;  resource: string;  version: string;  source: "direct" | "cache";  status: "ok" | "error";  observedAtMs: number;  expiresAtMs: number;  errorRateBps: number | null;}>;​type Claim = Readonly<{  receiptId: string;  errorRateBps: number;}>;​type Verdict =  | { ok: true; errorRateBps: number }  | { ok: false; reason: string };​function verifyCanaryClaim(  ctx: Context,  claim: Claim,  ledger: ReadonlyMap<string, Receipt>,): Verdict {  if (!Number.isSafeInteger(ctx.nowMs) || ctx.nowMs < 0 ||      !Number.isSafeInteger(ctx.maxAgeMs) || ctx.maxAgeMs <= 0) {    throw new RangeError("Invalid server freshness policy");  }​  const receipt = ledger.get(claim.receiptId);  if (!receipt || receipt.id !== claim.receiptId) {    return { ok: false, reason: "missing_receipt" };  }  if (receipt.tenantId !== ctx.tenantId ||      receipt.runId !== ctx.runId ||      receipt.resource !== ctx.resource ||      receipt.version !== ctx.version) {    return { ok: false, reason: "wrong_scope" };  }  if (receipt.status !== "ok") {    return { ok: false, reason: "read_failed" };  }  if (receipt.source !== "direct" &&      (receipt.source !== "cache" || !ctx.allowCachedRead)) {    return { ok: false, reason: "cache_not_authorized" };  }​  const observed = receipt.observedAtMs;  const expires = receipt.expiresAtMs;  if (!Number.isSafeInteger(observed) || observed < 0 ||      !Number.isSafeInteger(expires) ||      observed > ctx.nowMs || expires <= ctx.nowMs ||      ctx.nowMs - observed > ctx.maxAgeMs) {    return { ok: false, reason: "stale_or_invalid_time" };  }​  const value = receipt.errorRateBps;  if (value === null || !Number.isSafeInteger(value) ||      value < 0 || value > 10_000) {    return { ok: false, reason: "invalid_tool_value" };  }  if (!Number.isSafeInteger(claim.errorRateBps) ||      claim.errorRateBps !== value) {    return { ok: false, reason: "unsupported_value" };  }  return { ok: true, errorRateBps: value };}

This function accepts a fresh authorized cache receipt without another network call only when backend policy explicitly permits cache reuse; otherwise it requires a direct observation. It rejects a candidate that names the correct receipt but changes the value. Scope checks also prevent a measurement from a previous run, another tenant, or a different snapshot from satisfying the request.

The code intentionally verifies one typed fact. A complete report needs equivalent checks for every material field, plus deterministic checks for relationships such as numerator, denominator, and measurement window. For a small fixed report, assemble validated fields into a deterministic template. If you let the model add narrative conclusions, evaluate those separately; passing this function does not verify arbitrary prose.

The receipt store is a trust boundary, not a cryptographic mechanism implemented by this snippet. Protect writes, authenticate executors, and validate tool responses before storage. If receipts cross services, use authenticated transport and an appropriate integrity mechanism. A content hash alone does not establish who produced a measurement or whether the caller may access it.

Freshness is also a policy decision. A TTL is useful only if it reflects the source’s consistency model and the product’s tolerance for stale facts. For a rapidly changing canary, bind observations to an explicit report snapshot or interval. When a newer revision invalidates the answer, enforce that revision check before accepting the report.

Treat missing evidence as a classified failure

A missing receipt can mean the model skipped retrieval, the executor never ran, the read failed, or the result was rejected. Those paths need different recovery.

FailureBounded response
Mandatory read was never requestedExecute a deterministic authorized read, or allow one targeted planning repair
Read timed outApply the tool’s retry policy within the remaining deadline
Permission was deniedReturn an unresolved result; changing effort cannot repair authorization
Resource or snapshot is wrongResolve scope from trusted context and discard the mismatched result
Candidate contradicts valid evidenceRegenerate the affected field or render it directly from the receipt
Source remains unavailableReturn an explicit unavailable status without inventing a value

A repair budget should include a maximum attempt count, wall-clock deadline, and spend allowance. Preserve the original requirement across repairs. An escalation to a more capable configuration can improve planning, but it still passes through the same verifier.

Provider tool-selection controls can help when supported. The current tool-definition documentation distinguishes automatic selection, selecting any tool, and forcing a named tool, with model and thinking-mode compatibility restrictions. Validate that capability in the adapter rather than assuming it exists everywhere. Even a forced call needs correct arguments, authorization, successful execution, and relevant results.

Likewise, structured outputs constrain the response format, while strict tool use constrains tool inputs. Neither feature verifies that a reported measurement equals an authorized source observation. Handle refusal and output-limit stop reasons explicitly before treating a response as complete. Keep these checks alongside the structured-output application contract.

Diagnose the stage that changed

Before raising effort, compare traces at each boundary. A drop in proposed mandatory reads suggests a planning or selection regression. Stable proposals with fewer successful receipts suggest execution, authorization, or source problems. Stable receipts with more rejected candidates suggest the model is misusing evidence. These diagnoses imply different fixes.

Use controlled variants to narrow the cause: retain the same model and change effort alone; retain effort and change the output format; then test the combined configuration you intend to ship. Include long inputs and several simultaneously required sources, since an average across simple one-read tasks can conceal omissions. Record each effective request configuration after provider-adapter translation, not merely the internal routing label.

If prefetching can supply every mandatory fact, compare that architecture too. It trades an extra deterministic read for less dependence on model selection. Where source access is expensive, keep optional discovery model-directed while fetching the small required core directly. The release decision should compare complete architectures and their recovery costs, rather than attributing every missing call to reasoning effort.

Measure evidence completion separately from schema validity

An effort change should pass a route-specific release gate. Keep the prompts, labeled tasks, tool fixtures, source versions, and evaluation policy fixed while comparing candidate configurations. Record cache conditions and output limits so a warm-cache run is not silently compared with a cold-cache run. Repeat cases when behavior is variable, and inspect uncertainty rather than promoting a configuration from one favorable run.

Evaluate both the raw model behavior and the repaired workflow. Recovery can conceal a regression if the only score is eventual completion. Track skipped mandatory retrieval, argument validity, successful reads, evidence completion, unsupported acceptances, repair rate, final task correctness, and latency through the whole workflow.

The Python function below aggregates independently graded traces. Required and satisfied identifiers represent evidence obligations, not literal tool names. A fresh trusted cache observation can satisfy an obligation with zero outbound reads. A run counts as a completed correct result only when the answer was accepted, schema-valid, independently correct, and fully supported.

Python
from dataclasses import dataclassfrom typing import Iterable​@dataclass(frozen=True)class GradedRun:    required: frozenset[str]    satisfied: frozenset[str]    schema_valid: bool    accepted: bool    task_correct: bool    no_read_expected: bool    outbound_reads: int    cost_microusd: int​def summarize(runs: Iterable[GradedRun]) -> dict[str, float | int | None]:    rows = list(runs)    if any(r.outbound_reads < 0 or r.cost_microusd < 0 for r in rows):        raise ValueError("Negative usage")    if any(r.no_read_expected and r.required for r in rows):        raise ValueError("Conflicting evaluation labels")​    needs_evidence = [r for r in rows if r.required]    no_read_cases = [r for r in rows if r.no_read_expected]​    def complete(r: GradedRun) -> bool:        return r.required <= r.satisfied​    def rate(n: int, d: int) -> float | None:        return n / d if d else None​    successes = sum(        r.accepted and r.schema_valid and r.task_correct and complete(r)        for r in rows    )    total_cost = sum(r.cost_microusd for r in rows)    return {        "runs": len(rows),        "schema_valid_rate": rate(sum(r.schema_valid for r in rows), len(rows)),        "required_evidence_completion": rate(            sum(complete(r) for r in needs_evidence), len(needs_evidence)        ),        "unsupported_acceptances": sum(            r.accepted and not complete(r) for r in rows        ),        "unnecessary_read_rate": rate(            sum(r.outbound_reads > 0 for r in no_read_cases), len(no_read_cases)        ),        "completed_correct_runs": successes,        "microusd_per_completed_correct_run": rate(total_cost, successes),    }​

Populate these fields from the executor, verifier, and independent test labels. Never ask the model whether its own obligations were satisfied. Aggregate costs across every attempt in a workflow, including failed attempts and recovery; use provider usage and tool charges where available. The code assumes one row per complete workflow and a consistent cost scope. It returns null for an absent denominator so an empty segment cannot look like perfect performance.

Required-evidence completion is a case-level rate here: every obligation must be satisfied. Also inspect obligation-level failures to identify one repeatedly skipped source. A separate no-read segment measures unnecessary outbound reads on explicitly labeled tasks. Do not penalize an optional useful lookup simply because a task had no mandatory obligation.

For online monitoring, use low-cardinality labels such as route, configuration version, and failure reason. Keep tenant identifiers and resource references in access-controlled traces, not metric labels. Alert on unsupported accepted results and changes in recovery rate even when schema validity stays healthy.

Build a test set that exposes false confidence

Include cases where the correct answer is already supplied by a permitted fresh cache entry, cases where no read is needed, and cases where every externally grounded fact requires new evidence. Add invalid and adversarial paths deliberately:

  • A proposed tool call that was never executed, and a call that completed with an error.
  • A valid receipt for the wrong tenant, build, snapshot, or run.
  • A stale observation whose cache expiry was incorrectly extended.
  • A schema-valid candidate containing the wrong measurement or an invented receipt identifier.
  • A correct numeric guess with no supporting receipt.
  • A correct receipt followed by a truncated response or an unsupported narrative conclusion.

The numeric guess is particularly useful: answer equality alone would reward the model for bypassing the required process. Conversely, demanding a physical call on every case would reject legitimate cached evidence. The expected behavior needs to describe the obligation and acceptable evidence sources, not a single rigid sequence of calls. This extends the approach in agent trajectory evaluations.

Choose acceptance criteria from the route’s risk and product requirements before inspecting the comparison results. Report denominators for each segment and retain failing traces. These examples define test behavior; they are not claims about measured production performance.

Keep read evidence separate from action authority

A report receipt establishes a supported fact within a defined scope. It does not grant permission to deploy, roll back, or modify infrastructure. Keep those operations behind their own action authorization policy, with idempotency and approval requirements where the product needs them.

Retrieved tool content may contain hostile instructions. Treat it as data, preserve its source boundary, and prevent it from modifying the ledger or evidence policy. Limit tool visibility and credentials to the route’s authorized resources. Apply payload size limits, redact sensitive values in traces, and retain the minimum evidence needed for audit and debugging.

There is a real trade-off in this design. Deterministic prefetching adds predictable work and may fetch facts the model would not otherwise use. Model-directed retrieval offers flexibility but requires stronger detection and recovery. Receipt storage adds operational complexity, and freshness checks can reduce availability during source failures. Choose the smallest contract that protects the facts the product actually relies on.

Once that contract exists, effort becomes easier to tune. Keep the configuration that meets the route’s evidence and task-quality requirements within its latency and cost budget. Re-run that gate when changing the model, prompt, tool schema, or effort setting. The acceptance boundary should continue to hold even when the model’s retrieval behavior changes.

Sources and topic provenance

Primary technical sources used for this design:

Topic discovery: Viral Ruparel’s You Turned Off Thinking and Your Agent Stopped Calling Tools, dated October 14, 2026 on the reference site. The canary scenario, evidence contract, diagram, and code in this article are original.

KEEP READING

Related engineering notes