---
title: "Preferences in Soar"
description: "How Soar preferences distinguish candidate actions, comparisons, and requirements, and what happens when that knowledge cannot resolve a decision."
date: "2026-08-23"
modified: "2026-11-20"
---

# Preferences in Soar

> How Soar preferences distinguish candidate actions, comparisons, and requirements, and what happens when that knowledge cannot resolve a decision.

Published on: 2026-08-23

Last updated on: 2026-11-20

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

A **preference** in Soar is knowledge about selecting an operator: whether it is a candidate, how it compares with alternatives, or whether it is required or prohibited. Productions create preferences, and the decision procedure evaluates them. The [Soar manual's preference-memory section](https://soar.eecs.umich.edu/soar_manual/02_TheSoarArchitecture/#preference-memory-selection-knowledge) explains their role.

The [previous chapter](/concepts/soar-operators-and-problem-solving) followed Susan's failed password reset from a proposed action to an observed result. Here we examine the selection itself: why ask for the failure code, retry the reset, or escalate the case?

## Separate a candidate from a reason to choose it

An acceptable preference makes an operator a candidate. A comparative preference expresses a relationship between candidates. The [Soar syntax manual](https://soar.eecs.umich.edu/soar_manual/03_SyntaxOfSoarPrograms/#preference-memory) illustrates the distinction:

```text
(S1 ^operator O1 +)
(S1 ^operator O2 +)
(S1 ^operator O1 > O2)
```

In this illustrative fragment, `O1` and `O2` are acceptable candidates, and `O1` is preferred to `O2`. Suppose they represent asking for the failure code and retrying the reset. The comparison would express the workflow's judgment that obtaining the missing code should come first.

The fragment is not a complete program or decision. It leaves out the rules that create these preferences and any other candidates or constraints. A comparison with one alternative does not, by itself, settle every possible choice.

## Distinguish comparisons from requirements

The [manual's preference semantics](https://soar.eecs.umich.edu/soar_manual/02_TheSoarArchitecture/#preference-semantics) defines these different kinds of selection knowledge:

| Preference      | Meaning                                                                              |
| --------------- | ------------------------------------------------------------------------------------ |
| Acceptable      | Makes the operator a candidate.                                                      |
| Better or worse | Compares two operators.                                                              |
| Require         | Requires selection, subject to consistency with other requirements and prohibitions. |
| Prohibit        | Prevents selection.                                                                  |

For Susan's case, a hypothetical support policy might yield different decisions under different conditions:

- With the failure code unknown and no request pending, prefer asking for the code over retrying.
- With a security-review flag on the account, prohibit an automatic retry.
- With a policy that requires human approval, require escalation.

These are proposed application rules, not built-in Soar policies. A builder must define which facts activate them. In particular, “asking seems useful” and “human approval is required” should not be interchangeable instructions.

A stronger comparison cannot make a prohibited retry eligible. A required escalation determines the choice; the [Operators chapter](/concepts/soar-operators-and-problem-solving) covers execution and confirmation.

## Keep selection knowledge tied to the current case

Preferences created by a production instantiation retract when that instantiation no longer matches. The manual describes this dependency as [instantiation support](https://soar.eecs.umich.edu/soar_manual/02_TheSoarArchitecture/#production-actions-and-persistence).

In the support example, the reason to ask for the code should stop applying once Susan supplies it. It should also account for a request already in progress. Otherwise, the workflow could keep favoring a question that has been answered or repeat one it just sent.

The same design question applies to the security-review flag. Who supplies it, and what evidence clears it? A preference rule can use that field correctly while the application still makes the wrong decision because the field is stale. Explicit selection knowledge makes those dependencies inspectable; it does not establish that the underlying information is accurate.

## Recognize when the preferences do not settle the choice

The decision procedure does not simply count votes. Unresolved ties or conflicting constraints can produce impasses. Explicit indifference can instead permit selection according to the configured selection policy. The manual documents the [preference evaluation procedure](https://soar.eecs.umich.edu/soar_manual/02_TheSoarArchitecture/#how-preferences-are-evaluated-to-decide-an-operator).

For this workflow, inspect a case where asking and retrying remain candidates without a deciding comparison. Also inspect a case where one rule requires a retry while another prohibits it. Those failures call for different repairs: missing comparison knowledge in the first case, inconsistent requirements in the second.

For an AI agent borrowing this approach, retain the conditions and rules behind a choice alongside the candidates. That gives a reviewer something more useful than a record of the selected tool alone. It also exposes what the workflow still needs to decide.

Continue with [Impasses and Subgoals in Soar](/concepts/soar-impasses-and-subgoals) to see how Soar creates a working context for resolving such blockages.

---

## Sources

- [The Soar Architecture: Preference Memory](https://soar.eecs.umich.edu/soar_manual/02_TheSoarArchitecture/#preference-memory-selection-knowledge): preference semantics, evaluation, and persistence.
- [Syntax of Soar Programs: Preference Memory](https://soar.eecs.umich.edu/soar_manual/03_SyntaxOfSoarPrograms/#preference-memory): representations of candidate and comparative preferences.

Go back to [Operators in Soar](/concepts/soar-operators-and-problem-solving), continue with [Impasses and Subgoals in Soar](/concepts/soar-impasses-and-subgoals), or return to the [Concepts](/concepts) hub.
