Module: Legion::Extensions::Agentic::Inference::Momentum::Helpers::Constants

Included in:
Idea, MomentumEngine
Defined in:
lib/legion/extensions/agentic/inference/momentum/helpers/constants.rb

Constant Summary collapse

IDEA_TYPES =

Idea categories

%i[belief goal hypothesis plan intuition].freeze
DEFAULT_MASS =

Momentum = mass * velocity Mass = importance/entrenchment (resists change) Velocity = rate of change/spread

0.5
DEFAULT_VELOCITY =
0.0
MASS_FLOOR =
0.1
MASS_CEILING =
1.0
VELOCITY_FLOOR =
-1.0
VELOCITY_CEILING =
1.0
FRICTION_RATE =

Friction reduces velocity each cycle

0.05
MIN_FORCE =

Force needed to change velocity (F = m * a, so a = F / m) Higher mass = more force needed to accelerate

0.01
REINFORCE_MASS_BOOST =

Reinforcement increases mass (entrenchment)

0.05
REINFORCE_VELOCITY_BOOST =
0.1
CHALLENGE_VELOCITY_PENALTY =

Challenge reduces velocity and slightly reduces mass

0.15
CHALLENGE_MASS_REDUCTION =
0.02
MOMENTUM_LABELS =

Momentum labels

{
  (0.5..)      => :surging,
  (0.2...0.5)  => :building,
  (0.0...0.2)  => :coasting,
  (-0.2...0.0) => :slowing,
  (..-0.2)     => :reversing
}.freeze
INERTIA_LABELS =

Inertia labels (based on mass)

{
  (0.8..)     => :immovable,
  (0.6...0.8) => :entrenched,
  (0.4...0.6) => :moderate,
  (0.2...0.4) => :flexible,
  (..0.2)     => :volatile
}.freeze
MAX_IDEAS =
200
MAX_HISTORY =
500