You ask an assistant to review a supplier pack. A longer instruction cannot supply the missing insurance certificate, settle two conflicting policies or turn an earlier guess into evidence. First decide what the assistant needs to see.

Context engineering covers that selection across a task. Prompt writing shapes the request; context engineering also considers the surrounding evidence, tools and working state. Revisit the selection as the task changes. Anthropic: context engineering (opens in a new tab).

A shorter request is not automatically better. Keep what the task needs, including uncertainty and contradictory evidence that still needs resolving. Measure the effect on your own work.

Choose what the next step needs

A useful starting point is seven candidate roles: instructions, the current request, retrieved facts, tool descriptions, working notes, durable memory and an output contract. They are not seven compulsory layers or a universal priority order. A host can combine them, load them differently or leave some out.

What belongs in this step?

Follow a supplier review. The task stays the same; the useful material changes.

6 of 7 roles supplied for: find evidence.

  1. Instructions

    Check the supplier pack. Do not contact the supplier.

    Review brief
    Included
  2. Current request

    Identify missing insurance evidence and explain what is needed.

    Current task
    Included
  3. Retrieved facts

    Supplier pack and the current insurance requirement, with dates.

    Approved sources
    Included
  4. Tools

    Read the approved supplier folder.

    Host configuration
    Included
  5. Working notes

    Open question: does the certificate cover the requested period?

    This review
    Included
  6. Durable memory

    Not needed for this step.

    Saved writing preference
    Not supplied
  7. Output contract

    Return source locations, dates and the unanswered question.

    Review brief
    Included

Try a context problem

What each step of the review needs
RoleFind evidenceDraft the answerCheck and hand back
InstructionsCheck the supplier pack. Do not contact the supplier.Check the supplier pack. Do not contact the supplier.Check the supplier pack. Do not contact the supplier.
Current requestIdentify missing insurance evidence and explain what is needed.Identify missing insurance evidence and explain what is needed.Identify missing insurance evidence and explain what is needed.
Retrieved factsSupplier pack and the current insurance requirement, with dates.The relevant policy passage and the exact gap found in the pack.The passages cited in the draft, checked against their source files.
ToolsRead the approved supplier folder.Write the review to the designated draft file.Not needed for this step.
Working notesOpen question: does the certificate cover the requested period?Record the missing date, checked passage and unresolved question.Check each claim, citation and unresolved question before returning the draft.
Durable memoryNot needed for this step.Use the agreed short findings table. This preference is not evidence about the supplier.Use the agreed short findings table.
Output contractReturn source locations, dates and the unanswered question.Draft a finding with its evidence and proposed follow-up.Return the reviewed draft and any unresolved issues to its owner.

Two context problems

Two policies conflict. An older runbook accepts expired certificates. Check the owner, date and scope; resolve the conflict before using the rule.

A guess is being reused. An earlier note says the supplier is covered but cites no document. Verify the claim or keep it explicitly unresolved.

Action limit: this review can prepare a draft; it cannot send it. Adding context does not change that permission.

An illustrative supplier review. Select each step to compare the material it needs.

Saved memory is selected information with a source and a lifetime. It is not necessarily a change to model weights or an automatic record of every conversation. An old preference can help with writing style; it cannot establish whether a supplier has insurance.

Before a hard question, check that the request carries what a capable adviser would ask for:

  • Goal: the decision or output you need.
  • Background: what someone new to the work would need to know.
  • Constraints: time, budget, tools, preferences and risks.
  • Evidence: the files, notes, data or images themselves, not a description of them.
  • Criteria: how the answer will be judged.
  • Output shape: a report, table, plan, critique, code or draft.

Recognise the failure

These four labels are practical diagnostic aids, not an official platform taxonomy. Start with the observable problem.

Poisoning: a mistake becomes a premise

An earlier answer said the supplier was covered without checking the certificate. Later steps repeat it as fact. Trace the claim to evidence, correct the premise and revisit any conclusions built on it.

Distraction: old work displaces the current task

The conversation keeps returning to last month's pricing review. Restate the current goal and select the history that helps answer it. Keep the original records recoverable.

Confusion: irrelevant material competes

Unrelated policies, tool descriptions or documents pull the answer in different directions. Remove material that has no job in this step and clarify the remaining inputs.

Clash: sources disagree

The current requirement rejects expired certificates; an older runbook accepts them. Check authority, date and scope. Resolve the conflict explicitly, or leave it visible for the responsible reviewer.

Keep the working set useful

Four operations help maintain the material for the next step. Use them when needed; they are not a fixed sequence.

  • Write: record findings, source locations, open questions and the next action outside the active conversation.
  • Select: retrieve evidence relevant to the current decision. Check access, freshness and coverage.
  • Compress: summarise older work while retaining decisions, evidence pointers and unresolved conflicts. Compare the recap with its source records.
  • Isolate: give a bounded subtask the context it needs, then check the returned evidence before using it. Separate context is not a security sandbox.

Before a handoff, state the goal, what has been checked, what remains uncertain and what would count as completion. A long log is harder to use than a clear record of the current state.

Continue, rewind, compact or start again

Each next step is also a choice about the conversation itself. Carrying on keeps everything, including material that is now wrong. Starting again clears the clutter, and with it any evidence you have not written down. Choose by what the next step needs, then check what the move left behind.

What each move keeps

Six ways to carry on with a piece of work, and what each does to the parts of the working context.

What each move keeps and changes
MoveUse whenChangesCheck
ContinueSame task, and nothing earlier is wrong.

Nothing. Every part stays active.

Continue while the goal is unchanged and nothing in the history is now wrong.
RewindThe last few turns went down a wrong path.

Removed: wrong or superseded material.

Rewinding removes everything after the checkpoint, not only the mistake, so record useful findings first. It does not reverse actions taken outside the conversation, such as a sent message or an edited record. Where the tool has no checkpoints, start a new conversation from a corrected state record.
CompactSame task, but the history has grown long.

Condensed: checked evidence and its locations; earlier turns; raw search and tool output.

Removed: wrong or superseded material.

Compare the summary with the source records before relying on it.
Start freshSwitching to an unrelated task.

Held elsewhere: checked evidence and its locations; open questions and conflicts.

Removed: goal and acceptance criteria; earlier turns; wrong or superseded material; raw search and tool output.

Bring across only what the new task needs. Material from the old task competes for attention.
DelegateA large search, log review or audit.

Held elsewhere: raw search and tool output.

Check the returned evidence before using it. A separate context is not a security boundary: the subtask still needs limited permissions.
Run in parallelSeveral workstreams that do not depend on each other.

Held elsewhere: goal and acceptance criteria; checked evidence and its locations; open questions and conflicts; raw search and tool output.

Removed: earlier turns; wrong or superseded material.

Use parallel streams only when they neither need each other's results nor change the same records. Check the combined result when they merge.
An illustrative model of a working context. Tools implement these moves differently; check what yours keeps, reloads or discards.

Work that runs over hours or several sessions should not depend on the conversation at all. Keep its state in records the next session can read: the goal and how completion will be judged, the plan, what is done, what is blocked, the next step, and the checks run with their results. Mark a piece of work complete only after its check has passed. Update the records before compacting or handing over; version history then gives you checkpoints to return to.

Hand over the state, not just the conclusion

A handoff should let the next person or agent continue the work and check it. Keep the goal, verified findings and source locations together. Carry forward unresolved questions, the last check and the next action. A summary that drops a conflict can turn an earlier guess into an apparently settled fact.

What survives the handoff?

Compare two recaps of the same supplier review. The next reader needs enough state to continue and check the work.

Short recap

Supplier review complete. Insurance needs a follow-up.

This loses the source locations, the policy conflict and the difference between a missing certificate and missing cover. "Complete" also hides which decision is still open.

Traceable handoff

Objective
Prepare the supplier review; return a draft to the procurement owner.
Checked evidence
Pack index, page 2, lists no current certificate. Insurance requirement, section 4, requires cover for the contract period.
Open question
The certificate may be missing from this pack. This does not establish whether the supplier has cover.
Conflict
The older supplier runbook, section 3, accepts expired certificates. The policy owner must settle which rule applies.
Current state
The draft finding has been checked against those two records. No message has been sent.
Next action and owner
Procurement obtains the policy owner's ruling and the missing evidence before making the supplier decision.

Keep the original records accessible. A recap is a guide back to the evidence, not a replacement for it.

An illustrative handoff. Source locations identify the example records, not documents published on this site.

Use the same discipline when compressing a long conversation: preserve the decisions and evidence that later steps still need. Compare the recap with the original records before relying on it.

Keep the evidence traceable

For each important context item, keep its source, owner or authority, date, purpose and unresolved questions. Those details help a later step decide whether it still belongs.

A saved item also has a life. The runbook rule from the handoff above shows what changes once the conflict is settled.

Illustrative context item from the supplier review
FieldWhen savedAfter the policy owner's ruling
Context itemSuppliers may submit an expired insurance certificate with a renewal letter.Unchanged text, now marked as superseded.
Source and authorityOlder supplier runbook, section 3; owned by procurement operations.Same location, kept so the history can be traced.
Selection triggerInsurance checks in supplier reviews, shown with its conflict.None: no longer retrieved for decisions.
Date and freshnessCopied from the older runbook with that edition's date. Not confirmed as current.Confirmed out of date: section 4 applies.
Conflicts and uncertaintyConflicts with the insurance requirement, section 4.Resolved by the policy owner's ruling, recorded with its date.
CorrectionNone.Superseded by section 4; reviews that relied on it are listed for a recheck.
Next reviewWhen the policy owner rules.None while superseded; keep until the records policy allows deletion.

Keep three kinds of record apart: raw captures as they arrived, working inferences that nobody has checked, and reviewed summaries that cite their sources. Only reviewed summaries should be retrieved as settled guidance, and a correction should sit beside the original record rather than overwrite it.

Vocabulary, taxonomy, ontology and knowledge graph

A controlled vocabulary fixes terms and meanings. A taxonomy organises categories. An ontology expresses concepts, relationships and constraints in a chosen formalism. A knowledge graph records entities and relationships, often with provenance. These are different ways to organise information; none guarantees that a retrieved claim is true.

A semantic model exposes business meanings and relationships for a particular use. It is not the same thing as the underlying data store. Formal inference and checking whether a record meets a closed set of rules are also different jobs.

For the surrounding components, see Skills, MCP and plugins. For the runtime that selects and acts on this material, see One model, different products. Use your own evaluation to check whether a change actually helps.