Module: Legion::Extensions::Agentic::Executive::Disengagement::Helpers::Constants
- Included in:
- DisengagementEngine, Goal
- Defined in:
- lib/legion/extensions/agentic/executive/disengagement/helpers/constants.rb
Constant Summary collapse
- GOAL_STATES =
%i[active monitoring stalled disengaging disengaged].freeze
- DISENGAGE_REASONS =
%i[ sunk_cost low_progress opportunity_cost goal_conflict resource_exhaustion external_block ].freeze
- STATE_LABELS =
{ active: :pursuing, monitoring: :watching, stalled: :struggling, disengaging: :withdrawing, disengaged: :released }.freeze
- MAX_GOALS =
100- MAX_HISTORY =
300- STALL_THRESHOLD =
progress per check below this = stalled
0.1- DISENGAGE_THRESHOLD =
progress below this after multiple checks triggers disengage recommendation
0.05- SUNK_COST_WEIGHT =
how much sunk cost resists disengagement (bias to overcome)
0.3- OPPORTUNITY_COST_WEIGHT =
0.4- PROGRESS_WEIGHT =
0.3- DEFAULT_INVESTMENT =
0.0- DEFAULT_PROGRESS =
0.0- DECAY_RATE =
0.02