Working Surfacelink · 24 Nov 2026
02
A wall of post-office pigeonholes, each already holding one sealed and labelled parcel, with a turnstile in front that opens onto only one pigeonhole at a time while a slim mechanical hand reaches through it for a single parcel, the whole scene drawn with wide empty margins on every side.
Salesforce Engineering

5 Lessons in AI Context Engineering: Why More Context Is Not Better

Akshay Sharma · 23 November 2026

How-to · agents · artifacts · Interfaces for agents

Read the original
Takeaway

A Salesforce engineering team prepared each customer's products and entitlements in advance, so its Help Agent reads exact, authorised facts in one lookup.

Summary

Akshay Sharma wrote on the Salesforce Engineering blog about giving Salesforce's in-app Help Agent, an AI agent that answers customers inside the product, the facts it needs. Answering what a customer owns meant tracing orders, product codes and cancellations, and earlier services did this on each request in ways that were hard to verify. The team now prepares one record per customer ahead of time and decides access before the agent retrieves anything.

Key points
  • The prepared customer record is read by key in under 200 milliseconds at the median in production.
  • A separate authorisation service sets which customer a signed-in user may see, so the agent never takes a customer identifier from the conversation.
  • The agent receives current facts by default, such as entitlements and open cases. It searches the full history of about 13.5 million cases only when a question needs it.
  • Automated checks before release found 2,765 customer accounts with missing or mismatched identifiers.
Implication

Business rules that an agent would otherwise apply on every request can be calculated once, checked and given to the agent as plain facts. This is a vendor's account of its own Data 360 product, and the general lesson is an inference.

Plays
Engineering

In a customer-facing AI agent, have a separate authorisation service fix which customer account a signed-in user may see before the agent retrieves any data, rather than taking a customer identifier from the conversation.

Engineering

Set a freshness limit for each data source an AI agent reads, and monitor it alongside the lookups that succeed.

Derived by Working Surface from the article; more in the Playbook. Source line: Asking the model to ignore unauthorized records is not an access control strategy.

Source issue

24 November 2026: as AI agents write more of the code, the scarce work is writing down what experienced engineers know, so that agents follow it and reviewers check against it.