Thursday, July 2, 2026
HomeArtificial IntelligenceWhat are context graphs? Why do AI brokers want them?

What are context graphs? Why do AI brokers want them?


What are context graphs? Why do AI agents need them?

In AI brokers, a context graph is the a part of agent reminiscence that captures choices.

This put up explains why AI brokers must seize choices, how context graphs seize them, how brokers use them, and the way brokers improve their capabilities and efficiency with them.

An agent failure case

It is the final week of the quarter. A renewal agent is working a $480k account. The shopper needs 20% off or they stroll. The agent’s directions state >$100k accounts shouldn’t churn, however the agent’s coverage caps renewals at 10%. Now what?

If a human was dealing with this, they will most likely use expertise and reminiscence to resolve.

Did not we do that actual factor with Globex final quarter? It was the same story. They have been threatening to churn, and somebody signed off on 20% as a result of the CEO needed to retain Fortune 500 logos and the chance was price taking over a $300k account. It labored and Globex renewed shortly after.


This reasoning chain that makes the choice shouldn’t be written down wherever your agent can learn. The agent will discover Globex’s exception case in Salesforce, however Salesforce won’t inform it that the quantity was an exception, who accredited it, why it was accredited, whether or not the present state of affairs is equivalent or not.

The why lives in –

  1. Previous slack threads the place finance workforce admits a $300k account is well worth the danger.
  2. Zoom calls the place gross sales veterans point out these sort of accounts pay ultimately.
  3. Emails from the CEO saying retaining Fortune-500 logos is important.

These are important items of data wanted to make the choice, however the agent can not entry them.

So your agent does one in all two issues –

  1. It sends an electronic mail informing the coverage caps at 10%, and also you lose the account.
  2. It escalates to a human, who spends 24 hours doing Slack archaeology to reconstruct a choice the corporate already made as soon as.


Both means, the group failed to profit by adopting an AI agent.

This can be a common drawback. Organizations lose billions every year –

  1. making the identical errors,
  2. reinventing the identical options,
  3. losing time on beforehand solved issues,
  4. being extremely gradual at onboarding new staff,
  5. scuffling with compliance and audit gaps in an AI-native world.

It’s because we have now gotten extraordinarily good at recording what occurred, however we systematically throw away why it occurred, which is the one factor your agent wanted right here.

Context graphs retailer the why in an agent’s reminiscence.

Basis Capital referred to as it “a trillion-dollar AI alternative“, which is the sort of phrase that sends individuals reaching for the again button. However stick round anyway. The time period is new and slightly overloaded, nevertheless it factors at one thing actual. When you use or construct brokers, you will find yourself utilizing a context graph quickly.

Flat context is dangerous

The dangerous approach to give your AI brokers context is to only give all of them the info, data, paperwork, guidelines, insurance policies in a flat context window.

Say you may have an bill processing agent. You dump the bill, PO, vendor document, contract, coverage doc into the context. Then watch the agent fail. Why?

1. Context rot

When the agent asks itself “can I pay bill #842?” To reply, it has to hop – which PO does this bill reference? does that PO nonetheless have finances? was the supply obtained? is the seller on fee maintain? does $12,400 cross the approval threshold? what do the contract’s fee phrases say? is the coverage doc correct and up-to-date? are there undocumented nuances associated to this bill fee presently residing on Slack messages and Zoom name transcripts?

Flat retrieval tries at hand this large quantity of data to the LLM mannequin in a pile of disconnected chunks. Some bill textual content right here, some PO textual content there, some language from random docs and slack channels, all given as a flat wall of textual content.

“Can I pay bill #842?”

SAPBuy Order · ME23N

7731

Acme Company Ltd

12,400.00

3,600.00

Posted · 12 Mar

Open

W policy_v4.docx

AP Approval Coverage

▸ Invoices ≥ $10,000 want supervisor sign-off

# ap-ops

D

Dana 10:21

Acme all the time pays finish of quarter — don’t chase them.

W

Wes 10:22

famous 👍 leaving #842 as-is

payment_hold.csv

A · Vendor B · On maintain
1 Acme Company Ltd No
2 Globex LLC Sure
3 Initech No

● REC Renewal name · transcript 14:02

Gross sales Gave Acme Internet-60 this renewal.

AP lead Paid late twice… nevertheless it’s a $40k account. Authorised.

The agent is pressured to re-derive each a type of connections between these items of knowledge from scratch on every flip. Flattening enterprise knowledge into free textual content destroys precisely the construction it wants.

And as context turns into massive, LLMs battle to manage up with the scale and begin failing of their duties. They fail to comply with directions, drop guidelines randomly, misunderstand the relation between two items of data far aside, ignore middle-of-context knowledge, apply guidelines and constraints out of order.

Surge AI paperwork this of their instruction-following benchmark. The very best frontier mannequin solves <41% of such complicated duties.

Instruction-following benchmark on complicated duties

2. Lack of determination traces

Like we noticed in our first instance, AI Brokers run into the identical ambiguity people resolve daily with precedents, experiences, organizational reminiscence. However you possibly can’t give these items to an agent in a flat context window.

  • Tribal data. “We all the time waive the $5k onboarding payment for logistics firms however provided that they push again on the timeline first.” That is not within the CRM. It is tribal data handed down by inner conversations.
  • Previous choices. “We structured a deal for account X the place they break up funds into installments. We should always provide this comparable account Y the identical.” No system hyperlinks the 2 offers to convey why Y’s contract was drafted this fashion.
  • Context throughout techniques of document. An account supervisor sees utilization sliding within the product dashboard, an unpaid bill in NetSuite, a chilly one-line electronic mail. They flag the account as “churn danger” within the CRM. The reasoning occurred of their head, however the CRM document simply exhibits “churn danger”.
  • Guide approvals. A VP approves a reduction on a Zoom name. The Hubspot document exhibits the modified worth. It would not present why this determination was made.

Reasoning behind knowledge, choices, actions is not captured in a flat context window.

If you’re a developer, this idea hits even tougher. Why did we decide this queue over that one in 2019? Why is there a sleep(200) within the retry path that breaks the whole lot once you take away it? It was apparent to whoever wrote it, however that data is gone now. Keep in mind Structure Resolution Information? They have been invented again in 2011 to repair precisely this. However most ADR folders die at three entries, as a result of writing them is friction and no person reads them later.

This can be a common drawback. Firms are good at storing what occurred, and dangerous at storing why they occurred. It’s because the why is unstructured, unfold throughout techniques, and no person reads it even if you happen to retailer it.

Each issues, context rot and lack of determination traces, are solved by context graphs.

What’s a context graph?

A context graph is a means of structuring an LLM’s context as a graph, the place nodes maintain items of data and edges maintain the relationships between them. It is optimized for the mannequin to learn, not for a human to browse.

Most agent reminiscence at the moment is flat. AI brokers embed your knowledge, break up them into chunks, and return the few chunks that look most just like the continued process. The LLM will get a pile of textual content with no sense of how these chunks join to 1 one other. That is vector RAG, the usual reminiscence utilized in AI brokers at the moment.

A context graph retains these connections. As a substitute of “listed below are 5 comparable paragraphs,” it will possibly say “Service A –depends upon–> on Service B,” “this launch –prompted–> that outage,” or “this bill –follows–> that coverage.” The sides carry which means, and the mannequin can traverse them.

This issues as a result of similarity shouldn’t be relevance. Two chunks can share phrases together with your process and nonetheless don’t have anything to do together with your precise process. Two different chunks can share no phrases together with your process and nonetheless relate to your process semantically.

A typed edge tells the agent how two issues relate, so it will possibly hint a series as an alternative of inferring the connection from phrase overlap.

The best way to create a context graph?

A context graph goes after each failures, context rot and lack of determination traces, by altering what you retailer and the way.

Begin with “the way you retailer”. You retailer what you are promoting as a graph, not a pile of textual content. Entities, for instance, the bill, the PO, the account, the seller, the contract, the coverage, the approver, are all nodes within the context graph. The relationships between them are edges. This bill –references–> that PO. This PO –attracts on–> that finances. This finances –accredited by–> this particular person. This vendor –ruled by–> that contract.


“Can I pay bill #842?”

You retailer every of these hyperlinks as soon as, as an alternative of leaving the mannequin to re-derive them from chunks of textual content each time it wants them. For every process/subtask, the agent pulls a small subgraph and leaves the opposite ten thousand data out of the window. Context rot goes away, as a result of the window stays small and on-point.

Now the “what you retailer”. You now additionally retailer every determination in a context graph. The unit of this context graph can be a choice hint. A flat document stops on the consequence “Initech renewed at 20%”. A choice hint retains the story behind it. The issue that triggered it, the choices weighed, why the rejected ones misplaced, the constraints, the exceptions, who determined, and the reasoning.

That is what a choice hint shops. That is additionally what an worker retains of their head. However with a context graph of determination traces, an agent can learn it.

So a context graph is these two issues collectively – entities and relationships, plus a choice hint on each determination, created throughout techniques of document and time. Basis Capital’s one-liner for it’s a “system of document for choices“. Most of your techniques already retailer the present state of issues. A context graph shops how the state received that means.

You employ a schema for the choice hint that’s very best in your use case.


Now the second half is popping outdated choices into one thing the agent can lean on.

The best way to use a context graph?

Few implementation particulars which can be important when utilizing context graphs –

Seize it on the way in which in

Brokers with context graphs have to be low friction, in any other case nobody will need to preserve them. Seize the determination the second it’s made, not later.

Reconstructing context after the choice can be lossy guesswork. The assembly is over, the Slack thread scrolled away, the particular person left the corporate. Many of the agent’s context has slipped away with out getting saved within the agent reminiscence.

Seize it when the choice is made, at nearly no further effort. The entire context is already there within the energetic context window. Additionally if a human overrides the agent’s determination, that override is the second to ask why and retailer the reply with minimal friction from the human.


That is additionally why brokers change the economics of organizational reminiscence. Now we have all the time identified we lose the why. Wikis, Confluence, post-mortems, ADRs: each one in all them tries to put it aside, and each one decays, for a similar two causes. Writing it down is friction, and no person reads it again.

Brokers break each directly. The agent sits within the execution path, so seize is a facet impact of doing the work, not an additional process bolted on afterward. And the agent is a tireless reader that can fortunately seek the advice of ten thousand previous choices earlier than making the following one. Organizational reminiscence lastly has a reader price writing for. That flips the idea of storing why, from a price you nag individuals about into an asset that compounds.

Use saved choices as precedent

As soon as choices reside within the graph, search turns them into precedent.

  1. a brand new determination alternative exhibits up
  2. the agent pull the direct context
  3. the agent pulls the closest precedents
  4. the agent causes on the context and precedents
  5. the agent takes a choice (or suggests it)
  6. determination is taken
  7. determination is saved as a choice hint within the context graph
  8. determination is linked to comparable previous choices within the context graph
You employ vector embeddings to seek out semantically comparable choices. Then apply graph-based filters to slender by entity properties.

A pile of outdated choices turns into reminiscence the agent can really use. That is additionally how an agent enter a mode of self-learning with out anybody fine-tuning it or updating guidelines/directions.


new case

Globex needs Internet-60

  • paid late as soon as final 12 months
  • $500k renewal in danger
  • #348 on the Fortune 500

precedent · Resolution Hint 118

Acme → Internet-60

  • late twice however nonetheless granted
  • $540k judged well worth the danger
  • #211 on the Fortune 500. Nice emblem.

The agent reads the precedent and proposes to grant Internet-60 underneath the exception rule.


new case

Quote for MediCorp

  • section: healthcare
  • 9-month procurement cycle
  • net-new emblem

Resolution hint 07

ABC Pharma → +10% buffer

  • section: healthcare
  • procurement cycles are brutal
  • construct +10% into the quote
  • captured at onboarding zoom name transcript in call_id 4329

This doesn’t present up within the CRM. It simply lives in veterans’ heads. Reference a maatching determination hint, the agent provides the ten% buffer robotically and might say why every time requested.


new case

Account Q · renewal due

  • utilization −30%Product
  • bill 38d overdueNetSuite
  • one-line chilly reply

Decison hint 151

Account Z → churn danger

  • utilization slid 28%Product
  • unpaid bill for 37 daysNetSuite
  • chilly renewal reply
  • CSM modified standing to churn danger

The flat CRM discipline simply says “churn danger.” The choice hint retains the three alerts throughout Product, NetSuite and electronic mail — that triggered the standing change. So the agent reassembles the identical image for Q and modifications its standing to “churn danger”.

There is a second payoff right here. As a result of traces document exceptions, not simply the clear path, you possibly can see when a rule retains getting overridden. If AP grants the identical late-payment exception to twenty distributors, the coverage is improper, not the distributors. The graph can flip this sample right into a sign to repair the underlying coverage itself.


0occasions the Internet-60 exception
was granted this quarter

⚑ Sample detected

→ elevate the Internet-60 threshold

Over time, the context graph turns into the actual supply of reality for autonomy, and your organization can simply audit and debug this autonomy.

The current ACE paper, “Agentic Context Engineering”, makes the mechanism concrete:

Deal with the accrued context as a playbook that grows by technology, reflection, and curation, and let actual outcomes refine it. The agent will get higher by enhancing what it is aware of, not by touching a single weight. A correction at the moment turns into a rule tomorrow. A hint at the moment turns into precedent subsequent quarter. This suggestions loop permits studying in brokers.

Instance of an agent utilizing context graphs


An agent resolving the Initech renewal with a context graph

STEP 1 / 7

Open determination: Initech renewal

AgentOPEN DECISIONInitech renewalAccountInitech · Fortune 500Renewal$300k ARR · This autumnBuyer ask20% off, or they churnCoverage cap10% mostEMBEDDING SPACEcosine similarity radiusAccount · Initech0.94title: Initechkind: renewal accountsection: Fortune 500BEST MATCHAccount · HooliAccount · GlobexAccount · SoylentAccount · InitrodeAccount · Umbrella“initech renewal”VECTOR SEARCHDiscover the accountquestion: “initech renewal”cosine > 0.901entity caughtOne document clears the radius.The remaining keep outdoors.GRAPH TRAVERSALhasChampionhasOpportunitygovernedByChampionVP, OperationsAlternativeThis autumn renewal · $300k ARRCoverageLow cost cap 10%Account · Initechmatched entityAgentworking setpulled inEMBEDDING SPACEcosine similarity radiusDEC-2025-1180.91Globex renewalF500 · over-cap askBEST MATCHDEC-2025-0760.87Umbrella retentionF500 accountDEC-2024-2440.82Acme churn dangerexception accreditedDEC-2025-0310.78DEC-2024-1520.73DEC-2023-089DEC-2024-017“renew initech: 20% ask”VECTOR SEARCHDiscover precedentsquestion: the open determinationcosine > 0.803traces caughtThree previous choices clearthe radius; others fall brief.Churn danger · $300k · F50020% accredited (over 10% cap)Robust VP rapport; retainSam Okafor · FinanceCoverage: 10% low cost capDecisionTraceGlobex · DEC-2025-118contextconsequencerationaledecidedByreferencesPRECEDENTGlobex · DEC-2025-11820% exception (over 10% cap)F500 · churn danger · VP rapportSigned off by FinanceRenewed for the time periodinformsDECISION IN PLAYInitech · $300k · 20% ask · 10% capApprove 20%, above the ten% capCites DEC-2025-118 · logged as F500 retention.Mailby AgentTo:champion@initech.comTopic:Renewal: 20% low cost accreditedHello Dana,Glad to maintain the partnership going. Now we haveaccredited your renewal at a 20% low cost forthe approaching time period, matching the worth you placeon reliability. Contract to comply with shortly.Greatest, RenewalssignatureR. AlvarezDocusign signature finished · VP Gross salesAuthorisedexception signed offdespatched

Use ← / → or the arrows to step by.

Just like data graphs?

The elements are the identical, however the implementation is new.

Data graphs have been round since Google shipped one in 2012. Occasion sourcing, storing the sequence of occasions as an alternative of simply the newest state, is a sample any backend engineer already is aware of. A context graph is near occasion sourcing for choices, the place every occasion drags alongside its rationale and its hyperlinks to the whole lot.

So no, there isn’t any new primitive right here. What’s new is that you simply seize the why on the write path as structured knowledge, as a result of for the primary time there is a client, i.e. the agent, hungry and tireless sufficient to learn it.

Brokers lastly give the “why” data objective.

RAG, for distinction, retrieves paperwork that look just like your query. A context graph retrieves choices, with their reasoning and their edges to the whole lot they affected. One palms the mannequin textual content to learn. The opposite palms it construction to stroll and precedent to motive from.

System-of-record brokers will not work

Techniques of document most likely have it improper. Salesforce launched Agentforce, ServiceNow launched Now Help, Workday is doing one thing comparable. Their reasoning is so as to add intelligence the place the info resides.

However their brokers will inherit the very same limitations as their mother and father.

  1. Techniques of document seize what modified, not why. Salesforce tracks discipline historical past, however just for a restricted set of fields, and just for some time. And when somebody approves a reduction, no discipline wherever shops the reasoning. The context of the choice is gone the second it is made.
  2. These techniques additionally miss knowledge. A assist ticket would not simply reside in Zendesk. It wants consumer tiers from CRM, SLA phrases from billing, current outages from PagerDuty, Slack thread flagging churn danger. No single system of document sees the entire image. And every vendor’s agent treats its personal system as the middle of the universe. 

Techniques of data are constructing their very own brokers, locking down APIs (ahem ahem), and slapping egress charges, however they cannot insert themselves into an orchestration layer they have been by no means a part of.

When an agent triages an escalation, responds to an incident, or decides on a reduction, it pulls context from a number of techniques and time intervals. The orchestration layer alone sees the total image – what inputs have been gathered, what insurance policies utilized, what exceptions have been granted, and why choices have been taken.

As a result of it is executing the workflow, it will possibly seize that context at determination time as an alternative of bolting on governance afterwards.

That is the essence of a context graph, and that would be the single most precious asset in your firm within the period of AI.

The arduous elements

Earlier than you get too excited –

  1. Rubbish in, rubbish precedent. If the captured rationale is lazy (“accredited, see Slack”), your precedents are landfill. The graph is price precisely the standard of the why you place in it, and writing a superb why is actual work. However this time, it’s sure this work will reap advantages.
  2. Who writes the hint. If a human has to kind considerate rationale each time, it’d rot the identical means as a wiki. If the agent infers the rationale, you must belief the inference, and “the mannequin guessed why we did this” is a shaky base. The true reply is someplace in between, and getting that proper shouldn’t be trivial.
  3. The choice swamp. A greater title at the moment for knowledge lakes that exist in organizations could be knowledge swamps. We dump the whole lot in them with no schema and no curation. A graph of tens of millions of contradictory, half-true traces is identical failure with further edges. With out curation, extra traces make precedent search worse, not higher.
  4. That is early. Most vendor decks make it sound shipped. It is not. The sample is sound and the early outcomes are unbelievably good. There’s something right here, positively. However “nice early outcomes” shouldn’t be “confirmed,” and anybody who tells you in any other case is pitching.

The complete stack

An AI-native workflow with context graphs has 4 layers –

1. Techniques of document. Salesforce, SAP, Zendesk, GitHub, Slack, the Zoom transcript from this morning’s name. They maintain the state of what you are promoting – each document, ticket, commit, and message. What they do not maintain is the reasoning that connects them. However they’re nonetheless the bottom reality for what’s.

2. The harness. It sits within the execution path and runs the rationale → act → observe loop. It holds the instruments, picks what goes into the mannequin on every step, shops corrections as reminiscence, checkpoints lengthy runs, enforces permissions, logs each determination, and catches errors earlier than they crash the run. This engine turns a stateless LLM right into a system that finishes work.

3. The context graph. Because the harness runs, each determination leaves a hint: what inputs it gathered, which rule it utilized, what exception it took, who accredited, and why. The graph stitches these traces throughout entities and time. Your techniques of document keep the reality for what occurred. The graph turns into the reality for why.

4. Brokers and people. Brokers execute the routine instances finish to finish. People deal with the instances the agent flags as unsure. Each correction a human makes flows again into reminiscence and the graph, so future agent runs are higher.

This maps to the 2 core options of AI-native organizations, Common context and Loops.

  • Common context is your techniques of document made queryable by the context graph. The agent would not re-derive the hyperlinks between an bill, a PO, a contract, and a Slack message on each flip. The graph already holds them.
  • Loops are the harness closing suggestions on each run. A correction at the moment turns into a rule tomorrow. A choice hint at the moment turns into precedent subsequent quarter.

The place to begin

Do not attempt to implement context graphs in every single place directly. Decide one workflow/workforce and show it earlier than you broaden. Attempt to decide a workflow/workforce with a number of of those three traits –

  1. Excessive headcount, as a result of that labor exists to deal with messy logic.
  2. Exception-heavy choices, as a result of precedent issues lots there.
  3. Cross-functional roles, as a result of they exist simply to hold context that no different system holds presently.

If all three line up, that is your first goal. Procurement, finance, claims, deal desk, underwriting, escalation administration are few examples.

And do not be afraid to tokenmaxx. In case your month-to-month AI utilization invoice would not make you uncomfortable lately, you might be doing one thing improper. Plus, you possibly can greater than compensate in your AI payments at the moment by saving in your payrolls tomorrow.

Conclusion

A clear approach to maintain all of this in your head:

The mannequin is your mind, the agent / agentic harness is your limbs, and the context graph is the map of your particular world (firm). An outstanding physique with no map of your world stalls at each fork within the street that requires realizing the map, and enterprise processes are nothing however these forks.

So the query price asking about your personal firm is small and uncomfortable. The place do you bear in mind why issues occurred, and what really labored? If the trustworthy reply is “in a number of individuals’s heads,” you already know the place the chance is, and also you already know what’s price constructing.

Capturing the “why” behind choices is the following nice leap in enterprise intelligence.


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments