Module: Legion::Extensions::Agentic::Self::DefaultModeNetwork::Helpers::Constants

Included in:
DmnEngine, WanderingThought
Defined in:
lib/legion/extensions/agentic/self/default_mode_network/helpers/constants.rb

Constant Summary collapse

IDLE_THRESHOLD =

Idle time thresholds

30
DEEP_IDLE_THRESHOLD =

seconds before DMN activates

300
MAX_WANDERING_THOUGHTS =

Thought storage limits

100
MAX_THOUGHT_HISTORY =
200
MAX_ASSOCIATION_CHAIN =

max hops in a wandering chain

5
THOUGHT_SALIENCE_FLOOR =

Salience parameters

0.05
THOUGHT_DECAY =
0.01
DEFAULT_SALIENCE =
0.3
SALIENCE_ALPHA =
0.1
SELF_REFERENTIAL_PROBABILITY =

Probabilistic thought-type selection (must sum to <= 1.0)

0.3
SOCIAL_REPLAY_PROBABILITY =
0.2
PLANNING_PROBABILITY =
0.2
WANDERING_PROBABILITY =
0.3
ACTIVITY_LABELS =

Activity mode labels

{
  active:        :task_focused,
  transitioning: :shifting,
  idle:          :daydreaming,
  deep_idle:     :deep_reflection
}.freeze
SALIENCE_LABELS =

Salience quality labels — range-keyed hash

{
  (0.8..)     => :breakthrough,
  (0.6...0.8) => :significant,
  (0.4...0.6) => :notable,
  (0.2...0.4) => :passing,
  (..0.2)     => :fleeting
}.freeze