Module: Legion::Extensions::Agentic::Learning::Anchoring::Helpers::Constants

Included in:
Anchor, AnchorStore
Defined in:
lib/legion/extensions/agentic/learning/anchoring/helpers/constants.rb

Constant Summary collapse

DEFAULT_ANCHOR_WEIGHT =

How much the anchor pulls toward itself

0.6
ADJUSTMENT_RATE =

EMA alpha for updating anchors

0.1
ANCHOR_DECAY =

Per-tick decay of anchor strength

0.02
ANCHOR_FLOOR =

Minimum anchor strength before pruning

0.05
MAX_ANCHORS_PER_DOMAIN =

Cap per domain

20
MAX_DOMAINS =

Cap total domains

50
REFERENCE_SHIFT_THRESHOLD =

Gap needed to shift reference point

0.3
LOSS_AVERSION_FACTOR =

Losses weighted 2.25x vs gains (prospect theory)

2.25
ANCHOR_LABELS =
{
  (0.8..)     => :strong,
  (0.5...0.8) => :moderate,
  (0.2...0.5) => :weak,
  (..0.2)     => :fading
}.freeze