Behavior Selection
The runtime filters available actions and calculates their selection weights. Studio displays the results of the same calculation.
Pipeline
flowchart TD
D[CharacterDefinition V11] --> REP[Repertoire / capability]
REP --> APP[Target and context applicability]
APP --> WHEN[Temporal eligibility]
WHEN --> BASE[Action preference base mass]
BASE --> P[Personality and motivation]
P --> REPETITION[Completed-action repetition factor]
REPETITION --> TARGET[Target history contribution]
TARGET --> SUP[Presentation and context suppression]
SUP --> MASS[Effective mass]
MASS --> WHAT[Weighted WHAT]
WHAT --> TARGET_PICK[Semantic TARGET, when required]
TARGET_PICK --> EXEC[Accepted execution]
EXEC --> PRESENT[Presentation lifecycle]
Hard gates versus soft contributions
Capability describes supported actions. Applicability checks the target and context. Temporal eligibility checks whether the action may begin now. Failing any required check excludes the action.
Base preference and policy contributions produce an effective action mass. Soft suppression changes that mass. If the resolved mass remains positive, the action remains selectable. Target selection uses semantic target snapshots and target-specific contributions where the action requires a target.
Repetition and target history
Action Repetition applies to consecutive completed autonomous WHAT kinds with factors 1.00, 0.70, 0.45, and 0.30 for streaks 0, 1, 2, and 3+. A different completed action resets the streak. There is no time decay. Cancelled, invalidated, failed, rejected, and no-opportunity results do not count as completed repetitions.
Target history can separately lower or raise mass associated with target identity. Repeating inspect against one target can therefore be affected by both action repetition and target history. Neither policy substitutes for the other. Habit is a separate reinforcement policy based on completion within the session.
Effective mass example
For example, if an inspect action has a weight of 0.8 before the repetition adjustment, multiplying it by 0.70 gives 0.56. The actual result depends on all inputs and the resolver's ordering; use the resolver rather than reproducing the calculation in your application.
Determinism
Given the same source snapshots, context, account/history state, and random observations, the selection path produces the same result. A new CharacterSession begins with fresh session-local repetition and target memory. Do not seed or mutate undocumented internal state to reproduce an outcome. Use the current Runtime/Studio observation surfaces.
Inspect in Studio
- Confirm the action exists in the Character repertoire.
- Confirm the selected target/context is applicable.
- Check scheduling and idle eligibility.
- Review authored preference and resolved Personality contributions.
- Review Action Repetition and target-history state separately.
- Read the effective mass and selected WHAT from the Runtime observation.
For operational debugging, see Studio Manual and Troubleshooting.