AchiralAchiral

Concepts · Humans and machines

How Soar proposes, selects, and applies operators, with a password-reset example that separates candidate actions, selected actions, and observed results.

Published2026-08-170 reads

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

Plein air watercolor of two people playing chess at a wooden table beneath trees, with one moving a knight while the other watches.
A chess player moves a knight while their opponent watches. In Soar, applying an operator likewise changes the current problem-solving state.

Operators in Soar

An operator in Soar is a step whose application changes the current problem-solving state. It can change an internal representation or issue a command to an external environment. The Soar architecture manual describes both forms.

The previous chapter followed Susan's failed password reset through working memory. This chapter uses the same illustrative case to explain how the agent chooses and carries out its next step.

Propose a step from the current state

An operator description identifies a possible step. Productions, Soar's condition–action rules, supply the knowledge for proposing, comparing, and applying operators. The manual's operator proposal section explains how rules test the current state to propose candidates.

In Susan's case, the reset has failed, the failure code is unknown, and no request for that code is pending. A rule could propose asking for the code under those conditions. Other candidates might include checking account status or escalating the case.

Those proposals need conditions. If a request is already pending, proposing the same question again could produce a duplicate message. If the account requires review, the workflow should account for that requirement before proposing another reset attempt.

For this example, the candidate we will follow is ask-for-failure-code. Its description says what step is under consideration. Separate rules must define when to propose it and how to carry it out.

Distinguish a candidate from the selected operator

A state can have several proposed operators and one selected operator at a time. Preferences guide the decision procedure. The architecture manual's decision section describes selection and the cases where it reaches an impasse.

Soar's working-memory notation makes the distinction visible:

text
Candidate:
(S1 ^operator O1 +)
(O1 ^name ask-for-failure-code)

Selected:
(S1 ^operator O1)

These are illustrative fragments, not a complete program. The Soar syntax manual explains the + marking an acceptable preference. Without it, the state–operator link shown above denotes the selected operator. Selection does not require the candidate's acceptable preference to disappear.

For Susan, suppose the workflow prefers asking for the missing code before retrying. Selecting O1 records that decision. It does not mean a message has been delivered or that Susan has answered.

Apply the step and observe what happened

In Soar, application rules test the selected operator and make the relevant changes. External interaction uses input and output structures, documented in the Soar I/O section.

In the illustrative support application, applying ask-for-failure-code would create a request for the messaging system. The case state then needs to reflect what the system reports:

EventAppropriate case update
The operator is selected.Record the chosen step; the code remains unknown.
The messaging system confirms the request was sent.Mark the request as pending.
Delivery fails.Record the failure so the workflow can choose a recovery step.
Susan replies with the code.Record the code and clear the pending request.

The application must define these updates. Treating selection as successful delivery would make the case record inaccurate. Treating a sent request as a received answer would let the workflow continue without the information it sought.

Choose a useful level of action

An operator need not correspond to one API call. Soar supports substate problem solving when more work is needed to choose or apply an operator.

For this support workflow, “ask for the failure code” is a useful unit because it has a clear purpose and observable progress. An operator named “resolve the whole case” would need further detail before an application could execute it or decide whether it had succeeded.

An AI builder borrowing this design can inspect three things: why a step became a candidate, why it was selected, and what evidence changed the case afterward. Merely listing tools in a prompt does not establish those relationships. The workflow still needs proposal conditions, selection knowledge, and rules for handling results.

The next chapter, Preferences in Soar, examines the selection knowledge: what makes one candidate acceptable, preferable, required, or prohibited.


Sources

Go back to Working Memory in Soar, continue with Preferences in Soar, or return to the Concepts hub.