Temporal Behavior and History

Timing determines when the character can next choose an autonomous action. It may defer selection regardless of action weights.

Scheduling fields

The authored Behavior scheduling fields are enabled, meanOpportunityIntervalMs, minimumIdleDurationMs, postActionCooldownMs, and opportunityIntervalJitterRatio. Personality can contribute to the effective scheduling policy through the policy resolver. Studio shows authored values separately from effective policy and current Runtime outcomes.

See the parameter reference for the accepted ranges and Studio defaults. Use the projected policy when scheduling actions.

Rest and sleep state: current boundary

The repository has an internal Character Life State with normalized energy and sleepiness values. It derives restPressure = 1 - energy and sleepPressure = sleepiness; while eligible for idle activity, energy decreases by elapsedMs / 120000 and sleepiness increases by elapsedMs / 180000, clamped to [0, 1]. A completed internal rest.remain operation restores 0.20 energy. A completed sleep.remain restores 0.35 energy and reduces sleepiness by 0.25.

These constants belong to the internal life-state model; they are not editable scheduling fields. The public CharacterDefinition does not expose a universal numeric rest threshold, and the public scheduling API does not automatically start a rest episode at a documented pressure value. Rest and sleep execution require a resolved WHY episode and remain Internal-only in the current composition. Do not infer a production trigger threshold from the pressure metric. The V11 rest capability declares support for an action. It does not configure when automatic rest begins.

Logical elapsed time and bounded history

Runtime scheduling uses a monotonic logical elapsed-time account; wall-clock timestamps are not used as a decay mechanism for Action Repetition. Session history is bounded. Reset creates a new logical epoch and clears session-local transient history according to the CharacterSession contract; disposal prevents further session mutation.

Action Repetition tracks only lastCompletedAutonomousActionKind and a bounded consecutive completed repeat count. Its factors are 1.00 / 0.70 / 0.45 / 0.30 for streak 0 / 1 / 2 / 3+. Only successful completion of an autonomous WHAT increments or changes the streak. A different completed action resets it. There is no wall-clock decay and no cross-session persistence.

Target history affects the weight of a particular target. Action Repetition concerns the action kind. Habit is a separate reinforcement policy.

Studio fixtures versus Runtime authority

Studio lets you set elapsed time and sample targets to compare runtime results. These inputs do not change the application’s data. Use Studio Manual to distinguish authored, effective, and Runtime observations.