Chevron left
blog

Context Engineering: Supply the Right Evidence for Each Request

Diagnose absent, stale or misapplied evidence before changing models. Assemble instructions, sources, state and tool outcomes with versions, permissions and an explicit missing-evidence path.
August 28, 2026
Articles
ALLTIPLY knowledge center article: Context Engineering: Supply the Right Evidence for Each Request

Table of Contents

Reviewed and updated November 13, 2026.

In short: When an AI answer is wrong, first inspect what the model actually received, because a new model cannot repair evidence the application never supplied. Context engineering assigns each request item a role (instructions, authorized evidence, recorded state, tool results) and supplies only what the task needs, with explicit uncertainty when evidence is missing.

When an AI answer is wrong, check what information the model actually received. The right fact may be absent, stale, attached to the wrong entity or buried in irrelevant material. Changing the model cannot reliably repair evidence that the application never supplied.

Context engineering decides what instructions, documents, structured facts, tool results and remembered state enter a request. It is a request-time problem. Data preparation establishes the sources and definitions from which that context can be assembled.

Diagnose the failure before adding memory

Preserve a trace of selected source identifiers, versions and tool outcomes under appropriate access controls. Compare the failed request with the evidence required for the task. Ask whether retrieval found the source, selection kept it, the source was applicable and the generated claims followed from it.

Anthropic's context engineering guidance treats context as a finite resource and discusses retrieval, compaction and persistent notes. Those methods have different uses; adding all available material is not a complete strategy.

Three-tier exhibit of a help assistant: an expert-approved answer library, a hybrid RAG fallback, and an owner promotion loop for governance.
Serving approved answers first and retrieving only on a miss is one way to keep context small, sourced and reviewable rather than adding all available material.

An illustrative account explanation

Consider a request: “Why did this account's renewal estimate change?” This example is a proposed design, not a client result. A useful answer may need the account identifier, the prior estimate, the current approved estimate and the changes explaining the difference.

Resolve the account from the authenticated user's permitted selection. Query the approved fields using stable identifiers. Include the two estimate versions, the reporting cutoff and relevant change records. Retrieve contract clauses only if the explanation depends on them. A large collection of unrelated account notes can obscure the comparison and increase exposure without improving the evidence.

Require each numerical explanation to refer to the supplied fields. If the reason for a manual adjustment is missing, say which record is absent and route it to the account owner. The model should not turn a plausible business explanation into a reported fact.

Give each context item a role

  • Instructions: approved task rules and output requirements, controlled by the application.
  • Evidence: authorized facts with source, version and applicability. External content remains untrusted input.
  • State: recorded progress and approved decisions. A remembered preference must not become permission to act.
  • Tool results: structured outcomes, including denied, unavailable and incomplete states.

For long context, test document order, distraction and conflicting versions. Lost in the Middle found position-sensitive performance in the models and tasks studied. It is a reason to test your configuration, not proof that every current model fails the same way.

Prefer a simpler context path when it works

A stable procedure may fit in direct context. Exact current account values may be better obtained through an authorized API. Retrieval helps select relevant evidence from a larger collection. Memory is useful only when retaining information across requests serves the task and its correction, deletion and permission behavior are defined.

Evaluate missing evidence, superseded records, ambiguous entities and revoked access. Score citation correctness separately from fluency. If context is incomplete, preserve an explicit uncertainty or review path rather than silently broadening the search to unapproved sources.

Common questions

What is context engineering in enterprise AI? Context engineering decides which instructions, documents, structured facts, tool results and remembered state enter each model request. It is a request-time problem, separate from the data preparation that establishes the sources and definitions context is assembled from. Context is a finite resource: retrieval, compaction and persistent notes have different uses, and adding all available material is not a complete strategy.

How do you diagnose a wrong answer from an AI assistant? Check what information the model received. Preserve a trace of selected source identifiers, versions and tool outcomes under appropriate access controls, then compare the failed request with the evidence the task required. Ask whether retrieval found the source, selection kept it, the source was applicable and the generated claims followed from it. The fact may have been absent, stale, attached to the wrong entity or buried.

Should an enterprise AI assistant use memory across requests? Only when retaining information across requests serves the task and its correction, deletion and permission behavior are defined. A remembered preference must not become permission to act. Often a simpler path works: a stable procedure may fit in direct context, exact account values may be better obtained through an authorized API, and retrieval can select relevant evidence from a larger collection.

Free Engineering Implementation Kit

Download the Enterprise Context, RAG & Memory Implementation Kit

Includes the illustrated Executive PDF, the editable 25-Point Ontology & RAG Readiness Scorecard (.xlsx), and the 4-Scope Agent Memory Governance Schema (.json).

Preview of the ALLTIPLY Enterprise Context, RAG and Agent Memory Implementation Kit

See enterprise knowledge assistants for a source-backed application. Book a call to discuss a failed question, the evidence it needed and the sources the user was allowed to access.