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

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

Constant Summary collapse

ROLES =

Social roles an agent can hold in a group

%i[
  leader
  contributor
  specialist
  observer
  mentor
  newcomer
].freeze
RELATIONSHIP_TYPES =

Group relationship types

%i[
  ally
  collaborator
  neutral
  competitor
  adversary
].freeze
REPUTATION_DIMENSIONS =

Reputation dimensions

{
  reliability: { weight: 0.25, description: 'Follows through on commitments' },
  competence:  { weight: 0.25, description: 'Quality of work output' },
  benevolence: { weight: 0.20, description: 'Acts in others interests' },
  integrity:   { weight: 0.15, description: 'Consistency between words and actions' },
  influence:   { weight: 0.15, description: 'Ability to shape group direction' }
}.freeze
REPUTATION_ALPHA =

EMA alpha for reputation updates

0.1
STANDING_LEVELS =

Social standing thresholds

{
  exemplary:  0.8,
  respected:  0.6,
  neutral:    0.4,
  marginal:   0.2,
  ostracized: 0.0
}.freeze
COHESION_LEVELS =

Group cohesion thresholds

{
  tight:     0.7,
  moderate:  0.5,
  loose:     0.3,
  fractured: 0.0
}.freeze
MAX_GROUPS =

Maximum tracked groups

20
MAX_GROUP_MEMBERS =

Maximum members per group

50
NORM_VIOLATIONS =

Social norms violation types

%i[
  free_riding
  defection
  deception
  dominance_abuse
  exclusion
].freeze
RECIPROCITY_WINDOW =

Reciprocity tracking window

50
INFLUENCE_DECAY =

Social influence decay rate

0.02