Module: Legion::Extensions::Agentic::Social::Attachment::Helpers::Constants

Defined in:
lib/legion/extensions/agentic/social/attachment/helpers/constants.rb

Constant Summary collapse

FREQUENCY_WEIGHT =

Strength computation weights (must sum to 1.0)

0.3
RECIPROCITY_WEIGHT =
0.25
PREDICTION_ACCURACY_WEIGHT =
0.2
DIRECT_ADDRESS_WEIGHT =
0.15
CHANNEL_CONSISTENCY_WEIGHT =
0.1
BOND_STAGES =

Bond lifecycle stages

%i[initial forming established deep].freeze
ATTACHMENT_STYLES =

Attachment style classifications

%i[secure anxious avoidant].freeze
STAGE_THRESHOLDS =

Stage progression thresholds

{
  forming:     { interactions: 10,  strength: 0.3 },
  established: { interactions: 50,  strength: 0.5 },
  deep:        { interactions: 200, strength: 0.7 }
}.freeze
BASE_SEPARATION_TOLERANCE =

Separation tolerance (consecutive prediction misses before anxiety signal)

3
SEPARATION_TOLERANCE_GROWTH =
{
  initial: 0, forming: 1, established: 2, deep: 4
}.freeze
STRENGTH_ALPHA =

EMA alpha for strength updates

0.15
STYLE_THRESHOLDS =

Style derivation thresholds

{
  anxious_frequency_variance:    0.4,
  anxious_reciprocity_imbalance: 0.3,
  avoidant_frequency:            0.2,
  avoidant_direct_address:       0.15
}.freeze
TAG_PREFIX =

Apollo Local tag prefix

%w[bond attachment].freeze