Zero Labs
Industry News / AI

Standalone Agent Frameworks vs. Operated Platforms: What a Framework Doesn’t Operate

Source · Towards AI By MongoDB

From the publisher’s feed, collected in the ZeroLabs newsroom.

Written by Tony Kim.Many teams build their architecture on standalone agent frameworks because frameworks are the fastest way to get orchestration working. What they often don’t realize is that convenience ties a long-lived production commitment to the layer most likely to change under them. That’s because choosing agent infrastructure is choosing which layer a team’s architecture rests on, and a framework rests it on orchestration: the graph, the tool interface, the memory and state abstractions. Yet this layer is the fastest-moving one in the stack, because capability, like tool use, keeps migrating out of it. Some of it moves into the models themselves, as tool use, planning, and longer context windows become native model behavior. Some of it gets standardized into shared protocols like the Model Context Protocol (MCP), which turns tool connectivity into a common interface rather than framework code. What doesn’t migrate (and where a production commitment should live) is the operated substrate underneath: retrieval and memory, observability, durable state, and governance.Figure 1 — Choosing agent infrastructure is choosing which layer the architecture rests on. Capability keeps migrating up out of the framework into models and shared protocols. The framework shapes part of the harness; the platform operates the rest as the operated substrate that persists across every model and framework swap.Why is a framework the riskiest layer to anchor to?When teams build their architecture on the framework, they tie it to the layer that capability is leaving fastest, and most make that trade without noticing they’ve made it. Think of a standalone agent framework as a toolkit for building an agent’s logic: what the agent does, in what order, with which tools (LangGraph is one example). Orchestration is the framework’s core job: frameworks decide the step-by-step sequence of an agent’s actions, and they’re good at this. Yet a framework isn’t enough for production. When teams realize this, they reflexively reach for a better model or a longer context window, building more around the framework instead of decoupling the durable commitment from the framework’s own contracts.These fixes are themselves a migration: each capability the model absorbs (tool use, planning, extended context) is one more thing the framework used to own and no longer does. The same is happening on the connectivity side. MCP is a shared standard that lets an AI system plug into different tools and data sources the same way every time, which means the adapter code that frameworks once differentiated on is becoming a protocol concern. MongoDB makes this same point directly in “Introducing MongoDB Agent Skills and Plugins for Coding Agents” (March 2026): MCP gives agents connectivity; it doesn’t cover the rest of what an agent platform has to do.What doesn’t move is the substrate underneath: retrieval and memory, observability, durable state, and governance persist across every model upgrade and every framework swap.For a concrete example of this risk, imagine a routine redeploy that wipes an agent’s in-flight context: this is a durability gap, and a framework upgrade won’t fix it.What’s the difference between a framework and a platform?A framework is a toolkit that includes contracts and abstractions for building agent logic, and in LangGraph’s case those contracts are: the orchestration graph, the tool interface, and runtime abstractions like Store, Checkpointer, and Memory. A framework defines the agent’s control flow. A platform operates the systems the agent depends on: retrieval, memory, state, observability, and governance. Between the two sits a harness: the full coordinated runtime that actually executes an agent, with orchestration and tool use, state, and memory, plus observability, governance, and evals, wired together as one running system.While a framework defines the shape of the harness, it doesn’t operate the substrate. This creates gaps: a framework’s contracts shape orchestration and tool use (plus the memory and state abstractions behind Store and Checkpointer), but the rest of the harness still needs to get built. MongoDB states this distinction in “Designing an Agentic Platform: The Infrastructure That Makes Agents Work” (April 2026): what operates the harness (durable execution, fleet-wide cost controls, governance as a structural property) is a separate layer from the framework that defines it. A contract isn’t an implementation: something still has to satisfy the Store interface with a real database, back the retriever adapter with a real search engine, and give the Checkpointer a state store it can actually recover from.Each pillar (a category of operational responsibility a substrate must cover in production, independent of the framework or model running on top of it) has its own version of this gap.One distinction inside these gaps deserves its own definition, because conflating the two terms is a common source of production failures: state vs. memory (see FAQ). In the LangGraph and MongoDB pattern, the checkpointer persists thread-scoped short-term state, which is what lets a run resume after a crash, while the Store persists cross-thread long-term memory, which is what informs future runs.None of this shows up in a demo. It shows up at the first restart and the first time an auditor asks what the agent did and why.What are the four pillars a framework doesn’t operate?The framework may expose hooks or abstractions that touch three pillars: Context Selection, Observability, and Scalability. Each still needs a real system operating behind it in production. The fourth pillar, Governance, doesn’t get an interface at all, and enforcement has to start at the substrate.Context SelectionContext Selection covers retrieval, ranking, filtering, and recency: everything that decides what the agent sees before it decides what to do. Memory-as-retrieval lives here too, since recalling the right memory is a retrieval problem.The framework’s contribution is a retriever adapter and a memory abstraction. Production needs an operated retrieval engine behind them for chunking, index maintenance, metadata prefilters, and hybrid search, which combines semantic (vector) search with lexical keyword search and fuses the results. Retrieval quality depends on that hybrid of scoring and filtering; vector similarity alone often isn’t enough.Atlas Vector Search indexes are maintained asynchronously, so after source data changes, there can be a freshness window before the change is queryable. (see MongoDB’s “How to Index Fields for Vector Search” for the indexing and async-maintenance mechanics). This is an implementation trade-off to plan for vs. a defect, but it means retrieval should never be described as instantly reflecting every write. The corresponding production failure is retrieval serving stale context after a source update, or returning the wrong chunks under metadata filtering at scale.Teams can test this in production by assessing if retrieval reflects a source update within their freshness window, and if it holds up under filtering at scale.ObservabilityObservability for agents means being able to see what an agent did, why it did it, and what it cost, after the fact. This is distinct from database query performance monitoring, and the unit of analysis is the agent’s decision.The framework emits step callbacks and logs. Logs are necessary but insufficient: production needs a causal record of what was retrieved, decided, done, and what it cost. On top of that record sit retrieval-relevance signals, hallucination-rate tracking, cost per task, and regression testing against past behavior. Without this, production failure occurs when an auditor or an on-call engineer asks “why did the agent do that?” and the system has logs but no decision trace.Teams can test this in production by how successfully they can reconstruct why a single action happened, and attribute its cost.ScalabilityScalability here covers what enables agent traffic to scale without contending with the core data tier: indexing, concurrency control, and workload isolation. The framework’s contribution is the Checkpointer: a contract for saving and restoring state. Production needs an operated state store behind it, one that resumes from a checkpoint after a crash and stays consistent under concurrent writes from multiple agents. It’s the framework contract with the heaviest operational requirement behind it.A caveat on consistency: the substrate gives teams primitives for concurrent consistency, like transactional writes and isolation controls. It doesn’t guarantee correctness out of the box. The application still designs its state model and write paths.Failure in production shows up as contention: agent traffic degrades the operational database it shares, or backfill and index-build throughput starves live-query latency. The framework runs in the team’s process and doesn’t manage any of this.Teams can test this by assessing if agent load stays isolated from operational load when an interrupted run is resumed from a checkpoint.GovernanceGovernance covers who can access what, how sensitive data is handled, and whether actions are auditable. Unlike the other three pillars, there’s no framework-provided interface for governance at all. That’s because a framework can’t reliably enforce a policy the agent can bypass, since the policy sits in application code the agent orchestrates. Enforcement has to sit below the agent, at the substrate, where the agent can’t route around it.In practice that means access control and PII and secrets handling are enforced at the data layer, creating an auditable trail that doesn’t depend on the agent choosing to write it. It also means a reduced prompt-injection surface, where prompt injection means hidden instructions in retrieved content tricking the agent into unintended actions.Teams can test this in production by trying to enforce a deletion or access policy that the agent itself can’t bypass.Figure 2 — For three pillars, a framework may expose hooks or abstractions that still needs to be operated. Governance gets none: enforcement has to start at the substrate.What should teams actually run in production?In production, teams can run a framework on an operated platform. For example, LangGraph handles execution and reasoning, while its Store and Checkpointer bind to the operated substrate, which provides retrieval and memory, observability, durable state, and governance. The Store binding carries long-term, cross-session memory; the Checkpointer binding carries execution state for a thread. MongoDB has documented this pattern with LangGraph, where both abstractions persist to MongoDB collections, in “Powering Long-Term Memory for Agents with LangGraph and MongoDB” (August 2025).Figure 3 — In production, an orchestration framework runs the loop while its Store and Checkpointer bind to an operated substrate.If LangGraph is an example of a framework, MongoDB is an example of the operated platform it can run on. It’s one reference implementation that satisfies most of the substrate’s requirements, short of application-level policy design and enforcement, which the platform provides primitives for but the team still designs.Context Selection offers the clearest example. Agent workloads produce heterogeneous context constantly: conversation turns, tool outputs, retrieved chunks, and structured records that don’t share a schema. MongoDB’s document model (schema-flexible records instead of rigid relational tables) handles that natively.Retrieval also unifies in the same substrate: MongoDB Vector Search and text search can combine through reciprocal rank fusion (MongoDB’s $rankFusion operator, per “How to Perform Hybrid Search”) to blend semantic and lexical relevance, plus graph-shaped lookups through the aggregation pipeline. This keeps everything in one layer, so there’s no separate vector database or external search service for the team to operate.In terms of freshness, MongoDB’s automated embedding for Atlas, introduced in “AI Search for Agents: Automated Embedding in MongoDB Atlas” (May 2026), shrinks the stale-embedding window by generating and updating embeddings inside the platform rather than in application pipelines. It doesn’t completely eliminate staleness; the freshness test still applies.The same substrate covers two more pillars. Workload isolation, like separate indexes, clusters, or tiers, keeps agent traffic off the core data tier; that’s Scalability. Access control and auditability, like role-based access control, encryption, and audit logging, are enforced at the substrate itself, below the agent; that’s Governance.While the platform provides primitives, teams still need to build the agent, design the state model, and do the retrieval engineering. MongoDB is just one reference implementation of several that would satisfy the same four pillars; any substrate that passes the four-pillar tests in the next section is doing the job.How do teams know the substrate is working?Each pillar converts to a pass/fail test teams can run against their current system, plus one that cuts across all four: costDecision-trace test: reconstruct why a single agent action happened, from retrieved context through decision to outcome.Recovery test: kill an in-flight run and resume it from checkpoints without data loss or duplicated side effects.Freshness test: update a source document and confirm retrieval reflects the change within SLAs.Control test: attempt an out-of-scope action from the agent and confirm the substrate blocks it, without relying on the agent’s own code.Cost test: attribute retrieval and inference cost to an individual task.Then consider the limits, which are real. The platform doesn’t decide what’s worth remembering; memory curation stays an application problem. It doesn’t decide what degree of autonomy is safe for a given workflow; that’s a design judgment, argued at more length in MongoDB’s “The Case for Bounded Autonomy” (February 2026). And the four-pillar substrate isn’t free: it earns its cost in complex, long-running, multi-agent, or regulated production systems, not in every deployment (see FAQ for when a framework alone is enough).Pick the layer your team can afford to be locked intoHere’s a decision rule to follow: choose a framework for what it’s good at today (wiring and orchestration ergonomics), and keep it swappable. Put the durable commitment into the substrate: the part still running after two model generations and a framework migration.There’s a direct test for whether teams have done this. If switching frameworks would force a team to re-platform retrieval and memory, observability, durable state, and governance at the same time, the framework was never the replaceable layer they assumed. The coupling between framework and substrate is what determines lock-in; a substrate that teams can keep while swapping frameworks is what’s worth optimizing for.The next step is to run the five tests above against whatever’s in production now. A failed test usually means an interface exists, but the system behind it is not being operated yet.FAQWhat is the difference between an agent framework and an agent platform?A framework is a toolkit for building an agent’s logic and orchestration, such as LangGraph. A platform is the infrastructure that operates the substrate underneath: retrieval and memory, observability, durable state, and governance. The framework defines contracts; the platform operates the substrate that satisfies them.What is the difference between agent state and agent memory?State is the current task’s working context: what lets a crashed run resume, persisted by a checkpointer. Memory is what the agent retains across separate sessions over time, persisted by a store. They’re different contracts with different operational requirements.Does MCP replace the need for an agent framework or platform?No. MCP standardizes connectivity, giving agents a common way to reach tools and data sources. It doesn’t orchestrate agent logic and doesn’t operate retrieval and memory, observability, durable state, or governance.When is a standalone framework enough on its own?For single-user, single-session tools with no durability, audit, or scale requirements, a framework alone may be sufficient. The operated substrate earns its cost in long-running, multi-agent, or regulated production systems.Standalone Agent Frameworks vs. Operated Platforms: What a Framework Doesn’t Operate was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.