AchiralAchiral

Concepts · Humans and machines

How Soar stores general knowledge and recorded episodes, retrieves them into working memory, and keeps both distinct from learned production rules.

Published2026-09-120 reads

Review pending. Report issues to editor@achiral.ai.

Plein air watercolor of Nana guiding her grandchild as they roll pastry for an apple pie, with a handwritten recipe and an old family photograph on the kitchen table.
Nana teaches her grandchild to bake an apple pie. Her recipe represents semantic knowledge; the old photograph evokes episodic memory of a particular afternoon they baked together.

Soar Semantic and Episodic Memory

Semantic memory in Soar stores long-term declarative knowledge, such as facts and relations. Episodic memory records temporally ordered episodes of the agent's working memory. The semantic-memory manual and episodic-memory manual describe these distinct mechanisms.

The previous chapter showed what a learned rule must retain from the refund decision. That rule still depends on knowledge, such as the applicable policy. Here we turn from learning a procedure to retrieving information, returning to Susan's password-reset case to distinguish a recovery policy from a recorded earlier attempt.

Store knowledge that can inform more than one case

Semantic memory represents knowledge as symbolic graph structures. An agent can retrieve a known long-term identifier or search with a cue describing the desired attributes. Results become available in working memory. The manual documents both knowledge representation and retrieval.

In an illustrative support application, semantic knowledge might include Susan's organization, its support plan, and the applicable recovery policy. A query could seek the policy for that plan and task. These relationships may inform many interactions without replaying the episode in which each was learned.

“General knowledge” does not mean permanent truth. Susan could change organizations, or the recovery policy could be revised. The application needs a way to identify the applicable version and update what it stores. A successful retrieval establishes that a record matched the query; it does not establish that the record remains authoritative.

Record what was represented during an interaction

With episodic recording enabled, Soar captures episodes from top-state working memory. Storage timing, triggers, and exclusions are configurable. The episodic-storage section explains these controls; retrieval structures are excluded by default.

For Susan's case, imagine the recorded states include a failed reset, a request for the failure code, and a later reply. Those episodes could preserve the order in which the agent represented those events. This is a hypothetical record, not a claim that Soar automatically captures an application's complete conversation or tool history.

The distinction matters when interpreting the record. If the application represented only that a reset was requested, the episode would not establish that the reset succeeded. If a tool result never entered the recorded state, episodic memory cannot supply it later. The quality of recall depends on what the application exposed and what recording retained.

Retrieve an episode for the question at hand

Soar supports cue-based episodic retrieval and retrieval by episode identifier. After a successful retrieval, the agent can also request the preceding or following episode. The episodic retrieval section describes these options.

In the support workflow, the question might be: what was recorded when this case last encountered the same failure code? A useful result would preserve enough context to distinguish a proposed retry from a completed one, and an unresolved request from an answered one.

A retrieved episode is evidence about a prior represented situation. Before applying it to the current case, the workflow still needs to check whether the account, policy, and failure conditions match. An earlier successful reset is a reason to investigate a procedure's relevance, not blanket permission to repeat it.

Keep knowledge, episodes, and learned behavior distinct

These mechanisms serve different roles in the same task:

MechanismRole in the illustrative support case
Semantic memorySupplies the recovery policy and account relationships.
Episodic memorySupplies a recorded state from an earlier attempt.
Production memorySupplies rules that propose, compare, or apply the next step.
Working memoryHolds the current case and retrieved information for active reasoning.

The Working Memory, Operators, and Chunking chapters explain the other roles. Retrieving an episode does not itself create a learned production. Updating the current case also does not automatically update semantic memory; the manual describes explicit storage operations.

For an AI builder borrowing this distinction, start with the questions retrieval must answer. “Which policy applies?” needs an applicable knowledge record. “What happened before?” needs a record with its context and sequence. “What should happen next?” needs decision knowledge that can use both.

Those roles do not require separate database products. They do require explicit meanings and update rules. Continue with Soar and AI Agents to connect these memory mechanisms to agent design.


Sources

Go back to Chunking in Soar, continue with Soar and AI Agents, or return to the Concepts hub.