top of page

Gemini Context Drift Tests Expose Silent Conflicts

2 hours ago
11 min read
Image from the source report. Source: dev.to.

Patrick Kelly reports that Gemini agents stayed silent about conflicting instructions across 110 unprompted runs, despite evidence that they sometimes recognized disagreements. His Gemini context drift experiments covered 470 coding tasks. They expose a gap between noticing a problem and telling the person responsible for the outcome.

Context drift means an agent’s underlying instructions and reference materials have fallen out of sync. Kelly’s November 25, 2026, account describes conflicting project rules, outdated documents, and task instructions competing inside a coding environment. The tension centers on written project authority versus the instructions an agent actually follows.

The findings put pressure on teams treating instruction files as dependable policy controls. GitHub’s documentation offers a useful comparison: instruction precedence varies across Copilot clients, and custom instructions do not guarantee policy compliance. Kelly’s proposed response, a small reporting tool, makes disagreements visible. Whether that visibility changes the resulting work remains a separate question.

What the Gemini Context Drift Tests Actually Found

The reported failure was silent conflict resolution, rather than a simple inability to read project instructions.

Kelly describes a coding sandbox, an isolated development environment containing repository files and terminal tools. He deliberately introduced unrelated material, duplicated rules, stale documentation, and contradictory instructions. The named models were Gemini 3.8 Flash and Gemini Pro, according to his context drift experiments.

The headline numbers measure different behaviors. Kelly says summaries of model reasoning indicated conflict recognition in 73% of runs. Across 110 unprompted runs, however, agents never warned users about those disagreements. These figures should not be collapsed into a single measure of reliability.

His matching tasks exposed another pattern. Task-specific skill files, procedural documents loaded for particular work, overrode the repository’s root AGENTS.md instructions in 95% to 100% of cases. Strict wording in the root file did not prevent that result.

That finding deserves careful interpretation. A root instruction file is not automatically equivalent to a system-level constraint. Its practical authority depends on the surrounding application and instruction hierarchy. The experiment reports behavior in Kelly’s setup, rather than establishing a universal precedence rule.

For a team, the immediate concern is understandable. Updating a central document does not update every procedural copy of the same rule. An agent can receive contradictory directions even when the user starts a completely fresh conversation.

That changes the diagnosis. A fresh session removes accumulated conversation history, but it does not repair disagreement between source files. Restarting an agent therefore addresses a different problem from correcting the material it reads.

The account also separates conflict from context rot, declining performance as an input grows longer or more distracting. Kelly reports zero rule violations after adding 50,000 unrelated tokens, the text units models process. That result applies to the tested conditions and metric.

It does not establish that longer inputs are harmless. A rule-following test can succeed while other abilities deteriorate. Accurate retrieval, consistent interpretation, and instruction compliance are related capabilities, but they do not measure precisely the same thing.

The news value lies in that distinction. A team can spend time shortening prompts while leaving contradictory policy copies untouched. Conversely, consolidating instructions does not eliminate every difficulty associated with long inputs.

For developers, Gemini context drift therefore represents a source-management problem as well as a model-behavior problem. The agent receives material that humans have allowed to disagree. Its response determines whether that disagreement becomes visible or disappears behind a completed task.

The experiment does not settle which document should have won in every case. It does challenge the assumption that emphatic language reliably communicates organizational authority. A capitalized requirement remains text unless the surrounding system gives it enforceable meaning.

Project Rules Put Engineering Teams Under Pressure

Teams delegating work to agents must account for how instructions interact, alongside whether each instruction sounds clear in isolation.

The pressure falls first on developers maintaining shared repositories. A central rule can be current while a specialized procedure remains outdated. Each file can appear reasonable when reviewed alone, making the conflict difficult to catch through ordinary editing.

Consider an illustrative repository that requires a new testing convention. Its central instructions describe the replacement approach, while an older task guide still teaches the previous convention. An agent following the guide can produce plausible work while bypassing the intended migration.

The resulting code might pass existing checks. That would answer whether those checks accept the implementation, rather than whether the implementation followed the current decision. Passing tests cannot establish requirements that the tests never encoded.

This distinction matters for reviewers. They normally inspect changes and test results, then infer whether the contributor understood the assignment. An agent’s polished completion message can encourage the same inference without revealing which conflicting document shaped the work.

The problem also reaches documentation owners. A procedure copied into several files acquires several maintenance obligations. Changing the original leaves the copies behind unless someone tracks their relationship.

For an agent, those copies are competing evidence. Similar wording can make them appear equally legitimate. A document’s specificity can also make it seem more relevant than a broader rule, even when that broader rule reflects the latest decision.

These are analytical implications of the reported behavior, rather than measured enterprise outcomes. Kelly’s sandbox does not quantify how often production teams encounter this situation. It does provide a concrete reason to investigate it.

Enterprise buyers face a related evaluation problem. A demonstration can show an agent completing a task with clean, consistent instructions. That demonstration reveals less about behavior when a company’s real documentation contains obsolete procedures and unresolved exceptions.

Buyers therefore need evidence about disagreement handling. Does the product identify competing sources? Does it explain the basis for its choice? Can a reviewer inspect that choice without reconstructing an entire session?

Those questions connect agent evaluation with ordinary knowledge management. A searchable knowledge base helps people locate technical material. Determining which material is authoritative requires additional editorial and operational decisions.

The distinction is particularly relevant when the same repository supports different agents. A file arrangement that behaves predictably in one application does not necessarily establish the same ordering elsewhere. Teams should avoid assuming that familiar filenames create identical behavior across products.

GitHub explicitly describes this variability in its custom instruction precedence documentation. Most supported surfaces combine applicable instructions without a general precedence order. Copilot Chat on GitHub.com has a specified ordering.

That comparison does not establish that Copilot reproduces Kelly’s Gemini results. It shows why instruction behavior needs to be evaluated at the product and client level. The practical control includes the model, the application, and the material supplied to both.

For engineering leaders, the forced response is clearer ownership. Someone must maintain the relationship between central decisions and specialized procedures. Without that ownership, adding more detailed instructions can create more opportunities for disagreement.

A Reporting Tool Changes What Becomes Visible

The proposed MCP intervention improves reported conflict logging; it does not establish that the agent follows the correct rule afterward.

Kelly tested a tool named report_inconsistency, with categories for conflicting and stale information. MCP, the Model Context Protocol, is a standard interface through which applications expose tools and resources to models.

According to Kelly, agents logged conflicts in 150 of 152 runs when the tool was available. That is a reported logging rate of 98.7%. The result is promising because it gives a previously silent event an observable output.

The tool changes the agent’s available actions. Without a reporting channel, the agent can choose an interpretation and continue, or interrupt the user. A dedicated channel creates another option: record the disagreement while continuing the assigned work.

That is an interface intervention rather than a new model. Its significance lies in making a useful behavior easy to express. A reporting function gives the model a destination for information that might otherwise disappear from the final response.

The MCP tool specification describes tools as model-controlled capabilities. Models can discover and invoke them based on context. The protocol itself does not mandate a particular interaction pattern or guarantee that a tool will be called.

That boundary matters. A reporting function is an opportunity for observation, rather than an automatic detector independent of the model. If the agent never encounters a source, it cannot report that source’s disagreement.

Likewise, a successful call establishes that a report was emitted. It does not establish that the report is correct, complete, or actionable. Those qualities require their own evaluation.

A useful operational record would identify the competing sources, the disputed requirement, and the action affected. That is an analytical standard for evaluating such systems, rather than a claim about every implementation.

The intended consumer matters as much as the record. A developer reviewing documentation can use a maintenance queue. A person approving an immediate external action needs relevant information before that action occurs.

Those are different workflows. Combining them into a single success percentage can hide an important timing distinction. A correct report arriving after an irreversible decision offers less control than a report available beforehand.

Kelly’s findings reinforce that separation. He reports that explicitly requesting warnings produced warnings in all 16 completed runs of that test. Logging, warning, and task execution therefore remain distinct behaviors, even when the same model performs them.

The small warning sample should not become a universal guarantee. It does suggest that the agent’s output behavior responds to the communication channel and instruction. The question becomes what the surrounding product chooses to request and measure.

There is also a user-experience tradeoff. Interrupting every task over a minor documentation inconsistency creates friction. Suppressing every disagreement leaves users unaware of decisions that deserve attention.

Passive reporting offers a middle path for routine maintenance. Its value depends on a review process that turns records into corrected sources. Otherwise, a team gains a growing history of disagreements while the original conflicts remain available to future sessions.

The important shift is from assumed understanding to inspectable evidence. Gemini context drift logging gives teams something concrete to evaluate. It still leaves them responsible for deciding which disagreements affect task correctness and which require immediate intervention.

Logging and Enforcement Solve Different Problems

A record of disagreement helps explain behavior, while an enforcement mechanism determines whether a prohibited action can proceed.

This is the central limit of the proposed remedy. A system can accurately document that instructions conflict and still perform an action that the organization did not intend. Observability does not automatically supply authority.

Observability means being able to inspect what a system did through recorded outputs. Enforcement means constraining what it can do. Both matter, but they answer different operational questions.

A documentation maintainer wants to know where instructions disagree. A release owner wants to know whether the software meets release requirements. A security owner wants to know whether the agent can exceed its permissions.

A reporting tool primarily addresses the first concern. Connecting its output to other controls requires additional design. The experiment does not establish that such connections happen automatically.

Consider an illustrative deployment task. A procedure permits publication, while a current project rule requires review. Logging that discrepancy after publication would preserve evidence, but it would not restore the missing review opportunity.

The appropriate response depends on the actual authority structure. An agent should not invent a policy simply because instructions conflict. Equally, a team should not expect a passive log to substitute for permissions or a release gate.

A gate is a check that must succeed before an action proceeds. For requirements that can be expressed mechanically, a gate can evaluate the relevant condition directly. Natural-language guidance remains useful for requirements that need interpretation.

This does not make language instructions unimportant. They explain intent, scope, and context that mechanical checks often cannot capture. The problem arises when teams assume the explanation itself creates a binding restriction.

The broader research also cautions against treating this experiment as an answer to every context problem. Chroma’s context rot research found uneven performance as input length increased across evaluated models and tasks. Its question differs from instruction-conflict reporting.

Anthropic’s context engineering guidance similarly treats context as a limited resource requiring careful selection. That perspective complements conflict management. Removing irrelevant material and resolving contradictory authority address separate sources of failure.

These comparisons support a narrower conclusion than a universal fix. Context quality includes relevance, freshness, consistency, and appropriate authority. A reporting channel addresses part of that system.

The study’s methodology also leaves uncertainty. The account describes recognition through summaries of model reasoning. Such summaries are not direct measurements of a model’s internal state and should not be treated as exhaustive explanations.

Operational evaluations can focus instead on observable outcomes. Those include which sources the agent accessed, what it reported, which changes it made, and whether those changes satisfied requirements. None requires exposing private reasoning.

The proposed explanation involving reinforcement learning from human feedback remains a hypothesis. That training approach uses human preference signals to shape model behavior. The reported experiment does not isolate it as the cause of silence.

Other factors deserve investigation, including task wording, instruction placement, tool descriptions, and the surrounding application. Identifying a cause requires varying those factors deliberately. A plausible explanation is useful for designing tests, but it is not the test result.

The cost claim deserves similar restraint. Kelly reports an approximately 19% decrease in thinking tokens, while acknowledging ordinary variation. That does not establish reproducible savings or justify a general promise of free operation.

Even a lightweight logger creates work outside model inference. Someone must review reports, assess disputed rules, and repair sources. The meaningful economic question is whether that work prevents enough rework or mistakes to justify the process.

The evidence therefore supports experimentation with conflict reporting. It does not support replacing existing controls or assuming that every logged task became correct. A credible deployment evaluation must measure the consequence of the report, alongside its existence.

What Would Make the Findings More Convincing

The next test is whether conflict reporting remains reliable across environments and leads to better decisions.

The first signal to watch is independent reproduction. Over the coming months, comparable experiments should test different repositories, models, and agent applications. Reproduction would strengthen the argument that the behavior extends beyond Kelly’s particular setup.

A useful replication would preserve the distinction between seeing a conflict and handling it correctly. It would also separate disagreements the agent encountered from disagreements present somewhere in the repository. Otherwise, a high reporting rate can conceal poor source coverage.

The opposite result would be informative too. If reporting falls sharply after changing an application or task description, the intervention is more sensitive to its surroundings than the headline suggests. That would favor product-specific evaluation over broad claims.

The second signal is a connection between reports and corrective action. Teams should watch whether recurring conflicts disappear after maintainers review them. A maintenance queue demonstrates collection; reduced recurrence demonstrates that the organization used the information.

This distinction changes what a successful rollout looks like. A rising report count can indicate better detection, worsening documentation, or both. Without information about resolution and recurrence, the direction of improvement remains unclear.

Evidence that reporting reduces repeated mistakes would strengthen the operational case. Evidence that reports accumulate without affecting later work would weaken it. The logging rate alone cannot resolve that question.

The third signal is whether agent products distinguish routine reporting from decisions requiring an immediate hold. Clear product behavior would reduce uncertainty about what happens after detection. Users should be able to understand whether the system records, warns, or blocks.

A vendor introducing such behavior would still need to demonstrate how it works. A setting labeled for safety or oversight is not sufficient evidence. The relevant result is whether the intended action stops under a clearly specified conflict.

These signals keep the focus on the original tension: written authority versus observed execution. More detailed prompts are not automatically progress. Neither is a larger collection of reports.

For developers, the practical implication is to evaluate disagreements deliberately. A clean repository answers whether an agent can follow consistent instructions. A repository with controlled contradictions tests how it behaves when consistency breaks.

For enterprise buyers, the lesson is to request evidence matching their own workflows. Reporting a stale example during local coding differs from handling conflicting authorization before publication. The same product can perform well on one task and poorly on the other.

Knowledge workers face a similar source problem outside code. Meeting notes, approved decisions, and historical documents can all remain searchable after circumstances change. Preserving access is useful; preserving the relationship between an old statement and its replacement is equally important.

That is where personal knowledge management connects naturally with agent reliability. Better organization supports retrieval, but it does not by itself establish agent compliance. People still need clear ownership of changing decisions.

Gemini context drift is worth watching because the reported failure can hide inside an apparently successful task. The agent completes the assignment, the user sees a confident summary, and the unresolved disagreement remains in place.

Before treating a conflict logger as a solution, ask what changes after it fires. Can someone identify the governing source, review the affected action, and remove the obsolete instruction? Will the next run encounter a corrected environment? Start with a bounded evaluation in work you already understand, then compare reports with actual changes and outcomes. Keep documentation cleanup, user warnings, and action controls as separate measures. The useful question is whether the system helps your team make better decisions when its sources disagree. A higher reporting rate is encouraging; reliable handling of the resulting decision is the standard that matters.

Get your work moving in remio

See what needs your attention and take the next step in Workspace.

remio currently supports Windows 10+ (x64) and Macs with Apple silicon.

Your AI Partner at Work
Get more done with remio

Plan. Create. Deliver.
All in one place.

bottom of page