How it works
Context engineering decides the contents of the call: which documents, which turns, which tool results, in which order, and what is left out. The instruction sentence can be clear and still sit under a contract the model did not need, and above a one-page letter the model never reached. Order changes what is easy to attend to. A binding limit placed after a long background is easier to miss than the same sentence placed before it.
Leaving a document out is part of the work when that document cannot change the decision. So is writing a short extract instead of a whole file. This is a different lever from prompt engineering, which writes the instructions. A sharper verb in the system prompt does not repair a call that loaded the wrong payslip. The texts are organised so the governing fact is present, early, and not buried under material that only looks related.
A worked example
A payslip call that leads with the tax-code letter
A payroll assistant for a regional bakery is asked why this month's net pay dropped. The contract PDF is forty pages, three older payslips are noisy, and a short letter says the employee moved onto an emergency tax code this month. The harness used to put the contract first. The model then explained holiday accrual and never mentioned the code. The engineer reorders the call: the letter, then this month's adjustment, then one prior payslip, with the contract left out. The next reply names the emergency code before it discusses anything else. The instruction text did not change.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- Everything retrieved is pasted in score order, so a loosely related policy outranks the one-page letter that actually answers the question.
- The governing constraint is placed after a long background, and the reply follows the background while the constraint is technically present in the same prompt.
- A clever instruction is rewritten three times while the call still loads the wrong document, so the behaviour does not move, the edit looks like it failed, and the person still has to point at the letter.
How to measure it
For a fixed instruction text, change only what is included and the order it appears, then read whether the reply uses the governing fact. Keep the prompt inventory beside the reply so the omission is visible.
After that change, compare task success for the same task and cohort with the previous period. Count corrections where the person supplies a document or a figure the call never contained. Keep the turn with the missing document.
Further reading
How Abracadabra helps
Read corrections where the person supplies a fact the call never loaded, or repeats one that was buried under a longer document. After the inventory or the order changes, compare task success for that task and cohort.
When context is lost, people restate a fact or repeat the request. Abracadabra pins those corrections and repeated intents to the turn. After a change to what the agent keeps, compare task success for that task and cohort with the previous period.
Request access to read this on your own agent.