Module: Legion::Extensions::Agentic::Affect::Regulation::Helpers::Constants
- Included in:
- RegulationModel
- Defined in:
- lib/legion/extensions/agentic/affect/regulation/helpers/constants.rb
Constant Summary collapse
- STRATEGIES =
%i[ situation_selection situation_modification attentional_deployment cognitive_reappraisal response_suppression ].freeze
- STRATEGY_EFFECTIVENESS =
How much each strategy reduces unwanted emotion magnitude (0..1)
{ situation_selection: 0.8, situation_modification: 0.6, attentional_deployment: 0.5, cognitive_reappraisal: 0.7, response_suppression: 0.3 }.freeze
- STRATEGY_COST =
Cognitive/energetic cost of applying each strategy (0..1)
{ situation_selection: 0.1, situation_modification: 0.2, attentional_deployment: 0.15, cognitive_reappraisal: 0.25, response_suppression: 0.35 }.freeze
- REGULATION_ALPHA =
EMA alpha for skill updating
0.12- DEFAULT_SKILL =
Initial per-strategy proficiency
0.3- SKILL_GAIN =
Improvement per successful regulated use
0.05- SKILL_DECAY =
Per-tick decay toward DEFAULT_SKILL
0.01- MAX_REGULATION_HISTORY =
Maximum regulation events retained in history
200- SUPPRESSION_PENALTY_THRESHOLD =
Consecutive suppression uses before a penalty applies
5- REAPPRAISAL_BONUS =
Bonus applied to recommendation score when reappraisal is chosen
0.1- REGULATION_LABELS =
Human-readable proficiency labels keyed by magnitude ranges
{ (0.8..) => :masterful, (0.6...0.8) => :proficient, (0.4...0.6) => :developing, (0.2...0.4) => :novice, (..0.2) => :reactive }.freeze