Advertisements

A sales database has a newly renamed column. The agent preparing a revenue report tracks it down, finishes the job and delivers the right figures. The next day, a different agent opens the same reporting instructions. It has to track down that column all over again. Harrison Chase uses this example in a November 21 engineering article about how LangChain handles corrections. The agent preparing the report can flag the discrepancy as it works. A second agent reviews the evidence and can amend the instructions that the next report writer will use. [1]

LangChain calls the arrangement a knowledge factory. The company says its internal sales and content agents use versions of this arrangement. Its LangSmith Engine also maintains knowledge for individual agents whose traces it examines. An edit to a draft may settle the matter for the person who requested it. Someone maintaining the agent has a harder decision. Does that edit tell them how to handle the next customer, or did it apply only to this one? [1]

Advertisements

Where the revenue figure comes from

Chase describes a report that needs revenue figures held in BigQuery and Salesforce. Each new sale can change those figures. If the agent copies them into its long-term notes, someone now has a second set of numbers to keep current. A more useful note records which system to query and how to find the appropriate fields. The agent can then fetch current numbers when it prepares the report. The definition of annual recurring revenue belongs with the company's reporting conventions. That definition will be needed even when every number in this month's report has changed. [1]

The finance lead also has to be able to use the report. The finance lead may want reports in a particular house style, with a header other teams recognize. That instruction can live in a reusable skill. In the example, the report-writing skill is stored in GitHub, the accounting definition in a company wiki and guidance about querying the data in Context Hub. The three resources can stay where their owners maintain them. What the report writer needs is a route from a question to the document or tool that can answer it. [1]

The distinction matters when a report looks plausible. Two agents could fetch identical data and still give different answers if they apply different definitions of revenue. Conversely, a perfect description of that definition cannot supply a sale booked this morning. A review of the finished report needs to distinguish a disagreement about the calculation from a failure to fetch current data. The remedies belong in different places, even if the same human notices both errors on the same page. [1]

Advertisements

Who decides whether a correction should stick?

In Chase's example, the working agent has a way to file an issue and can include a proposed correction. A renamed column gives the agent something specific to flag. A reviewer still has to decide how widely the fix applies, since another table may use the earlier name. A temporary workaround for the current report can be useful even if copying it into the standard instructions would break a different report. Keeping the initial observation intact gives a reviewer something more specific than a complaint that the agent failed. [1]

LangChain gives the background curator a different reading list. It can consult underlying material such as Slack discussions or Notion documents, review issues agents filed, and inspect traces showing what happened during a task. Those sources can answer different questions. A discussion may establish why a team chose a definition. A trace may show that the agent found the definition but used an obsolete field to calculate it. A correction in a later message can explain why a technically valid report came back from the finance lead for another edit. [1]

A recurring review gives the curator a chance to reconcile those details after the user has received the immediate answer. Chase illustrates this with an overnight pass that catches both the schema change and a request for a new header. The curator can check the column name against the data source itself. The new header calls for a different check. A formatting request may be an instruction for one client, one department or every report. For a team adapting the example, the useful question is who asked for the change and which reports they meant to cover. [1]

What a salesperson’s edit can tell the curator

LangChain has also described the record its own sales agent leaves for review. A new Salesforce lead triggers the workflow. The agent checks whether outreach makes sense, gathers information including previous meetings, then sends a draft to a salesperson in Slack with its reasons and sources. The rep reviews it before anything goes out. The trace records whether the rep edited, canceled or sent the message. A curator can inspect the rep's intervention alongside the text that prompted it. [2]

That history makes two superficially similar corrections easier to tell apart. A salesperson might reject a perfectly well-written email because another rep contacted the account yesterday. Revising the prose template would leave that failure intact. A different rep might agree with the decision to write but replace a sentence because the company uses another term for a product. One case points toward the contact-history lookup, the other toward writing guidance. LangChain describes both relationship history and learning from rep edits as design requirements for the agent. [2]

From December 2025 to March 2026, LangChain reports a 250 percent increase in its rate of converting leads into qualified opportunities. Its sales team was using the broader workflow over that period. That workflow also changed how reps research leads and approve messages. That makes the 250 percent figure a measure of LangChain’s experience with several changes at once. The company’s figures leave open how much an overnight curator on its own would help another team. [1] [2]

Which version did the agent read?

The choice of where to keep these instructions matters the first time a team needs to undo an edit. In its description of Context Hub, LangChain says teams can keep versions of context files, comment on changes and tag versions for development, staging or production. For example, a team could test a revised reporting skill against an earlier report before pointing production at it. If that edit fixes the new header but damages another section, a previous version remains available. Teams already managing these files in Git can use the version history they have there. [1] [3]

Chase suggests starting with one recurring job. A revenue report is a good candidate precisely because someone can inspect it again next week. After a correction, the finance lead can check whether the writer found the right column, applied the current definition and delivered the requested format without being reminded. If the error returns, the original issue and the curator’s edit give the team two records to compare with the version the writer actually read. If the writer read an old version, the first place to look is the deployment. If it read the revised file and still used the wrong column, the curator has another piece of evidence to work from. [1] [3]

Sources

[1] Harrison Chase on maintaining knowledge for agents

[2] How LangChain built its sales agent

[3] LangSmith Context Hub and versioned context files

Advertisements

Have a correction or a useful perspective?
Get in touch with the publication.