Context Is the New Perimeter: Governing AI Agents with Programmable Application Delivery

F5 Ecosystem | July 22, 2025

There’s a persistent, dangerous myth in AIOps: “MCP is just another API.”

Sure. And SOAP was just XML with delusions of grandeur.

Agent-based architectures, especially those built on Model Context Protocol (MCP), rely on explicit context blocks carried across every request. This isn’t about neural hunches or “LLM memory.” It’s serialized, structured, operational context—think JSON, not vibes—passed along with every call to help agents keep track of goals, roles, policies, and workflow state.

But here’s the reality: context drifts. And when it does, your agents don’t just get confused. They get confidently wrong, operationally unpredictable, or flat-out dangerous.

The problem is that folks who are already toying with—and deploying—AI agents, are ahead of the curve. And they are. Our latest research tells us 9% have already put AI agents in production, 29% have a formally defined approach to move forward, and another 50% are in “early stages” figuring it out. That’s a mere 11% who aren’t even thinking about AI agents.

They’re moving fast. Faster than the industry.

There are no real compliance tools, no security, no best practices. There are virtually no existing options for addressing the security risks that emerge right alongside any new technology.

Except programmability. Yeah, this is where your application delivery and security platform comes in. Not as a dumb pipe, but as a programmable gatekeeper of cognitive hygiene and context discipline.

How context actually travels

Context isn’t an abstraction. It’s right there in the payload. A real-world MCP request looks like this:

POST /agent/v1/invoke HTTP/1.1

Host: agentmesh.internal

Authorization: Bearer xyz123

Content-Type: application/json

X-MCP-Version: 1.0

{

"context": {

"user": { ... },

"goal": "...",

"prior_messages": [ ... ],

"task_state": { ... },

"security": { ... }

},

"input": { "prompt": "Now visualize it with a quick chart." }

}

This context block isn’t optional. It’s the agent’s working memory. It contains everything the agent “knows” and every assumption it’ll act on. Every hop carries it forward: uncompressed, sometimes unchecked, and almost always growing staler with each turn.

How context drifts (and why it matters)

It’s this baggage that ultimately introduces context drift. Drift happens when:

  • Old goals and task state linger after the user has moved on.
  • Prior messages pile up, bloating requests and misleading agents.
  • Security tags stick around where they don’t belong.
  • Multiple agents update the same thread without clearing out the cruft.

By the time agent #4 gets the baton, it’s making decisions based on outdated instructions, ancient access controls, and “goals” no one cares about anymore. Agents don’t complain. They just hallucinate with confidence and pass the mess downstream.

Programmability: The context janitor you actually need

If you still think of your application delivery platform as just a load balancer, congratulations. You’re playing checkers while the rest of the world is playing chess.

In agentic architectures, programmable application delivery is the only layer that has:

  • Full visibility into every request
  • The authority to inspect, transform, block, or sanitize context
  • No attachment to any one agent’s opinion or memory

Context truncation at the edge

Don’t let agents drag around the entire history of humanity with every request.

  • Strip prior_messages down to the last N exchanges.
  • Auto-expire goals based on time or state change.
  • Drop task_state when intent switches from continuation to new-task.

Now you’re enforcing memory budgets and cognitive hygiene before the agent even processes the input.

Classification and policy enforcement

If your context block says security.classification = confidential but you’re about to hit a public summarization API, you need a programmable policy cop at the edge to block, redact, or mask sensitive fields, and validate access scope on every request. Large language models (LLMs) won’t second-guess your policies; they’ll just leak.

Intent drift detection

Did a user pivot from “summarize quarterly metrics” to “generate a slide deck”? The context needs to reset, not just accumulate. If the request intent changes but context still includes stale goals and task state, kill the context and start fresh. That’s how you avoid agents solving yesterday’s problem with today’s data.

Telemetry and drift monitoring

Your application delivery layer should be tracking:

  • Token sizes of context blocks over time
  • Growth rates of prior_messages
  • Patterns of goal/task mismatch per agent

That’s how you spot context bloat and drift before it explodes. Monitoring gives you real answers when leadership asks why your “autonomous agents” act like overconfident interns.

You need a context janitor, not just a firewall

LLMs will happily consume all the context you throw at them and make a mess if you’re not careful. Agents won’t warn you when context drifts, goals get stale, or task history grows toxic. Your programmable delivery layer not only will but must.

It’s the only neutral, all-seeing, policy-enforcing layer left.

In the age of agentic AI, your application delivery platform isn’t just routing traffic. It’s your semantic firewall, your compliance cop, and your last best hope for keeping agents from becoming overconfident liars with root access.

Because if you let drift and bloat win, you lose. Not just control, but trust in your entire AI stack.

Share

About the Author

Related Blog Posts

At the Intersection of Operational Data and Generative AI
F5 Ecosystem | 10/22/2024

At the Intersection of Operational Data and Generative AI

Help your organization understand the impact of generative AI (GenAI) on its operational data practices, and learn how to better align GenAI technology adoption timelines with existing budgets, practices, and cultures.

Using AI for IT Automation Security
F5 Ecosystem | 12/19/2022

Using AI for IT Automation Security

Learn how artificial intelligence and machine learning aid in mitigating cybersecurity threats to your IT automation processes.

The Commodification of Cloud
F5 Ecosystem | 07/19/2022

The Commodification of Cloud

Public cloud is no longer the bright new shiny toy, but it paved the way for XaaS, Edge, and a new cycle of innovation.

Most Exciting Tech Trend in 2022: IT/OT Convergence
F5 Ecosystem | 02/24/2022

Most Exciting Tech Trend in 2022: IT/OT Convergence

The line between operation and digital systems continues to blur as homes and businesses increase their reliance on connected devices, accelerating the convergence of IT and OT. While this trend of integration brings excitement, it also presents its own challenges and concerns to be considered.

Adaptive Applications are Data-Driven
F5 Ecosystem | 10/05/2020

Adaptive Applications are Data-Driven

There's a big difference between knowing something's wrong and knowing what to do about it. Only after monitoring the right elements can we discern the health of a user experience, deriving from the analysis of those measurements the relationships and patterns that can be inferred. Ultimately, the automation that will give rise to truly adaptive applications is based on measurements and our understanding of them.

Inserting App Services into Shifting App Architectures
F5 Ecosystem | 12/23/2019

Inserting App Services into Shifting App Architectures

Application architectures have evolved several times since the early days of computing, and it is no longer optimal to rely solely on a single, known data path to insert application services. Furthermore, because many of the emerging data paths are not as suitable for a proxy-based platform, we must look to the other potential points of insertion possible to scale and secure modern applications.

Deliver and Secure Every App
F5 application delivery and security solutions are built to ensure that every app and API deployed anywhere is fast, available, and secure. Learn how we can partner to deliver exceptional experiences every time.
Connect With Us
Context Is the New Perimeter: Governing AI Agents with Programmable Application Delivery | F5