The next reliability problem for enterprise agents is not how much they can read. It is whether the knowledge, permissions, tools, and instructions they use still describe the same reality.
Imagine an enterprise agent handling a routine request. It retrieves the relevant policy, checks the customer record, follows the approved workflow, and produces a clear recommendation.
Everything looks correct—except the policy changed yesterday.
The source document was updated, but the search index had not finished syncing. The prompt still referenced the old process. A tool schema had moved to a new version. The customer’s permissions had changed since the conversation began. Every individual component behaved as designed, yet together they assembled an answer from different moments in time.
This is one of the most important reliability problems in enterprise AI: context drift.
The industry has spent years making context windows larger and retrieval systems more capable. Those advances matter. But an agent that can read more is not automatically an agent that knows what is current. In a production system, the real question is not “How much context did we provide?” It is:
Did the agent receive the smallest, freshest, most authoritative set of information permitted for this task—and can we prove it?
More context can make the wrong answer more convincing
Retrieval-augmented generation was designed in part to give language models access to updateable knowledge and source provenance. That was a major step beyond relying only on facts stored in model parameters. But RAG creates an interface for knowledge governance; it does not provide governance automatically.
Research on knowledge conflicts shows why this distinction matters. Models can face conflicts between their parametric memory and retrieved material, between multiple retrieved sources, or even within their own learned knowledge. In experiments where generated and retrieved contexts disagreed, models sometimes favored plausible but incorrect generated information. Semantic similarity alone did not guarantee authority or truth.
This becomes more difficult inside an organization. A single question might touch a policy page, a database row, a Slack discussion, a ticket, a workflow definition, and a user-specific permission. A recent enterprise RAG benchmark intentionally includes near-duplicate documents, incorrect filing, conflicting information, missing information, and data spread across multiple business systems. Although the benchmark uses synthetic enterprise data and remains a preprint, the failure modes are familiar to anyone who has worked with internal knowledge.
Adding more documents can therefore amplify three risks:
- More old material increases the chance that obsolete guidance will be retrieved.
- More near-duplicates can let repetition dominate ranking, even when the repeated claim is no longer authoritative.
- More conflicting excerpts force the model to decide which source to trust, often without the metadata needed to make that decision safely.
The problem is not a lack of tokens. It is a lack of temporal and operational coherence.
An agent operates across several clocks
“The knowledge base is up to date” sounds like a simple statement. In practice, an enterprise agent depends on several independently changing versions:
- when a business fact or policy becomes effective;
- when the source document was revised;
- when a connector last synced successfully;
- which parser, chunking method, embedding model, and index generation processed it;
- which prompt commit is running in production;
- which workflow and tool contract are active;
- which database or semantic model version answers the query;
- which permissions apply to the current user;
- which corrections remain in agent memory.
Each clock can be valid on its own. Context drift appears when they stop moving together.
Official product documentation offers concrete examples. Amazon Bedrock documents that changes in a source must be synchronized before they appear in a knowledge base. It also warns that direct ingestion and source synchronization can diverge: a direct index change may not update the original source, and a later source sync may overwrite it. Google Cloud exposes fields such as refresh interval, last synchronization time, update time, and recent errors for data connectors. LlamaIndex uses document IDs and hashes to decide whether a document needs to be reprocessed.
These are not minor implementation details. They are evidence that freshness is a state that must be measured, not a label that can be assumed.
Prompt and workflow versions introduce the same issue. A production prompt may still expect an old database field. A new tool definition may be deployed before the workflow that knows how to use it. An updated policy may reach the index while an older approval rule remains active. Even when every deployment is individually successful, the combined runtime may be inconsistent.
Treat context as a release, not a pile of documents
Software teams would not knowingly deploy half of one application release and half of another. Enterprise context deserves the same discipline.
One useful pattern is a Context Release Manifest: a versioned record of the exact knowledge and operational dependencies used by an agent run. It might pin the prompt commit, workflow version, tool contract, knowledge index generation, semantic model, policy version, and permission scope. Each source can carry an owner, revision, effective time, ingestion time, validation time, and content hash.
This is a general architecture pattern, not a claim about a specific platform feature. Its purpose is to make one previously vague question answerable: What reality did this agent believe it was operating in?
The manifest should be paired with a Context Contract. Data contracts already express commitments between producers and consumers around schema, freshness, and quality. Applied to agent context, the contract can define:
- who owns a knowledge source;
- what its schema and business meaning are;
- how stale it is allowed to become;
- which access controls must survive ingestion;
- which source wins when two sources conflict;
- what the agent must do when freshness or provenance cannot be verified.
For low-risk work, the fallback may be to warn the user. For a financial operation, permission change, legal decision, or irreversible action, the correct behavior may be to abstain and escalate.
That distinction is important. Freshness is not a single global threshold. A product FAQ may tolerate a day of lag. Inventory, pricing, access rights, or fraud signals may require runtime verification. The system should apply a freshness objective appropriate to the decision being made.
A practical update path
A safer context pipeline separates ingestion from publication. Instead of continuously mutating the production index with no clear boundary, teams can process a new generation, test it, and then publish it atomically.
A practical flow looks like this:
- Detect a source event, change-data-capture event, or scheduled refresh.
- Resolve the canonical identity, owner, revision, effective time, access controls, and provenance.
- Validate freshness, schema, policy, duplication, deletion, and conflict rules.
- Parse, chunk, embed, and build a shadow index generation.
- Run retrieval regressions, answer evaluations, and permission tests.
- Publish the prompt, workflow, tools, semantic model, and index as a compatible release—or block the release if they are not compatible.
- Monitor stale retrievals, unresolved conflicts, synchronization failures, and version skew.
- Revalidate, roll back, or remove obsolete material when a contract fails.
This turns knowledge updates into an observable operational process. It also makes rollback possible. If a new parser loses table structure or a new index reduces citation quality, the system can return to a known release instead of debugging a moving target.
Measure the age of what the agent actually used
Many teams monitor whether an ingestion job completed. That is necessary, but it is not enough. The more useful metrics describe the context seen at decision time:
- Source age: time since the underlying information became effective or was last verified.
- Ingestion lag: time between a source change and successful publication to the active index.
- Deletion latency: time between removal at the source and disappearance from retrieval.
- Provenance coverage: percentage of retrieved material with a source revision, owner, and effective time.
- Stale-hit rate: percentage of answers that relied on superseded content.
- Conflict rate: percentage of retrievals containing contradictory sources.
- Release skew: percentage of runs using incompatible prompt, workflow, tool, schema, or index versions.
- Unowned context rate: percentage of knowledge assets with no accountable owner.
These metrics move the conversation away from “the chatbot seems accurate” and toward a reliability model that engineering, security, and business teams can inspect together.
Retrieval should be selective—and sometimes live
Not every question should be answered from the same storage layer.
Stable procedures and approved documentation are good candidates for indexed retrieval. Rapidly changing operational facts may need a live query against a database, semantic model, or business API. Sensitive questions must preserve the requesting user’s permissions. High-risk answers should return evidence that a person can inspect.
OpenAI’s description of its internal data agent illustrates this layered approach: curated organizational context is combined with runtime warehouse queries when existing context is missing or stale. The company describes this as an internal system, not a public product, so it should be read as an engineering case study rather than a universal blueprint. The broader pattern is still useful: prepare durable context offline, but verify volatile facts at runtime.
Likewise, a very large instruction file is not necessarily better context. OpenAI’s harness engineering team describes using a short navigation file and a structured, versioned documentation system rather than putting every rule into one ever-growing file. Progressive disclosure reduces noise and makes important instructions easier to maintain and test.
The objective is not to show the model everything. It is to reveal the right information at the moment it becomes relevant.
Where an Agent Runtime fits
Context governance does not live in the vector database alone. It crosses models, knowledge, tools, permissions, workflows, memory, and human decisions. That is one reason teams increasingly need an Agent Runtime: a common operational layer where these parts can be assembled, inspected, and managed as one application rather than as disconnected integrations.
We are building ZGI as an open-source, self-hostable Agent Runtime. It brings agents, visual workflows, knowledge, database connections, reusable Skills, model integrations, and tool execution into one workspace. For developers, the aim is to reduce repeated integration work. For teams deploying agents in real environments, the aim is to make the system around the model easier to understand and operate.
ZGI should not be read as a shortcut around the engineering described in this article. The Context Contract and Context Release Manifest are general design proposals, and this article does not claim that ZGI automatically implements every freshness, provenance, release, or rollback control described above. The point is simpler: reliable agents need a runtime where knowledge and action can be governed together, and we are building in that direction in the open.
The next context race is about coherence
Larger context windows will continue to improve. Retrieval systems will become faster. Models will get better at resolving ambiguity. None of that removes the need to know when a source changed, who owns it, which version was used, whether the user was allowed to see it, and what the agent should do when those facts cannot be reconciled.
Enterprise agents do not fail only because they lack information. They also fail because they receive too much information from different versions of reality.
The next step is not simply to give agents more context.
It is to make context current, compatible, attributable, and safe to act on.


Top comments (0)