Zero Labs
Industry News / AI

Available Does Not Mean Accessible

Source · Towards AI By Kaanti Shetty

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

What human memory can teach about context engineering in AI productsEncoding labels it, storage keeps it, retrieval finds it. Remove any one, and the box is still there but you can’t reach it. (Infographic created using Claude)( if you are a non-member, you can read the free story here )We recently celebrated one of our biggest festivals in India, Diwali, the festival of lights. And every Diwali, we clean and declutter our homes to welcome Lakshmi, the goddess of wealth, and with her, the new year. Boxes come down, lids come off, and our cupboards and wardrobes start revealing things we’d forgotten we owned. It’s a little like Aladdin’s genie, except instead of granting new wishes, it returns our old purchases. Surprise! You already own this.Somewhere between "Oh, this is nice" and "Wait, this is mine?", I started wondering: why is it so hard to remember things we put away ourselves? They’d been there all along, safely stored and completely forgotten. That’s when I got the idea for this article and the realisation thatkeeping something safe and ensuring it is used are two very different achievements. Data can be available yet not accessible.The same distinction matters when building intelligent products. My product may store all possible information about users, conversations, task executions and yet it may fail to see or select the right information at the time of need, resulting in incorrect or inconsistent action. Imagine, my user has shared all the necessary tool inputs. Yet as the conversation proceeds, my platform is requesting the same information again.That is where memory design becomes critical. And memory is what separates the chatbot from an agent. This article is a primer on effective memory design for reliable and accurate product performance without the user having to repeat or clarify details.How does Human Memory Work?I started this article with human memory and how we tend to forget things we had all along. Let’s understand why by getting into the weeds of how our memory works. We will then correlate this to how an intelligent product functions.Cognitive psychology splits remembering into encoding, storage and retrieval. The popular Atkinson and Shiffrin’s 1968 model described three stores:a sensory register, a short term store and a long term store. Encoding turns an experience into a form the brain can keep. Storage holds it. Retrieval brings it back when it is needed.The three stages of memory: encoding turns experience into a keepable form, storage holds it, retrieval brings it back. (Infographic created using Gemini)How does Product Memory Work?An agent within your product does the same three jobs. Encoding is what your agent chooses to extract from a conversation, knowledge artifact, tool call or execution. Retrieval is the search that runs before the product responds to your request. Storage sits in the middle, and it is where data movements and memory types are configured. A builder needs to configure each of these parts in a connected fashion in service of the goal a product is responsible to fulfil.Context engineering is the work of assembling this information, storing it , selecting from it and then retrieving it for the task at hand. Models have limited context windows, much as we have limits on what we can actively hold and work with at once. So storing information is only part of the challenge; assembling the relevant information in a format that can be retrieved when needed is another. Memory design plays a critical role here.The structural composition of information assembly within an autonomous agent’s context workspace. (Infographic representation created using Gemini)We will now dig a little deeper into each of the three memory steps and understand it better using Claude’s design.EncodingThe fundamental cognitive sequence of Memory Encoding. Raw sensory data (Input) is filtered by focus (Attention) before it is transformed and consolidated into a durable, accessible state (Storage).Encoding is the process of transforming incoming information into a form that can be retained in memory.Paying attention and connecting new information to existing knowledge (known as elaborative rehearsal in psychology) supports meaningful encoding for the human brain. That is when knowledge moves from short-term holding in the hippocampus to the neocortex for long-term storage. In the wardrobe example, associating clothes with occasion labels such as work or an evening out encodes it with cues in our memory. Mnemonics is another technique for encoding information.In context engineering, encoding is about distilling an experience - a conversation, an action, an event - into the entities and topics that need to persist, so the right cues can find them later.It could be user-stated preferences and goals, confirmed decisions and constraints, progress and unresolved questions in an ongoing task, or procedures that have worked in a particular setting. We also need to preserve who the information applies to, where it came from, when it was recorded and whether it is confirmed or inferred. “Consider buying a blue coloured shirt” should not become “always prefers blue coloured shirts”.The aim is to retain useful meaning, with its scope intact, rather than every detail the product encounters. That also means deciding what should not be retained and giving users ways to correct or delete it.Claude’s memory saves what matters as you chat in a similar fashion. In Claude, when you mention that a deadline moved against an event, it encodes it against a certain project, area or topic. You can see this yourself under Settings > Memory, where Claude lists every topic it has stored about you.How Claude encodes one conversation into memory files: preferences, topics, people, areas and projects, one file per subject. (Infographic created using Claude)StorageStorage is the retention of encoded or labelled information over time.For us to be able to retrieve the right pair of clothes for the right occasion, where it is stored in the wardrobe matters. I may have labelled my boxes well but are they visible to the eye on opening or kept in a closed drawer that needs to be recalled?Similar to the human brain, once a memory is encoded against its topics and entities, it needs somewhere to live. Working memory holds only what you are using right now; everything else goes into long-term storage, sorted by type. Facts and meaning go to semantic memory, experiences to episodic, and how-to patterns, like skills, stay procedural.Most production systems still collapse all four into the prompt or a single vector index. This results in the usual consequence: mixing episodic logs into a semantic index that degrades retrieval for both.A visual guide to Working, Episodic, Semantic, and Procedural agent storage systems layered over human cognitive memory principles. (Infographic representation created using Gemini)Working memory is the table where you sort. It holds the topics and entities related to current goal. It lives in the context window, so treat it as a budget: everything you add pushes something else out. Store only what this task needs right now. The failure is dumping the full history on the table which leads to context overload and increased probability of hallucination. This has often translated to lower clarification efficiency and broken conversations for my products.Episodic memory is the photo album. Each entry is a specific event with a time and an outcome, such as a workflow that failed on Tuesday because of an inaccessible file path. This stores the outcome, not only the action. “What did we observe about the file path two weeks ago” needs to be looked up by date, and not through mere similarity search. The failure here is an album capturing events with no dates.Semantic memory is the labelled inventory. These are facts that outlive any single event: this user works in Excel, belongs to a certain Business Unit as of Sep 30th. It keeps distilled facts, not transcripts, and gives every fact an update rule. When a fact changes, the old version has to lose. The failure is an inventory that still lists a business unit that no longer exists.Procedural memory is the recipe book. It holds how to do things: standard operating procedures for tasks. This could also be skill.md files associated with tools to ensure context compaction as well as high action accuracy. This gets stored verbatim and it may or may not be agent encoded but manually authored. Humans should review this drawer. The failure is an agent editing its own recipe book unsupervised.Claude’s memory also shows these four drawers. Its working memory is simply the current chat’s context window, nothing more. Episodic memory is your raw chat history, searched live when you ask “what did we discuss about this last week”, with citations linking back to the original conversations. Semantic memory is the layer Claude builds on top: short topic files of distilled facts, such as a moved deadline or the business unit you belong to, saved as you chat rather than summarized after the fact, and a fix to one topic applies to every conversation from then on, so the old version always loses. Procedural memory is Claude Skills: verbatim instruction files for recurring tasks, loaded only when the task calls for them, and written and reviewed by humans rather than edited by the agent itself (unlike a Hermes agent) . One product, four storage types, each with its own update rule and its failure mode designed out.One product, four storage types, each with its own failure mode. (Infographic created using Claude)RetrievalRetrieval is the encoding trip in reverse. A cue in the present, a question, a problem, matches the topics and entities a memory was encoded against, and pulls it back into working memory. Which is why how you encode quietly decides what you can find later.But retrieval only gathers the candidates. Context is finite, so selection plays an important role here: of everything that matched, what actually earns a place in front of the model?In context engineering, selection means deciding what actually enters the model’s context for the current task, and the task should guide that choice rather than a fixed label alone. In practice this is what the retrieval step in RAG, retrieval-augmented generation, does: it gathers candidates and its ranking decides which ones make the cut, all in one motion. And it runs on a small set of mechanisms.Similarity search matches meaning, keyword search matches exact words, and most systems use both, so "the file path from two weeks ago" and "inaccessible path error" can each find their match. Filters narrow the field first, by date, project or source. A reranker then reorders the results so the best few, not just the most similar few, make the window. It also helps to keep separate work in separate contexts, so unrelated details don’t compete, and to split a hard question into smaller searches instead of one big one. The failure modes teach as much as the mechanisms. Similarity search returns what sounds relevant, not what is relevant, so a date question can get a lookalike answer. And every extra chunk retrieved spends working memory, so retrieving too much recreates the overload the design was meant to avoid. The goal is simple: give the model what it needs, not everything the product has stored.Claude’s chat search is retrieval designed exactly this way, and it makes each of these choices visible. Ask it to pick up where you left off and it does not load your history into the window. It runs a search as a visible tool call, and the task you just gave it shapes the query. What comes back is a few focused findings with citations to the original chats, not everything you have ever said. Its memory works the same way: a set of individual entries it saves and updates as you chat, so a new conversation starts pre-selected rather than from zero. Projects take this a step further. Each one keeps its own memory and its own searchable history, so a launch plan and a client engagement never share the same window or fight for a place in it.Why should an AI Product Manager care about this?An overview of the CoALA (Cognitive Architectures for Language Agents) memory framework applied to LLM agent builders. The architecture illustrates the flow between active runtime state (Symbolic Working Memories) and the three pillars of persistent storage (Procedural, Semantic, and Episodic Long-Term Memories). Source: LangChain Blog.Looking at encoding, storage and retrieval brings us back to the question of organisation. It matters how we make sense of information when we encounter it, what meaning we preserve, and what cues will help us find it later. The wardrobe offers a simple illustration: arranging clothes around occasions such as work or an evening out gives us a starting point when deciding what to wear. For intelligent products, organising information with its likely uses in mind can similarly support later selection. The aim is not simply a neatly arranged store, but a useful connection between what is kept, where is it kept and the situations in which it will matter.Take one conversation where your agent failed to remember. Ask three questions in order. Was it never encoded, meaning we did not capture it? Was it stored in the wrong drawer or the wrong shape, such as a decision buried in a transcript with no entity or metadata attached? Or was it stored well and never found, because no cue matched? Each answer has a different owner and a different fix.Keeping something safe and making sure it gets used are two different achievements. Design for the second.Available Does Not Mean Accessible was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.