AchiralAchiral

Concepts · Humans and machines

How AI agents can borrow Soar’s explicit state, operator selection, impasse handling, and learning, with a worked support-case example.

Published2026-09-190 reads

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

Watercolor of a secret agent in a black suit comparing a portrait photograph with a passenger through a steam-train window beside an open carriage door.
The agent compares remembered information with current evidence before deciding whether to board or wait. The photograph, passenger, and open carriage door make the state and possible actions visible.

Soar and AI Agents

Soar is a cognitive architecture that models goal-directed behavior through the selection and application of operators to a state. For AI agents, it offers a useful design discipline: make the situation explicit, represent possible actions, and record what changed after an action was attempted.

The previous chapter separated general knowledge from remembered episodes. Here we will use both to guide a decision. Consider an assistant helping Susan with an unresolved password-reset failure. It needs to choose between asking for information, checking account status, retrying, or escalating.

This support workflow illustrates ideas an AI builder could borrow. It is not executable Soar code or a description of Achiral's implementation.

Represent the state before choosing an action

Soar keeps its current problem-solving situation in working memory. That state can include goals, observations, intermediate conclusions, and the active operator. The manual's architecture overview describes these representations.

For Susan's case, a compact state could include:

text
goal: resolve-password-reset
user: Susan
last-reset: failed-unresolved
failure-code: unknown
code-request-pending: false

The pending flag changes which next step makes sense. If the agent has already requested the code, it should not keep asking while Susan answers. The state also needs to distinguish a missing code from a confirmed account condition. “Unknown” gives the agent a reason to seek evidence without inventing a diagnosis.

A language model could help interpret Susan's reply or draft a question. The state gives the surrounding workflow an explicit record of the facts and outstanding requests on which that model call depends.

Propose actions and state why one fits

In Soar, productions propose candidate operators and create preferences that the decision procedure uses to select an operator. Other productions apply the selected operator. Operators and preferences cover those mechanisms in detail.

An AI workflow could make its alternatives similarly explicit:

Candidate actionCondition to check
Ask for the failure codeThe code is unknown and no request is pending.
Wait for the replyA request for the code is already pending.
Check account statusAn appropriate tool is available and the check is authorized.
Escalate the caseThe case meets the workflow's escalation conditions.

These are illustrative conditions, not a complete selection policy. If several actions remain applicable, the builder must specify how to choose among them. Preference should also remain separate from permission: an action the system favors still needs to be allowed.

After asking for the code, the agent should record whether the request was sent and update the pending flag. Sending a request does not establish that the code arrived or that Susan regained access. Those outcomes need their own observations.

Turn a stalled decision into a specific subproblem

Soar can create a substate when operator selection or application reaches an impasse. Tied alternatives, conflicting preferences, and lack of progress are distinct cases described in the manual's impasses and substates section.

An AI agent can borrow the practice of identifying what prevents progress. If it cannot choose between checking the account and escalating, it might need a policy condition or an account-status observation. That missing information becomes a specific task to resolve before continuing.

Creating a subproblem does not supply the knowledge needed to solve it. The workflow must still define how to obtain the missing evidence, what to do if it remains unavailable, and when to involve a person. Merely declaring an impasse would leave Susan waiting without advancing her case.

Retrieve policy and history for different reasons

Soar's semantic memory stores long-term declarative knowledge that an agent can retrieve using cues. Its episodic memory records episodes of top-state working memory according to configured storage triggers and exclusions.

For the support workflow, a general recovery policy and a record of Susan's earlier reset serve different purposes. The policy could establish what checks are required. The case history could establish what was tried and what result was observed. Neither should silently stand in for the other.

An episode is also limited to what the system represented and recorded. If the earlier case contains no failure code, recalling that episode cannot recover a code that was never captured. The agent needs new evidence or a defined fallback.

Learn a conditional rule from a resolved subproblem

Soar's chunking mechanism can learn productions from substate reasoning that produces results for a higher-level state. A learned rule can generate those results directly when its conditions match later, reducing the need to repeat that reasoning.

The conditions carry the useful distinction. In Susan's example, a rule that asks for a missing code must retain the pending-request check. Generalizing it into “ask for a code after every failure” would discard information needed to avoid repeated questions.

Chunking differs from Soar's reinforcement learning, which adjusts numeric operator preferences using rewards. Learning a production and changing a preference among operators are different changes to behavior. Neither independently verifies the workflow against an external policy.

The term also differs from ACT-R's use of chunks for structured declarative knowledge. In Soar chunking, the learned chunk is a production rule.

Make a decision trace reviewable

At Achiral, the design lesson we borrow is to make a decision trace inspectable: the state, the candidate actions, the reason for selection, and the observed result. This is architectural inspiration rather than a claim that Achiral implements Soar.

For Susan's case, a reviewer could check whether the agent sought missing information, avoided duplicate requests, and distinguished an attempted reset from a successful one. The same checks should apply after a workflow has learned a shortcut. Repeated use should not excuse a missing condition or an inaccurate outcome record.

To follow related ideas through a longer agent workflow, continue with ACT-R Memory for Agents. For the mechanisms behind this chapter, return to Working Memory in Soar or Impasses and Subgoals.


Sources

Go back to Semantic and Episodic Memory in Soar, continue with ACT-R Memory for Agents, or return to the Concepts hub.