NotesAI agentsContext engineering26ai

Your agent didn't fail. Its summary deleted the rule

Four context operations decide what a model sees, each with a cost. Rules belong in data and tool code, not chat history.

Step 1: no refund over £200 without a human. Step 22: the history is summarised to save tokens, and the rule is dropped. Step 38: the agent refunds £900 and says it followed policy.

Casius Lee (Oracle) calls this a context engineering problem. Four operations decide what the model sees, and each buys tokens back at a different price:

  1. Load eagerly: always present, but uses window space on every step.
  2. Fetch just in time: lean, but adds a round trip and misses sources the agent doesn't know about.
  3. Compact: fits long runs in a small window, but omission is irreversible unless the originals stay addressable.
  4. Hand to a sub-agent: a clean window, but evidence comes back as a claim.

One fix, and its limit

His example uses Oracle AI Agent Memory 26.8 with Oracle AI Database 26ai: pin the rule as a guideline, check it's still in the context card, and keep the raw messages in the database with their IDs. But seeing a rule isn't obeying it: the payment tool itself must refuse without a human.

My takeaway from building multi-agent systems

Rules belong in data and tool code, not chat history. Test them after compaction.

Source: What is context engineering? The four operations…

Get the Oracle + AI digest

One email when a new tested guide, template or APEX release note lands — English or Arabic. No spam; unsubscribe anytime.