An agent can produce a convincing answer and still miss what matters to the team. It knows how to build a solution, but not that an option has already been ruled out, that a constraint only applies to some customers, or that a trade-off decision is still open. The result looks finished. The work still has to be redone.
Context engineering is the work of organising the information an agent needs to carry out its task. It means choosing the relevant sources, making clear what they apply to, and making them available at the point where they become useful.
For an organisation, this work concerns decisions and responsibilities as much as documentation. What does the agent need to know to move forward? What should it check? When should it come back to the team? The quality of the context shows in these situations, when the agent proposes a solution or is about to act.
Start from the work to be done
The useful context changes during a task. An initial request describes what we are trying to achieve. Research and trials then bring in information that can change the way forward.
Take an event cancellation flow. To propose a change, an agent needs to understand what the organiser is trying to do and what registered attendees need to know. When it comes to building, the rules for status changes and the notification mechanisms become necessary. Before going live, it needs the results of the checks and to know who approves the release.
A product document can hold the intent and the rules. The result of the latest test has to come from the current run. Approval given for a previous release does not carry over to the next one.
Preparing the context therefore also means separating what stays valid over time from what has to be checked at the moment of acting. A well-written note does not replace looking at the current state of the product.
This distinction helps decide what to provide at the start and what the agent should look up later. Its standing instructions tell it where to find the useful sources and which checks to run. They can stay short if the detailed documents are available when it needs them. Loading everything up front would not help: an overloaded context is costly to read, and the useful information gets lost in it. The article on token usage looks at what these choices change in a working session.
Keep the reasons behind the choices
Some information is hard to reconstruct from the product. Its current behaviour shows what was built; it does not always explain why another solution was ruled out.
On one of our products, an organiser deleted an event when they meant to cancel it. Cancellation existed, but it was hidden in a form. Only deletion notified the attendees.
The fix was scoped one evening and shipped the next day. The decision that goes with it keeps the context of the incident, the options ruled out and what it requires from then on: every change to an event’s status goes through a dedicated action.
In a future change, this note will make it possible to discuss a proposal knowing what the decision was meant to protect. The rule may change, but its reason will still be there to examine the consequences of changing it.
This kind of context is worth keeping because it would be costly to find again. It may be a contractual constraint, the precise meaning of a business term, or a compromise accepted for a particular audience. The aim is to make available the elements that shape choices and that today’s request will probably not repeat.
A decision note stays useful without being long. It sets out the situation, the choice made, the options ruled out and the consequences. Its date, its scope and the person who approved it make it possible to revisit it when conditions change.
Show what a piece of information is worth
An agent can find a relevant sentence without having what it needs to interpret it. A request from a customer, for example, may be an observation to look into, an accepted priority or a commitment made. The wording alone does not always tell them apart.
The same difficulty arises with internal documents. Meeting notes can mix proposals and decisions. An old specification can remain more complete than the one that replaced it. A term such as “active member” can mean something different for billing and for usage analysis.
These distinctions are worth writing down next to the information: where does it come from, what does it apply to, has it been approved, what has replaced it, if anything? The agent then has something to judge its scope by.
On one of our products, the agent’s instructions contained a copy of the decisions table. It stopped in April, while the log had kept changing into May. Both documents were available, with no clear indication of which one was authoritative. We replaced the copy with a reference to the log, removing one version to maintain. When a decision is replaced, its history can remain available, with a status that stops it being treated as a current instruction.
In our own knowledge base, decisions and hypotheses therefore have different formats. The important statements in these notes must carry their provenance: a written source, something someone said, or an intuition. This makes it possible to go back to what supports a proposal, rather than taking its repetition for confirmation.
Make trade-off decisions available
Some contradictions between sources reflect a disagreement the organisation has not yet resolved.
Imagine that the support team asks to keep an old flow for a few customers, while the product team wants to remove it to make things simpler to use. An agent asked to prepare the change may find strong arguments on both sides. Bringing the documents together makes the disagreement visible; what happens next depends on a decision.
The context then needs to say who can decide and what the agent can do in the meantime. It can compare the consequences, identify the customers affected or prepare several options. Removing the flow requires a separate approval.
We had to make this boundary explicit in our own working instructions: a question about a change calls for an analysis, not for carrying it out straight away. A decision to release must also be given for the change concerned. These rules set out how to interpret a request and when to go back to the person responsible.
Uncertainty can therefore be part of the useful context. Writing down that a point is still open, with the person to ask, gives the agent a way to keep working without making up an answer. The limits of delegation are covered in the article on agent autonomy.
These instructions need to come with the right access rights. An agent knowing that an action requires approval does not guarantee that it will wait. Permissions and checks remain necessary for actions that affect the product.
Check that the context helps the work
A knowledge base can be well organised and still let the agent head in the wrong direction. To know what to improve, you can go through a few real tasks with the people who know the subject.
| What we observe | What to examine |
|---|---|
| A known constraint was ignored | Was it missing, hard to find or misinterpreted? |
| An old decision was applied | Were its status and the decision replacing it visible? |
| The agent asked for a trade-off decision | Did the question set out the disagreement and its consequences? |
| A hypothesis was presented as settled | Were its provenance and level of validation available? |
| The work had to be redone | Did the fault come from the context, the reasoning or the execution? |
That last distinction matters. Adding documentation will not fix an execution fault. And if a rule was available but ignored, copying it into another file mostly risks creating one more version to maintain.
An explanation from the agent can help the diagnosis. It has to be checked against the sources it consulted and the result it produced, as we discuss in the article on understanding what you build.
Maintenance can then follow the difficulties encountered. At the end of a piece of work, the agent notes what it was missing and the assumptions it made. A person decides whether to complete a source, make a reference more visible or formalise a trade-off decision. The agent does not write on its own to the authoritative sources: what it proposes stays marked as a proposal until it is approved. Otherwise, it would end up citing itself as a source.
Start with an area the team knows
A team can choose a flow or a recurring type of request and examine the context it needs from end to end. It identifies the reference documents, the information to check at the moment of acting, and the decisions that must come back to it.
The first trial shows where the agent lacks bearings. You then adjust what actually got in the way of the work.
For the cancellation flow, the check would be concrete: does the agent find the reason for the dedicated actions, does it examine the notifications, and does it ask for approval before releasing? Each of these steps draws on a different piece of information. What the agent does not find there shows what is still to be written, made visible or decided.
This approach can be taken in training, on the team’s own subjects, and feed a broader reflection on organising work with agents.
White paperAgentic Product Operating ModelFrom intent to impact: keeping decisions and context alive as AI speeds up the product lifecycle.Get the white paper