Module: Legion::Extensions::Agentic::Memory::Reserve::Helpers::Constants

Included in:
Pathway, ReserveEngine, Runners::CognitiveReserve
Defined in:
lib/legion/extensions/agentic/memory/reserve/helpers/constants.rb

Constant Summary collapse

MAX_PATHWAYS =

Maximum tracked pathways

100
MAX_COMPENSATIONS =

Maximum tracked compensations

200
MAX_HISTORY =

Maximum event history

300
DEFAULT_CAPACITY =

Default pathway capacity (0..1)

1.0
CAPACITY_FLOOR =

Capacity bounds

0.0
CAPACITY_CEILING =
1.0
DEGRADED_THRESHOLD =

Threshold below which a pathway is considered degraded

0.5
FAILED_THRESHOLD =

Threshold below which a pathway is considered failed

0.1
COMPENSATION_EFFICIENCY =

Compensation efficiency — how much of lost capacity a backup restores

0.7
RECOVERY_RATE =

Recovery rate per tick

0.02
COMPENSATION_DECAY =

Decay rate for unused compensatory pathways

0.01
RESERVE_LABELS =

Reserve levels based on overall reserve ratio

{
  (0.8..)     => :robust,
  (0.6...0.8) => :adequate,
  (0.4...0.6) => :reduced,
  (0.2...0.4) => :vulnerable,
  (..0.2)     => :critical
}.freeze
PATHWAY_STATES =

Pathway states

%i[healthy degraded compensating failed].freeze