Most enterprise teams building production agents treat memory as a configuration detail. They reach for a vector store, attach it to the agent runtime, and move on to the next sprint. What they have actually done is make a foundational infrastructure decision without realising it, and the consequences compound quietly until the system plateaus and nobody can explain why.
The core problem is architectural confusion between three distinct things: raw execution logs, accumulated knowledge, and reusable skills. These are not the same data at different stages of a pipeline. They serve different functions, decay at different rates, and need to be stored, indexed, and updated through different mechanisms. Conflating them is the most common reason enterprise agents fail to improve over time despite accumulating months of operational data.
Companion piece to our broader work on agent memory design. See AI Agent Memory: Architecture & State Decay for how behavioral state decay manifests in long-running agents and the infrastructure patterns that prevent it.
The Three-Layer Separation You Cannot Skip
Execution Logs
Execution logs are the raw trace of what an agent did: tool calls, intermediate outputs, errors, retry sequences. They are high-volume, low-signal, and expensive to query directly. Most teams store them in a logging backend and treat them as an audit trail. That is correct for compliance purposes, but it is insufficient for learning purposes.
The mistake is treating execution logs as the memory layer. Querying raw traces at inference time is slow, noisy, and does not generalise across task variants. Execution logs are the input to a knowledge pipeline, not the pipeline itself.
Accumulated Knowledge
The second layer is accumulated knowledge: structured, consolidated insight derived from execution experience. This is where patterns across runs get extracted, contradictions get resolved, and generalised heuristics get written down in a form an agent can actually use.
WikiSkill formalises this as a persistent wiki that co-evolves with the agent's skill set. The wiki is not a log and it is not a skill. It is the intermediate representation that makes skill evolution systematic rather than accidental (Tang et al., arXiv 2026). Without this layer, optimisation insights remain scattered across individual run histories and cannot be reused across iterations.
Executable Skills
Skills are the third layer: packaged workflows and specialised knowledge that extend what an agent can do without requiring the underlying model to rediscover the approach from scratch. Skills built on top of a well-maintained knowledge base generalise further and transfer more reliably than skills built directly from raw experience.
The architectural implication is that you need write paths from execution logs into the knowledge layer, and read paths from the knowledge layer into skill construction. If either path is missing or manual, the system does not learn.
Why Wiki-Style Consolidation Outperforms Direct Retrieval
The retrieval-augmented generation pattern most teams default to treats memory as a lookup problem. The agent embeds a query, retrieves relevant chunks, and generates a response. This works for static knowledge bases. It does not work well for knowledge that needs to evolve as the agent accumulates experience.
Wiki-style consolidation treats the knowledge base as a living document. New experience is not simply appended. It is integrated, which means contradictions with existing entries are identified, redundant entries are merged, and the overall structure is maintained so that retrieval remains coherent as the corpus grows.
The practical payoff is significant. Tang et al. found that persistent knowledge accumulation in the wiki is the critical factor in effective skill evolution. Ablation studies removing the wiki layer caused measurable performance degradation even when the skill evolution mechanism itself remained intact (Tang et al., arXiv 2026). The wiki is not an optimisation. It is load-bearing infrastructure.
Context Routing in Enterprise Environments
Enterprise agent deployments introduce a complication that most research benchmarks do not model: multiple agents, multiple teams, and multiple domains sharing infrastructure. A skills library built by a customer support agent should not contaminate the knowledge base used by a financial compliance agent. Context boundaries matter.
The routing problem is deciding which knowledge and which skills are visible to which agents at inference time. This requires a governance layer on top of the memory architecture: namespace separation, access controls on the wiki, and explicit policies about which execution logs feed which knowledge consolidation processes.
Teams that skip this step discover the problem at the worst possible time, when a skill evolved in one context produces unexpected behavior in another. The fix is not a prompt change. It is a structural change to how the memory layers are partitioned and routed.
The Harness Layer and Its Compounding Consequences
The harness is the code your team writes to connect execution logs, the knowledge base, and the skill library. It is not a product you buy. It is an infrastructure decision you make, and it determines the ceiling on what your agents can learn.
A thin harness that simply appends logs to a vector store gives you retrieval. It does not give you consolidation, and it does not give you skill evolution. A harness that implements write paths from logs into a structured wiki, and read paths from the wiki into skill construction, gives you a system that can improve systematically over time.
The compounding effect is real. An agent operating with evolved skills can outperform a substantially larger model without them, and skills evolved by one model can outperform self-evolved skills in the same model family (Tang et al., arXiv 2026). The architecture you build today determines whether you can exploit these dynamics in six months or whether you are rebuilding the harness from scratch.
What to Prioritise Before the Architecture Hardens
The decisions that are hardest to reverse are the ones about separation. Once execution logs, knowledge, and skills are stored in the same system with the same schema, separating them later requires a migration that touches every downstream consumer.
Start by defining the write path explicitly. What triggers a consolidation run from execution logs into the wiki? Who owns that process? How are conflicts resolved? These are not ML questions. They are data engineering questions, and they need answers before the system goes to production.
The second priority is skill portability. WikiSkill's finding that skills transfer effectively across models and model families is commercially significant. It means the knowledge your agents accumulate is not locked to a single model version. But portability only holds if the skill representation is model-agnostic from the start. Encoding model-specific behavior into the skill schema forfeits that property.
Where Vector Labs Fits
We design and build production agent memory architectures for enterprise teams, with particular focus on the harness layer that connects execution experience to persistent knowledge and skill evolution. Our published work on agent memory design, including the patterns covered in AI Agent Memory: Architecture & State Decay, reflects the infrastructure decisions we work through with clients building long-running agent systems. If you are making these architecture decisions now, we are worth talking to before they harden: vector-labs.ai/contacts.
FAQs
A vector store is a retrieval mechanism. It stores embeddings and returns semantically similar chunks at query time. A persistent knowledge base is a structured, maintained artifact where entries are consolidated, contradictions are resolved, and the overall corpus is kept coherent as new experience arrives. The distinction matters because retrieval from a vector store does not improve the quality of what is stored. Consolidation into a knowledge base does. For agents that need to improve over time, the knowledge base layer is the mechanism that makes that possible.
Namespace separation is the baseline requirement. Each agent domain should have its own partition in the knowledge base, with explicit policies controlling which execution logs feed which consolidation processes. Access controls on the wiki layer prevent skills evolved in one domain from being retrieved in another without deliberate cross-domain promotion. This is a governance decision as much as a technical one, and it needs to be made before the system scales to multiple agent types rather than retrofitted afterward.
Yes, and this is one of the more commercially significant findings in recent research. Tang et al. found that skills evolved by one model can outperform self-evolved skills in another model family, which means the knowledge your agents accumulate has value beyond a single model version. The architectural requirement is that skill representations must be model-agnostic from the start. If your skill schema encodes model-specific prompt formats or API behaviors, portability breaks. Designing for model-agnostic skill representation is a day-one decision, not a migration you can defer.
Consolidation frequency depends on task volume and how quickly the operating environment changes. High-frequency task domains may warrant daily consolidation runs. More stable domains can consolidate weekly without meaningful capability loss. Ownership is the harder question. Consolidation is a data engineering process with ML consequences, which means it sits at the boundary between two teams that often do not share a roadmap. Assigning explicit ownership to a platform or MLOps function, rather than leaving it implicit, is the decision that most teams delay and later regret.
The clearest signal is an agent that accumulates operational data but does not improve on recurring task types over time. A secondary signal is retrieval latency that grows with log volume, which indicates the system is querying raw execution history rather than a consolidated knowledge layer. A third signal is inconsistent agent behavior across similar tasks, which often means conflicting entries in an unconsolidated store are producing different retrieval results on different runs. These symptoms do not resolve through prompt engineering. They require structural changes to how the memory layers are separated and maintained.
The case is arguably stronger for smaller models. Tang et al. found that smaller models equipped with evolved skills can outperform substantially larger models without them. This has direct cost implications: a well-architected memory layer can reduce the model tier required to achieve a given capability level, which compounds into significant inference cost savings at production scale. The investment in persistent knowledge infrastructure is not justified by model size. It is justified by task recurrence and the degree to which accumulated experience can be systematically reused.

